1 % This is the default list of commands for reLyX to read
2 % It tells reLyX many arguments each command takes, and which of them
3 % (if any) are optional.
4 % It is taken from the list of commands written by John Weiss 970311
5 % 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{}[] %reLyX will get confused if \begin is found in this file!
59 %\begin{}[]{} % All of these show the different variations of \begin (jpw)
60 %\begin{}{} % reLyX can only handle \begin{}
73 % Natbib citations can usually have two optional args
102 % jurabib supports some natbib commands and additionally:
111 \footciteyearpar[][]{}
121 % \end{} %reLyX will get confused if \end is found in this file!
135 \includegraphics[,][,]{} % btw, LyX doesn't support graphicx, just graphics
138 \item[] % Has two variants (jpw) Other variant is unsupported (adk)
148 \noun{} % LyX style for nouns (appears in lyx-generated files)
157 \textmd{} % I had to add these (adk)
175 \underbar{} % LyX generated files use underbar instead of underline
181 % Units of measure. These get used only within the arguments of
182 % commands that take some length quantity.
195 \abovedisplayshortskip
202 \belowdisplayshortskip
258 % Commands that act like single characters and insert something. This
259 % excludes the commands that place accents on characters, since they
260 % require arguments, whereas these don't. Also excluded are commands
261 % that insert a specified amount of space [again, that requires
262 % arguments] and those that insert lists, since a list isn't a single
265 % I had to remove things that TeX.pm doesn't recognize as a token, and hardcode
266 % those into reLyX. This included !' ?' -- --- and maybe some other things
268 \ % A "\" followed by a space.
345 % The LaTeX commands. As per Alejandro's request, I've omitted all of
346 % the math commands he appears to support in Mathed. I'm also
347 % omitting commands used primarily for defining new class and style
350 % For some reason, John didn't write {} after \" and some of the other
351 % accent commands (adk)
352 % He also didn't include the \textsc{} equivalent to {\sc}
353 % Because any commands with arguments in parentheses (rather than braces or
354 % brackets) appear in a picture environment, which reLyX doesn't support,
355 % we can comment those out.
357 % These are the commands you're mostly likely to want to redefine in your own
360 % Arguments whose text is "translate" will have regular LaTeX in them (as
361 % opposed to commands with special syntax) which should be translated by
362 % reLyX like regular LaTeX. \mbox{} is an obvious example. LyX doesn't
363 % support it, but only the "\mbox{" and the "}" need to be in TeX mode.
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)
403 % \color{} % This variant doesn't matter to reLyX (adk)
405 %\colorspec{}{} % This variant doesn't matter to reLyX (adk)
406 %\contentsline{}{\numberline{} }{} % Appears only in .toc file (JMarc)
408 % \dashbox{}(,)[]{} %picture
411 \dblfloatpagefraction
424 \fcolorbox[]{,,}{,,}{} % Two variants of this command
425 %\fcolorbox{}{}{} % This variant doesn't matter to reLyX (adk)
436 \footnotetext[]{translate}
438 \framebox[][]{translate} % Two variants of this command
439 %\framebox(,)[]{} % picture variant
444 \glossaryentry{}{} %only in .glo file (JMarc)
445 % \graphpaper[](,)(,) %picture
452 \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
455 \indexentry{}{} % only in .idx files (JMarc)
460 % This variant of \item might break reLyX!
461 % \item{} % Only appears in unsupported theindex environment
473 % We need this because the arguments must not be interpreted
475 % \line(,){} %picture
479 \listofalgorithms %AMStex?
485 \makebox[][]{translate}
486 % \makebox(,)[]{} %picture variant
489 \makelabel{translate}
492 \markboth{}{translate}
493 \markright{translate}
497 % \multiput(,)(,){}{} %picture
502 %\newcommand{}[]{} % reLyX doesn't care about missing optarg
504 \newenvironment{}[][]{}{}
505 \newenvironment*{}[][]{}{}
506 % \newenvironment{}[]{}{} % reLyX doesn't care about missing optarg
511 \newtheorem{}[]{translate}[]
526 % \oval(,)[] %picture
529 % \pagecolor{} % reLyX doesn't care about this version
535 %\parbox[]{}{} % reLyX treats next line same as this one (adk)
536 \parbox[][][]{}{translate}
544 \providecommand{}[][]{}
545 \providecommand*{}[][]{}
547 \psfrag{}[][][][]{translate}
548 \psfrag*{}[][][][]{translate}
552 % \qbezier[](,)(,)(,) %picture
557 \raisebox{}[][]{translate}
558 \reflectbox{translate}
561 \renewcommand{}[][]{}
562 \renewcommand*{}[][]{}
563 % \renewcommand{}[]{} %reLyX doesn't care about variants
564 \renewenvironment{}[][]{}{}
565 \renewenvironment*{}[][]{}{}
566 % \renewenvironment{}[]{}{}
567 \resizebox{}{}{translate}
568 \resizebox*{}{}{translate}
573 \rotatebox{}{translate}
577 % \savebox{}(,)[]{} %picture
579 \scalebox{}[]{translate}
595 \shortstack[]{translate}
602 %\subitem{} % unsupported theindex environment
604 \subfigure[]{translate}
605 \subparagraph[]{} % These "sub" versions of the sectioning commands weren't
606 \subparagraph*{} % in the original commandlist for some reason (adk)
611 %\subsubitem{} % unsupported theindex environment
617 \telephone{translate}
618 \textcircled{translate}
619 \textcolor[]{,,}{translate}
620 %\textcolor{}{} % reLyX doesn't care about this version
621 \textnormal{translate}
639 % \vector(,){} %picture
640 % \verb|| % reLyX needs \verb to be hardcoded
649 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
650 % There are some environments which reLyX doesn't have an equivalent for.
651 % However, *within* that environment, simple translatable LaTeX appears.
652 % (E.g., this doesn't include something like "picture" because the TeX
653 % parser can't (yet?) understand the parentheses as being delimiters of
654 % coordinates rather than plain text.)
655 % The environment names are placed in a "reLyXre" environment.
656 % There aren't very many of these; the idea is that the user can add
657 % user-defined environments in personal syntax files
660 % filecontents can only appear before \documentclass command, so not worth it
663 % slide only appears in the slides class, but if we don't put this in, then
664 % the whole document will be copied in TeX mode!
669 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
670 % Keep bugging André until he adds 'support' for these in mathed,
671 % meaning that they can be removed from here.
676 \ensuremath {} % If it's in math mode, \ensuremath is unnec.