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