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, but LyX currently
126 % \end{} %reLyX will get confused if \end is found in this file!
140 \includegraphics[,][,]{} % btw, LyX doesn't support graphicx, just graphics
143 \item[] % Has two variants (jpw) Other variant is unsupported (adk)
153 \noun{} % LyX style for nouns (appears in lyx-generated files)
162 \textmd{} % I had to add these (adk)
180 \underbar{} % LyX generated files use underbar instead of underline
186 % Units of measure. These get used only within the arguments of
187 % commands that take some length quantity.
200 \abovedisplayshortskip
207 \belowdisplayshortskip
263 % Commands that act like single characters and insert something. This
264 % excludes the commands that place accents on characters, since they
265 % require arguments, whereas these don't. Also excluded are commands
266 % that insert a specified amount of space [again, that requires
267 % arguments] and those that insert lists, since a list isn't a single
270 % I had to remove things that TeX.pm doesn't recognize as a token, and hardcode
271 % those into reLyX. This included !' ?' -- --- and maybe some other things
273 \ % A "\" followed by a space.
350 % The LaTeX commands. As per Alejandro's request, I've omitted all of
351 % the math commands he appears to support in Mathed. I'm also
352 % omitting commands used primarily for defining new class and style
355 % For some reason, John didn't write {} after \" and some of the other
356 % accent commands (adk)
357 % He also didn't include the \textsc{} equivalent to {\sc}
358 % Because any commands with arguments in parentheses (rather than braces or
359 % brackets) appear in a picture environment, which reLyX doesn't support,
360 % we can comment those out.
362 % These are the commands you're mostly likely to want to redefine in your own
365 % Arguments whose text is "translate" will have regular LaTeX in them (as
366 % opposed to commands with special syntax) which should be translated by
367 % reLyX like regular LaTeX. \mbox{} is an obvious example. LyX doesn't
368 % support it, but only the "\mbox{" and the "}" need to be in TeX mode.
371 \addcontentsline{}{}{translate}
374 \addtocontents{}{translate} % one argument was missing here (JMarc)
382 \appendix % had to add this -Ak
387 %\bezier{}(,)(,)(,) % picture
396 \centerline{translate}
401 %\circle{} % picture environment (JMarc)
406 \color[]{,,} % Two variants of this command and the next (jpw)
407 % \color{} % This variant doesn't matter to reLyX (adk)
409 %\colorspec{}{} % This variant doesn't matter to reLyX (adk)
410 %\contentsline{}{\numberline{} }{} % Appears only in .toc file (JMarc)
412 % \dashbox{}(,)[]{} %picture
415 \dblfloatpagefraction
427 \fcolorbox[]{,,}{,,}{} % Two variants of this command
428 %\fcolorbox{}{}{} % This variant doesn't matter to reLyX (adk)
439 \footnotetext[]{translate}
441 \framebox[][]{translate} % Two variants of this command
442 %\framebox(,)[]{} % picture variant
447 \glossaryentry{}{} %only in .glo file (JMarc)
448 % \graphpaper[](,)(,) %picture
455 \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
458 \indexentry{}{} % only in .idx files (JMarc)
463 % This variant of \item might break reLyX!
464 % \item{} % Only appears in unsupported theindex environment
476 % \line(,){} %picture
480 \listofalgorithms %AMStex?
486 \makebox[][]{translate}
487 % \makebox(,)[]{} %picture variant
490 \makelabel{translate}
493 \markboth{}{translate}
494 \markright{translate}
498 % \multiput(,)(,){}{} %picture
503 %\newcommand{}[]{} % reLyX doesn't care about missing optarg
505 \newenvironment{}[][]{}{}
506 \newenvironment*{}[][]{}{}
507 % \newenvironment{}[]{}{} % reLyX doesn't care about missing optarg
512 \newtheorem{}[]{translate}[]
527 % \oval(,)[] %picture
530 % \pagecolor{} % reLyX doesn't care about this version
536 %\parbox[]{}{} % reLyX treats next line same as this one (adk)
537 \parbox[][][]{}{translate}
545 \providecommand{}[][]{}
546 \providecommand*{}[][]{}
548 \psfrag{}[][][][]{translate}
549 \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 \subparagraph[]{} % These "sub" versions of the sectioning commands weren't
605 \subparagraph*{} % in the original commandlist for some reason (adk)
610 %\subsubitem{} % unsupported theindex environment
616 \telephone{translate}
617 \textcircled{translate}
618 \textcolor[]{,,}{translate}
619 %\textcolor{}{} % reLyX doesn't care about this version
620 \textnormal{translate}
638 % \vector(,){} %picture
639 % \verb|| % reLyX needs \verb to be hardcoded
648 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
649 % There are some environments which reLyX doesn't have an equivalent for.
650 % However, *within* that environment, simple translatable LaTeX appears.
651 % (E.g., this doesn't include something like "picture" because the TeX
652 % parser can't (yet?) understand the parentheses as being delimiters of
653 % coordinates rather than plain text.)
654 % The environment names are placed in a "reLyXre" environment.
655 % There aren't very many of these; the idea is that the user can add
656 % user-defined environments in personal syntax files
659 % filecontents can only appear before \documentclass command, so not worth it
662 % slide only appears in the slides class, but if we don't put this in, then
663 % the whole document will be copied in TeX mode!
668 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
669 % Keep bugging André until he adds 'support' for these in mathed,
670 % meaning that they can be removed from here.
675 \ensuremath {} % If it's in math mode, \ensuremath is unnec.