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