1 % This is the default list of commands for tex conversion programs to read
2 % It tells how many arguments each command takes, and which of them
3 % (if any) are optional.
4 % It is taken from the list of commands origianlly written by John Weiss 970311
5 % for reLyX plus the math commands from math_hash.C
7 % Also had to add textrm etc. commands and many size commands (like \small)
9 % I left in things like units of measure (\depth) because reLyX will think
10 % that they're commands, and this way it will know they don't take any
13 % There are almost certainly commands in here we don't need -- but that
16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18 % The first thing listed here is commands that are hard-coded into reLyX.
19 % Redefining these commands in a new syntax file will probably not help%
20 % and may break things.
58 %\begin{}[] %tex2lyx will get confused if \begin is found in this file!
59 %\begin{}[]{} % All of these show the different variations of \begin (jpw)
73 % Natbib citations can usually have two optional args
102 % jurabib supports some natbib commands and additionally:
111 \footciteyearpar[][]{}
121 %\end{} %tex2lyx will get confused if \end is found in this file!
136 \includegraphics[,][,]{} % btw, LyX doesn't support graphicx, just graphics
139 \item[] % Has two variants (jpw) Other variant is unsupported (adk)
149 \noun{} % LyX style for nouns (appears in lyx-generated files)
158 \textmd{} % I had to add these (adk)
176 \underbar{} % LyX generated files use underbar instead of underline
182 % Units of measure. These get used only within the arguments of
183 % commands that take some length quantity.
196 \abovedisplayshortskip
203 \belowdisplayshortskip
259 % Commands that act like single characters and insert something. This
260 % excludes the commands that place accents on characters, since they
261 % require arguments, whereas these don't. Also excluded are commands
262 % that insert a specified amount of space [again, that requires
263 % arguments] and those that insert lists, since a list isn't a single
267 \ % A "\" followed by a space.
344 % The LaTeX commands. As per Alejandro's request, I've omitted all of
345 % the math commands he appears to support in Mathed. I'm also
346 % omitting commands used primarily for defining new class and style
349 % For some reason, John didn't write {} after \" and some of the other
350 % accent commands (adk)
351 % He also didn't include the \textsc{} equivalent to {\sc}
352 % Because any commands with arguments in parentheses (rather than braces or
353 % brackets) appear in a picture environment, which reLyX doesn't support,
354 % we can comment those out.
356 % These are the commands you're mostly likely to want to redefine in your own
359 % Arguments whose text is "translate" will have regular LaTeX in them (as
360 % opposed to commands with special syntax) which should be translated by
361 % reLyX like regular LaTeX. \mbox{} is an obvious example. LyX doesn't
362 % support it, but only the "\mbox{" and the "}" need to be in TeX mode.
365 \Acrobatmenu{}{} % from the hyperref package
366 \addcontentsline{}{}{translate}
369 \addtocontents{}{translate} % one argument was missing here (JMarc)
377 \appendix % had to add this -Ak
382 %\bezier{}(,)(,)(,) % picture
392 \centerline{translate}
397 %\circle{} % picture environment (JMarc)
402 \color[]{,,} % Two variants of this command and the next (jpw)
406 %\contentsline{}{\numberline{} }{} % Appears only in .toc file (JMarc)
408 %\dashbox{}(,)[]{} %picture
411 \dblfloatpagefraction
424 \fcolorbox[]{,,}{,,}{} % Two variants of this command
436 \footnotetext[]{translate}
437 % LaTeX has \frame{}, but beamer has \frame[]{}, so use the latter
439 \framebox[][]{translate} % Two variants of this command
440 %\framebox(,)[]{} % picture variant
445 \glossaryentry{}{} %only in .glo file (JMarc)
446 % \graphpaper[](,)(,) %picture
448 \href{}{translate} % from the hyperref package
451 \hyperdef{}{}{translate} % from the hyperref package
452 \hyperlink{}{translate} % from the hyperref package
453 \hyperref{}{}{translate} % from the hyperref package
454 \hypertarget{}{translate} % from the hyperref package
458 \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
461 \indexentry{}{} % only in .idx files (JMarc)
466 % This variant of \item might break reLyX!
467 % \item{} % Only appears in unsupported theindex environment
479 % We need this because the arguments must not be interpreted
481 % \line(,){} %picture
485 \listofalgorithms %AMStex?
491 \makebox[][]{translate}
492 % \makebox(,)[]{} %picture variant
495 \makelabel{translate}
498 \markboth{}{translate}
499 \markright{translate}
503 % \multiput(,)(,){}{} %picture
508 %\newcommand{}[]{} % tex2lyx can support this when the file format is the one of LyX 1.6.x
510 \newenvironment{}[][]{}{}
511 \newenvironment*{}[][]{}{}
512 %\newenvironment{}[]{}{} % tex2lyx can support this when the file format is the one of LyX 1.6.x
517 \newtheorem{}[]{translate}[]
532 % \oval(,)[] %picture
535 % \pagecolor{} % tex2lyx can first care about this when fileformat 351 is supported
541 %\parbox[]{}{} % reLyX treats next line same as this one (adk)
542 \parbox[][][]{}{translate}
546 \pdfbookmark[]{}{} % from the hyperref package
547 \pdfstringdef{}{} % from the hyperref package
552 \providecommand{}[][]{}
553 \providecommand*{}[][]{}
555 \psfrag{}[][][][]{translate}
556 \psfrag*{}[][][][]{translate}
560 % \qbezier[](,)(,)(,) %picture
565 \raisebox{}[][]{translate}
566 \reflectbox{translate}
569 \renewcommand{}[][]{}
570 \renewcommand*{}[][]{}
571 %\renewcommand{}[]{} % tex2lyx can support this when the file format is the one of LyX 1.6.x
572 \renewenvironment{}[][]{}{}
573 \renewenvironment*{}[][]{}{}
574 %\renewenvironment{}[]{}{}
575 \resizebox{}{}{translate}
576 \resizebox*{}{}{translate}
581 \rotatebox{}{translate}
585 % \savebox{}(,)[]{} %picture
587 \scalebox{}[]{translate}
603 \shortstack[]{translate}
610 %\subitem{} % unsupported theindex environment
612 \subfigure[]{translate}
613 \subparagraph[]{} % These "sub" versions of the sectioning commands weren't
614 \subparagraph*{} % in the original commandlist for some reason (adk)
619 %\subsubitem{} % unsupported theindex environment
625 \telephone{translate}
626 \texorpdfstring{}{} % from the hyperref package
627 \textcircled{translate}
628 \textcolor[]{,,}{translate}
630 \textnormal{translate}
648 % \vector(,){} %picture
649 % \verb|| % tex2lyx fails on \verb, see http://www.lyx.org/trac/ticket/4468 and http://www.lyx.org/trac/ticket/5408
657 % LaTeX environments.
658 % They have always one extra "argument":
659 % It contains "translate" if the contents of the environment contains normal
660 % LaTeX code that can be translated to LyX.
667 % Environments that start math mode.
668 % $...$, $$...$$, \(...\) and \[...\] are hardcoded in tex2lyx.
669 % The arguments are currently ignored.
670 \begin{mathenvironments}
685 % These require extra args
691 % These are not known by LyX but work nevertheless:
693 \end{mathenvironments}
695 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%