]> git.lyx.org Git - lyx.git/blob - lib/syntax.default
Add dviluatex format, so that the appropriate form of LaTeX can be
[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 % tex2lyx 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 % "translate" should be specified for as many arguments aspossible.
364 % Besides the better on-screen display of the contents (a math inset looks
365 % better than a formula in ERT), it enables LyX to apply some fixes to LaTeX
366 % limitations: For example, footnotes in section headings do not work in
367 % LaTeX, but LyX produces preamble code to fix that. Of course this works only
368 % for footnote insets and not for footnotes in ERT. Example:
369 % \section{title \texorpdfstring{\footnote{foo}}{bar}}
370 % is some code that may occur in a .tex file created by LyX. The re-import
371 % works only because the first argument of \texorpdfstring is specified as
372 % translatable in this file.
373 % If a command puts the contents of an argument inside an own group, use
374 % "group" instead of "translate". Otherwise things like font changes would
375 % survive the end of the group in LyX (bug 3036).
376
377 \abstractname
378 \Acrobatmenu{}{}         % from the hyperref package
379 \addcontentsline{}{}{translate}
380 \address{}
381 \addtime{}
382 \addtocontents{}{translate}  % one argument was missing here (JMarc)
383 \addtocounter{}{}
384 \addtolength{}{}
385 \addvspace{}
386 \Alph{}
387 \alph{}
388 \alsoname
389 \and
390 \appendix % had to add this -Ak
391 \appendixname
392 \arabic{}
393 \author{}
394 \backmatter
395 %\bezier{}(,)(,)(,)    % picture
396 \bfdefault
397 \bibliographyunit[]
398 \bibname
399 \botfigrule
400 \bottomfraction
401 \caption[]{}
402 \cc{}
403 \ccname
404 \centering
405 \centerline{translate}
406 \chapter[]{}
407 \chapter*{}
408 \chaptername
409 \check{}
410 \CheckCommand{}[][]{}
411 \CheckCommand*{}[][]{}
412 \CheckCommandx{}[][]{} % xargs.sty
413 \CheckCommandx*{}[][]{} % xargs.sty
414 %\circle{}    % picture environment (JMarc)
415 %\circle*{}
416 \cleardoublepage
417 \clearpage
418 \closing{}
419 \color[]{,,}  % Two variants of this command and the next (jpw)
420 %\color{}
421 \colorspec[]{,,}{}
422 %\colorspec{}{}
423 %\contentsline{}{\numberline{}  }{}     % Appears only in .toc file (JMarc)
424 \contentsname
425 %\dashbox{}(,)[]{}   %picture
426 \date{}
427 \dblfigrule
428 \dblfloatpagefraction
429 \dbltopfraction
430 \DeclareRobustCommand{}[][]{}
431 \DeclareRobustCommand*{}[][]{}
432 \DeclareRobustCommandx{}[][]{} % xargs.sty
433 \DeclareRobustCommandx*{}[][]{} % xargs.sty
434 \def{}{}
435 \definecolor{}{}{,,}
436 \DeleteShortVerb{} % from doc.sty, argument must be verbatim
437 \DescribeMacro{}
438 \discretionary{}{}{}
439 \encl{}
440 \enclname
441 \enlargethispage{}
442 \enlargethispage*{}
443 \ensuremath{}
444 \extracolsep{}
445 \fbox{translate}
446 \fcolorbox[]{,,}{,,}{}  % Two variants of this command
447 %\fcolorbox{}{}{}
448 \figurename
449 \floatpagefraction
450 \flushbottom
451 \fnsymbol{}
452 \fontfamily{}
453 \fontseries{}
454 \fontshape{}
455 \fontsize{}{}
456 \footnotemark[]
457 \footnoterule
458 \footnotetext[]{translate}
459 % LaTeX has \frame{}, but beamer has \frame[]{}, so use the latter
460 \frame[]{translate}
461 \framebox[][]{translate} % Two variants of this command
462 %\framebox(,)[]{}    %  picture variant
463 \frenchspacing
464 \frontmatter
465 \fussy
466 \glossary{translate}
467 \glossaryentry{}{}       %only in .glo file (JMarc)
468 % \graphpaper[](,)(,)    %picture
469 \headtoname
470 \href{}{translate}       % from the hyperref package
471 \hspace{}
472 \hspace*{}
473 \hyperdef{}{}{translate} % from the hyperref package
474 \hyperlink{}{translate}  % from the hyperref package
475 \hyperref{}{}{translate} % from the hyperref package
476 \hypertarget{}{translate} % from the hyperref package
477 \hyphenation{}
478 \iflanguage{}{}{}
479 \ifthenelse
480 \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
481 \indent
482 \index{}
483 \indexentry{}{}        % only in .idx files (JMarc)
484 \indexname
485 \indexspace
486 \invisible
487 \itdefault
488 % This variant of \item might break reLyX!
489 %  \item{}   % Only appears in unsupported theindex environment
490 \k{}
491 \kill
492 \labelnumi
493 \labelnumii
494 \labelnumiii
495 \labelnumiv
496 \labelitemi
497 \labelitemii
498 \labelitemiii
499 \labelitemiv
500 \language{}
501 % We need this because the arguments must not be interpreted
502 \let{item}{item}
503 % \line(,){}    %picture
504 \linebreak[]
505 \linethickness{}
506 \listfigurename
507 \listofalgorithms %AMStex?
508 \listoffigures
509 \listoftables
510 \listtablename
511 \location{}
512 \mainmatter
513 \makebox[][]{translate}
514 %  \makebox(,)[]{}     %picture variant
515 \makeglossary
516 \makeindex
517 \makelabel{translate}
518 \makelabels
519 \maketitle
520 \MakeShortVerb{} % from doc.sty, argument must be verbatim
521 \markboth{group}{group}
522 \markright{group}
523 \mathversion{}
524 \mbox{translate}
525 \mddefault
526 % \multiput(,)(,){}{}     %picture
527 \name{}
528 \newboolean{}
529 \newcommand{}[][]{}
530 \newcommand*{}[][]{}
531 \newcommandx{}[][]{} % xargs.sty
532 \newcommandx∗{}[][]{} % xargs.sty
533 \newcounter{}[]
534 \newenvironment{}[][]{}{}
535 \newenvironment*{}[][]{}{}
536 \newenvironmentx{}[][]{}{} % xargs.sty
537 \newenvironmentx*{}[][]{}{} % xargs.sty
538 \newfont{}{ scaled }
539 \newlength{}
540 \newpage
541 \newsavebox{}
542 \newtheorem{}[]{translate}[]
543 \nocite{}
544 \nocorr
545 \nolinebreak[]
546 \nonfrenchspacing
547 \nopagebreak[]
548 \normalcolor
549 \normalfont
550 \normalmarginpar
551 \notesname
552 \numberline{}{}
553 \onecolumn
554 \onlynotes{}
555 \onlyslides{}
556 \opening{}
557 % \oval(,)[]   %picture
558 \pagebreak[]
559 \pagecolor[]{,,}
560 % \pagecolor{}    % tex2lyx can first care about this when fileformat 351 is supported
561 \pagename
562 \pagenumbering{}
563 \par
564 \paragraph[]{}
565 \paragraph*{}
566 %\parbox[]{}{}            % reLyX treats next line same as this one (adk)
567 \parbox[][][]{}{translate}
568 \part[]{}
569 \part*{}
570 \partname
571 \pdfbookmark[]{}{}       % from the hyperref package
572 \pdfstringdef{}{}        % from the hyperref package
573 \poptabs
574 \prefacename
575 \printindex
576 \protect
577 \providecommand{}[][]{}
578 \providecommand*{}[][]{}
579 \providecommandx{}[][]{} % xargs.sty
580 \providecommandx*{}[][]{} % xargs.sty
581 \ps
582 \psfrag{}[][][][]{translate}
583 \psfrag*{}[][][][]{translate}
584 \pushtabs
585 % \put(,){}     %picture
586 \putbib[]
587 % \qbezier[](,)(,)(,)     %picture
588 \r{}
589 \raggedbottom
590 \raggedleft
591 \raggedright
592 \raisebox{}[][]{translate}
593 \reflectbox{translate}
594 \refname
595 \refstepcounter{}
596 \renewcommand{}[][]{}
597 \renewcommand*{}[][]{}
598 \renewcommandx{}[][]{} % xargs.sty
599 \renewcommandx∗{}[][]{} % xargs.sty
600 \renewenvironment{}[][]{}{}
601 \renewenvironment*{}[][]{}{}
602 %\renewenvironment{}[]{}{}
603 \renewenvironmentx{}[][]{}{} % xargs.sty
604 \renewenvironmentx*{}[][]{}{} % xargs.sty
605 \resizebox{}{}{translate}
606 \resizebox*{}{}{translate}
607 \reversemarginpar
608 \rmdefault
609 \Roman{}
610 \roman{}
611 \rotatebox{}{translate}
612 \rule[]{}{}
613 \samepage
614 \savebox{}[][]{}
615 % \savebox{}(,)[]{}   %picture
616 \sbox{}{}
617 \scalebox{}[]{translate}
618 \scdefault
619 \section[]{}
620 \section*{}
621 \see
622 \seename
623 \selectfont
624 \selectlanguage{}
625 \setboolean{}{}
626 \setcounter{}{}
627 \setlength{}{}
628 \settime{}
629 \settodepth{}{}
630 \settoheight{}{}
631 \settowidth{}{}
632 \sfdefault
633 \shortstack[]{translate}
634 \showhyphens{}
635 \signature{}
636 \sldefault
637 \sloppy
638 \stepcounter{}
639 \stretch{}
640 %\subitem{}   % unsupported theindex environment
641 \subjectname
642 \subfigure[]{translate}
643 \subparagraph[]{}  % These "sub" versions of the sectioning commands weren't
644 \subparagraph*{}   % in the original commandlist for some reason (adk)
645 \subsection[]{}    %
646 \subsection*{}     %
647 \subsubsection[]{} %
648 \subsubsection*{}  %
649 %\subsubitem{}   % unsupported theindex environment
650 \suppressfloats[]
651 \symbol{}
652 \tablename
653 \tableofcontents
654 \tabularnewline[]
655 \telephone{translate}
656 \texorpdfstring{translate}{translate} % from the hyperref package
657 \textcircled{translate}
658 \textcolor[]{,,}{translate}
659 %\textcolor{}{}
660 \textbf{translate}     % hardcoded, but needed nevertheless for \let\xyz\textbf
661 \textnormal{translate} % hardcoded, but needed nevertheless for \let\xyz\textnormal
662 \textmd{translate}     % hardcoded, but needed nevertheless for \let\xyz\textmd
663 \textit{translate}     % hardcoded, but needed nevertheless for \let\xyz\textit
664 \textrm{translate}     % hardcoded, but needed nevertheless for \let\xyz\textrm
665 \textsc{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsc
666 \textsf{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsf
667 \textsl{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsl
668 \texttt{translate}     % hardcoded, but needed nevertheless for \let\xyz\texttt
669 \textup{translate}     % hardcoded, but needed nevertheless for \let\xyz\textup
670 \textfraction
671 \thanks{translate}
672 \thicklines
673 \thinlines
674 \thispagestyle{}
675 \title{}
676 \today
677 \topfigrule
678 \topfraction
679 \ttdefault
680 \twocolumn[]
681 \updefault
682 \usebox{}
683 \usecounter{}
684 \usefont{}{}{}{}
685 \usepackage[]{}[]
686 \value{}
687 % \vector(,){}   %picture
688 % \verb||     % tex2lyx fails on \verb, see http://www.lyx.org/trac/ticket/4468 and http://www.lyx.org/trac/ticket/5408
689 % \verb*||
690 \visible
691 \vline
692 \vspace{}
693 \vspace*{}
694 \whiledo{}{}
695
696 % LaTeX environments.
697 % They have always one extra "argument":
698 % It contains "translate" if the contents of the environment contains normal
699 % LaTeX code that can be translated to LyX.
700 \begin{environments}
701 bibunit[]{translate}
702 psmatrix[]{}
703 theorem[]{translate} % from amsthm.sty and probably others
704 thebibliography{}
705 \end{environments}
706
707 % Environments that start math mode.
708 % $...$, $$...$$, \(...\) and \[...\] are hardcoded in tex2lyx.
709 % The arguments are currently ignored (apart from displaymath).
710 \begin{mathenvironments}
711 equation{displaymath}
712 equation*{displaymath}
713 eqnarray{displaymath}
714 eqnarray*{displaymath}
715 align{displaymath}
716 align*{displaymath}
717 gather{displaymath}
718 gather*{displaymath}
719 multline{displaymath}
720 multline*{displaymath}
721 math{}
722 displaymath{displaymath}
723 flalign{displaymath}
724 flalign{displaymath}
725 % These require extra args
726 alignat{}{displaymath}
727 alignat*{displaymath}
728 xalignat{}{displaymath}
729 xalignat*{}{displaymath}
730 xxalignat{}{displaymath}
731 % These are not known by LyX but work nevertheless:
732 empheq[]{}{displaymath}
733 \end{mathenvironments}
734
735 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
736 % Sweave stuff
737 \Sexpr{}
738 \SweaveOpts{}
739 \SweaveInput{}
740 \SweaveSyntax{}
741 \Scoderef{}
742
743 \Rcode{}
744 \Robject{}
745 \Rcommand{}
746 \Rfunction{}
747 \Rfunarg{}
748 \Rpackage{}
749 \Rclass{}
750 \Rmethod{}