]> git.lyx.org Git - lyx.git/blob - lib/syntax.default
01fee6a29fd099aa830f108f34f89e4c08d634a4
[lyx.git] / lib / syntax.default
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 originally written by John Weiss
5 % 1997-03-11 for reLyX plus the math commands from math_hash.C
6 %
7 % Also had to add textrm etc. commands and many size commands (like \small)
8 %
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
11 % arguments...
12 %
13 %    There are almost certainly commands in here we don't need -- but that
14 % shouldn't matter
15 %
16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17
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.
21 \#
22 \$
23 \%
24 \&
25 \@
26 \_
27 \{
28 \}
29 ~
30
31 \hfill
32 \i
33 \j
34 \L
35 \l
36 \LaTeX
37 \LaTeXe
38 \LyX
39 \ldots
40 \TeX
41
42 \"{}
43 $$
44 \'{}
45 \(
46 \)
47 \-
48 \.{}
49 \={}
50 \[
51 \]
52 \\[]
53 \\*[]
54 \^{}
55 \`{}
56 \~{}
57 \b{}
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)
60 %\begin{}{}
61 %\begin{}{}{}
62 %\begin{}[][][]{}
63 %\begin{}(,)
64 %\begin{}(,)(,)
65 %\begin{}{}[]{}
66 \bf
67 \bibitem[]{}
68 \bibliography{}
69 \bibliographystyle{}
70 \c{}
71 \cite[]{}
72
73 % Natbib citations can usually have two optional args
74 \citet[][]{}
75 \Citet[][]{}
76 \citet*[][]{}
77 \Citet*[][]{}
78
79 \citealt[][]{}
80 \Citealt[][]{}
81 \citealt*[][]{}
82 \Citealt*[][]{}
83
84 \citep[][]{}
85 \Citep[][]{}
86 \citep*[][]{}
87 \Citep*[][]{}
88
89 \citealp[][]{}
90 \Citealp[][]{}
91 \citealp*[][]{}
92 \Citealp*[][]{}
93
94 \citeauthor[]{}
95 \Citeauthor[]{}
96 \citeauthor*[]{}
97 \Citeauthor*[]{}
98
99 \citeyear[]{}
100 \citeyearpar[][]{}
101
102 % jurabib supports some natbib commands and additionally:
103 \fullcite[][]{}
104 \footcite[][]{}
105 \footcitet[][]{}
106 \footcitealt[][]{}
107 \footcitep[][]{}
108 \footcitealp[][]{}
109 \footciteauthor[]{}
110 \footciteyear[]{}
111 \footciteyearpar[][]{}
112 \citefield[]{}
113 \citetitle[]{}
114
115 \cline{ - }
116 \d{}
117 \documentclass[]{}[]
118 \documentstyle[]{}
119 \em
120 \emph{}
121 %\end{}   %tex2lyx will get confused if \end is found in this file!
122 \epsf{}
123 \epsfbox{}
124 \epsffile{}
125 \epsfig{}
126 \epsfxsize
127 \epsfysize
128 \fancyhead[]{}
129 \footnote[]{}
130 \footnotesize
131 \H{}
132 \hline
133 \huge
134 \Huge
135 \include{}
136 \includegraphics[,][,]{} % btw, LyX doesn't support graphicx, just graphics
137 \input{}
138 \it
139 \item[]  % Has two variants (jpw) Other variant is unsupported (adk)
140 \label{}
141 \large
142 \Large
143 \LARGE
144 \marginpar[]{}
145 \multicolumn{}{}{}
146 \newline
147 \noindent
148 \normalsize
149 \noun{}    % LyX style for nouns (appears in lyx-generated files)
150 \pageref{}
151 \psfig{}
152 \ref{}
153 \rm
154 \sc
155 \sf
156 \sl
157 \t{ }
158 \textmd{}   % I had to add these (adk)
159 \textbf{}   %         :
160 \textrm{}   %         :
161 \textsf{}   %         :
162 \texttt{}   %         :
163 \textup{}   %         :
164 \textit{}   %         :
165 \textsl{}   %         :
166 \textsc{}   %         :
167 \textbar
168 \textbackslash
169 \textgreater
170 \textless
171 \scriptsize
172 \small
173 \tiny
174 \tt
175 \u{}
176 \underbar{}  % LyX generated files use underbar instead of underline
177 \underline{}
178 \v{}
179
180
181
182 % Units of measure.  These get used only within the arguments of
183 % commands that take some length quantity.
184
185 \depth
186 \fill
187 \height
188 \totalheight
189 \width
190
191 %
192 % Length variables
193 %
194
195 \abovedisplay
196 \abovedisplayshortskip
197 \arraycolsep
198 \arrayrulewidth
199 \arraystretch
200 \baselineskip
201 \baselinestretch
202 \belowdisplayskip
203 \belowdisplayshortskip
204 \bigskipamount
205 \columnsep
206 \columnseprule
207 \dblfloatsep
208 \dbltextfloatsep
209 \doublerulesep
210 \evensidemargin
211 \fboxrule
212 \fboxsep
213 \floatsep
214 \footnotesep
215 \footskip
216 \headheight
217 \headsep
218 \hoffset
219 \intextsep
220 \itemindent
221 \itemsep
222 \jot
223 \labelsep
224 \labelwidth
225 \leftmargin
226 \leftmargini
227 \leftmarginii
228 \leftmarginiii
229 \leftmarginiv
230 \leftmarginv
231 \leftmarginvi
232 \listparindent
233 \marginpush
234 \marginparsep
235 \marginparwidth
236 \mathindent
237 \medskipamount
238 \oddsidemargin
239 \paperheight
240 \paperwidth
241 \parindent
242 \parsep
243 \parskip
244 \partopsep
245 \rightmargin
246 \smallskipamount
247 \tabbingsep
248 \tabcolsep
249 \textfloatsep
250 \textheight
251 \textwidth
252 \topmargin
253 \topsep
254 \topskip
255 \unitlength
256 \voffset
257
258 %
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
264 % object.
265 %
266
267 \ % A "\" followed by a space.
268 \,
269 \/
270 \AA
271 \aa
272 \AE
273 \ae
274 \bigskip
275 \copyright
276 \dag
277 \ddag
278 \DH
279 \dh
280 \DJ
281 \dj
282 \dotfill
283 \dots
284 \guillemotleft
285 \guillemotright
286 \guilsinglleft
287 \guilsinglright
288 \hrulefill
289 \lq
290 \medskip
291 \NG
292 \ng
293 \O
294 \o
295 \OE
296 \oe
297 \P
298 \pounds
299 \quad
300 \qquad
301 \quotedblbase
302 \quotesinglebase
303 \rq
304 \S
305 \SS
306 \smallskip
307 \ss
308 \textbullet
309 \textemdash
310 \textendash
311 \textexclamdown
312 \textperiodcenter
313 \textquestiondown
314 \textquotedblleft
315 \textquotedblright
316 \textquoteleft
317 \textquoteright
318 \textvisiblespace
319 \textcompwordmark
320 \textquotedbl
321 \TH
322 \th
323 \thechapter
324 \theenumi
325 \theenumii
326 \theenumiii
327 \theenumiv
328 \theequation
329 \thefigure
330 \thefootnote
331 \thempfootnote
332 \thepage
333 \theparagraph
334 \thepart
335 \thesection
336 \thesubsection
337 \thesubsubsection
338 \thesubparagraph
339 \thetable
340 \vfill
341
342
343 %
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
347 % files. (jpw)
348 %
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.
355 %
356 % These are the commands you're mostly likely to want to redefine in your own
357 % syntax files
358 %
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.
363
364 \abstractname
365 \Acrobatmenu{}{}         % from the hyperref package
366 \addcontentsline{}{}{translate}
367 \address{}
368 \addtime{}
369 \addtocontents{}{translate}  % one argument was missing here (JMarc)
370 \addtocounter{}{}
371 \addtolength{}{}
372 \addvspace{}
373 \Alph{}
374 \alph{}
375 \alsoname
376 \and
377 \appendix % had to add this -Ak
378 \appendixname
379 \arabic{}
380 \author{}
381 \backmatter
382 %\bezier{}(,)(,)(,)    % picture
383 \bfdefault
384 \bibliographyunit[]
385 \bibname
386 \botfigrule
387 \bottomfraction
388 \caption[]{}
389 \cc{}
390 \ccname
391 \centering
392 \centerline{translate}
393 \chapter[]{}
394 \chapter*{}
395 \chaptername
396 \check{}
397 \CheckCommand{}[][]{}
398 \CheckCommand*{}[][]{}
399 \CheckCommandx{}[][]{} % xargs.sty
400 \CheckCommandx*{}[][]{} % xargs.sty
401 %\circle{}    % picture environment (JMarc)
402 %\circle*{}
403 \cleardoublepage
404 \clearpage
405 \closing{}
406 \color[]{,,}  % Two variants of this command and the next (jpw)
407 %\color{}
408 \colorspec[]{,,}{}
409 %\colorspec{}{}
410 %\contentsline{}{\numberline{}  }{}     % Appears only in .toc file (JMarc)
411 \contentsname
412 %\dashbox{}(,)[]{}   %picture
413 \date{}
414 \dblfigrule
415 \dblfloatpagefraction
416 \dbltopfraction
417 \DeclareRobustCommand{}[][]{}
418 \DeclareRobustCommand*{}[][]{}
419 \DeclareRobustCommandx{}[][]{} % xargs.sty
420 \DeclareRobustCommandx*{}[][]{} % xargs.sty
421 \def{}{}
422 \definecolor{}{}{,,}
423 \DeleteShortVerb{} % from doc.sty, argument must be verbatim
424 \DescribeMacro{}
425 \discretionary{}{}{}
426 \encl{}
427 \enclname
428 \enlargethispage{}
429 \enlargethispage*{}
430 \ensuremath{}
431 \extracolsep{}
432 \fbox{translate}
433 \fcolorbox[]{,,}{,,}{}  % Two variants of this command
434 %\fcolorbox{}{}{}
435 \figurename
436 \floatpagefraction
437 \flushbottom
438 \fnsymbol{}
439 \fontfamily{}
440 \fontseries{}
441 \fontshape{}
442 \fontsize{}{}
443 \footnotemark[]
444 \footnoterule
445 \footnotetext[]{translate}
446 % LaTeX has \frame{}, but beamer has \frame[]{}, so use the latter
447 \frame[]{translate}
448 \framebox[][]{translate} % Two variants of this command
449 %\framebox(,)[]{}    %  picture variant
450 \frenchspacing
451 \frontmatter
452 \fussy
453 \glossary{translate}
454 \glossaryentry{}{}       %only in .glo file (JMarc)
455 % \graphpaper[](,)(,)    %picture
456 \headtoname
457 \href{}{translate}       % from the hyperref package
458 \hspace{}
459 \hspace*{}
460 \hyperdef{}{}{translate} % from the hyperref package
461 \hyperlink{}{translate}  % from the hyperref package
462 \hyperref{}{}{translate} % from the hyperref package
463 \hypertarget{}{translate} % from the hyperref package
464 \hyphenation{}
465 \iflanguage{}{}{}
466 \ifthenelse
467 \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
468 \indent
469 \index{}
470 \indexentry{}{}        % only in .idx files (JMarc)
471 \indexname
472 \indexspace
473 \invisible
474 \itdefault
475 % This variant of \item might break reLyX!
476 %  \item{}   % Only appears in unsupported theindex environment
477 \k{}
478 \kill
479 \labelnumi
480 \labelnumii
481 \labelnumiii
482 \labelnumiv
483 \labelitemi
484 \labelitemii
485 \labelitemiii
486 \labelitemiv
487 \language{}
488 % We need this because the arguments must not be interpreted
489 \let{item}{item}
490 % \line(,){}    %picture
491 \linebreak[]
492 \linethickness{}
493 \listfigurename
494 \listofalgorithms %AMStex?
495 \listoffigures
496 \listoftables
497 \listtablename
498 \location{}
499 \mainmatter
500 \makebox[][]{translate}
501 %  \makebox(,)[]{}     %picture variant
502 \makeglossary
503 \makeindex
504 \makelabel{translate}
505 \makelabels
506 \maketitle
507 \MakeShortVerb{} % from doc.sty, argument must be verbatim
508 \markboth{}{translate}
509 \markright{translate}
510 \mathversion{}
511 \mbox{translate}
512 \mddefault
513 % \multiput(,)(,){}{}     %picture
514 \name{}
515 \newboolean{}
516 \newcommand{}[][]{}
517 \newcommand*{}[][]{}
518 \newcommandx{}[][]{} % xargs.sty
519 \newcommandx∗{}[][]{} % xargs.sty
520 \newcounter{}[]
521 \newenvironment{}[][]{}{}
522 \newenvironment*{}[][]{}{}
523 \newenvironmentx{}[][]{}{} % xargs.sty
524 \newenvironmentx*{}[][]{}{} % xargs.sty
525 \newfont{}{ scaled }
526 \newlength{}
527 \newpage
528 \newsavebox{}
529 \newtheorem{}[]{translate}[]
530 \nocite{}
531 \nocorr
532 \nolinebreak[]
533 \nonfrenchspacing
534 \nopagebreak[]
535 \normalcolor
536 \normalfont
537 \normalmarginpar
538 \notesname
539 \numberline{}{}
540 \onecolumn
541 \onlynotes{}
542 \onlyslides{}
543 \opening{}
544 % \oval(,)[]   %picture
545 \pagebreak[]
546 \pagecolor[]{,,}
547 % \pagecolor{}    % tex2lyx can first care about this when fileformat 351 is supported
548 \pagename
549 \pagenumbering{}
550 \par
551 \paragraph[]{}
552 \paragraph*{}
553 %\parbox[]{}{}            % reLyX treats next line same as this one (adk)
554 \parbox[][][]{}{translate}
555 \part[]{}
556 \part*{}
557 \partname
558 \pdfbookmark[]{}{}       % from the hyperref package
559 \pdfstringdef{}{}        % from the hyperref package
560 \poptabs
561 \prefacename
562 \printindex
563 \protect
564 \providecommand{}[][]{}
565 \providecommand*{}[][]{}
566 \providecommandx{}[][]{} % xargs.sty
567 \providecommandx*{}[][]{} % xargs.sty
568 \ps
569 \psfrag{}[][][][]{translate}
570 \psfrag*{}[][][][]{translate}
571 \pushtabs
572 % \put(,){}     %picture
573 \putbib[]
574 % \qbezier[](,)(,)(,)     %picture
575 \r{}
576 \raggedbottom
577 \raggedleft
578 \raggedright
579 \raisebox{}[][]{translate}
580 \reflectbox{translate}
581 \refname
582 \refstepcounter{}
583 \renewcommand{}[][]{}
584 \renewcommand*{}[][]{}
585 \renewcommandx{}[][]{} % xargs.sty
586 \renewcommandx∗{}[][]{} % xargs.sty
587 \renewenvironment{}[][]{}{}
588 \renewenvironment*{}[][]{}{}
589 %\renewenvironment{}[]{}{}
590 \renewenvironmentx{}[][]{}{} % xargs.sty
591 \renewenvironmentx*{}[][]{}{} % xargs.sty
592 \resizebox{}{}{translate}
593 \resizebox*{}{}{translate}
594 \reversemarginpar
595 \rmdefault
596 \Roman{}
597 \roman{}
598 \rotatebox{}{translate}
599 \rule[]{}{}
600 \samepage
601 \savebox{}[][]{}
602 % \savebox{}(,)[]{}   %picture
603 \sbox{}{}
604 \scalebox{}[]{translate}
605 \scdefault
606 \section[]{}
607 \section*{}
608 \see
609 \seename
610 \selectfont
611 \selectlanguage{}
612 \setboolean{}{}
613 \setcounter{}{}
614 \setlength{}{}
615 \settime{}
616 \settodepth{}{}
617 \settoheight{}{}
618 \settowidth{}{}
619 \sfdefault
620 \shortstack[]{translate}
621 \showhyphens{}
622 \signature{}
623 \sldefault
624 \sloppy
625 \stepcounter{}
626 \stretch{}
627 %\subitem{}   % unsupported theindex environment
628 \subjectname
629 \subfigure[]{translate}
630 \subparagraph[]{}  % These "sub" versions of the sectioning commands weren't
631 \subparagraph*{}   % in the original commandlist for some reason (adk)
632 \subsection[]{}    %
633 \subsection*{}     %
634 \subsubsection[]{} %
635 \subsubsection*{}  %
636 %\subsubitem{}   % unsupported theindex environment
637 \suppressfloats[]
638 \symbol{}
639 \tablename
640 \tableofcontents
641 \tabularnewline[]
642 \telephone{translate}
643 \texorpdfstring{}{}      % from the hyperref package
644 \textcircled{translate}
645 \textcolor[]{,,}{translate}
646 %\textcolor{}{}
647 \textbf{translate}     % hardcoded, but needed nevertheless for \let\xyz\textbf
648 \textnormal{translate} % hardcoded, but needed nevertheless for \let\xyz\textnormal
649 \textmd{translate}     % hardcoded, but needed nevertheless for \let\xyz\textmd
650 \textit{translate}     % hardcoded, but needed nevertheless for \let\xyz\textit
651 \textrm{translate}     % hardcoded, but needed nevertheless for \let\xyz\textrm
652 \textsc{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsc
653 \textsf{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsf
654 \textsl{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsl
655 \texttt{translate}     % hardcoded, but needed nevertheless for \let\xyz\texttt
656 \textup{translate}     % hardcoded, but needed nevertheless for \let\xyz\textup
657 \textfraction
658 \thanks{translate}
659 \thicklines
660 \thinlines
661 \thispagestyle{}
662 \title{}
663 \today
664 \topfigrule
665 \topfraction
666 \ttdefault
667 \twocolumn[]
668 \updefault
669 \usebox{}
670 \usecounter{}
671 \usefont{}{}{}{}
672 \usepackage[]{}[]
673 \value{}
674 % \vector(,){}   %picture
675 % \verb||     % tex2lyx fails on \verb, see http://www.lyx.org/trac/ticket/4468 and http://www.lyx.org/trac/ticket/5408
676 % \verb*||
677 \visible
678 \vline
679 \vspace{}
680 \vspace*{}
681 \whiledo{}{}
682
683 % LaTeX environments.
684 % They have always one extra "argument":
685 % It contains "translate" if the contents of the environment contains normal
686 % LaTeX code that can be translated to LyX.
687 \begin{environments}
688 bibunit[]{translate}
689 psmatrix[]{}
690 thebibliography{}
691 \end{environments}
692
693 % Environments that start math mode.
694 % $...$, $$...$$, \(...\) and \[...\] are hardcoded in tex2lyx.
695 % The arguments are currently ignored.
696 \begin{mathenvironments}
697 equation
698 equation*
699 eqnarray
700 eqnarray*
701 align
702 align*
703 gather
704 gather*
705 multline
706 multline*
707 math
708 displaymath
709 flalign
710 flalign
711 % These require extra args
712 alignat
713 alignat*
714 xalignat
715 xalignat*
716 xxalignat
717 % These are not known by LyX but work nevertheless:
718 empheq
719 \end{mathenvironments}
720
721 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
722 % Sweave stuff
723 \Sexpr{}
724 \SweaveOpts{}
725 \SweaveInput{}
726 \SweaveSyntax{}
727 \Scoderef{}
728
729 \Rcode{}
730 \Robject{}
731 \Rcommand{}
732 \Rfunction{}
733 \Rfunarg{}
734 \Rpackage{}
735 \Rclass{}
736 \Rmethod{}