This commit was manufactured by cvs2svn to create tag 'lyx-1_3_5'.
[lyx.git] / lib / reLyX / syntax.default
blob6cde04d559dc8b2326b3c95ab681cef1b495da94
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
11 % arguments...
13 %    There are almost certainly commands in here we don't need -- but that
14 % shouldn't matter
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. 
31 \hfill
36 \LaTeX
37 \LaTeXe
38 \LyX
39 \ldots
40 \TeX
42 \"{}
44 \'{}
48 \.{}
49 \={}
52 \\[]
53 \\*[]
54 \^{}
55 \`{}
56 \~{}
57 \b{}
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{}
61 %\begin{}{}{}
62 %\begin{}[][][]{}
63 %\begin{}(,)
64 %\begin{}(,)(,)
65 %\begin{}{}[]{}
66 \bf
67 \bibitem[]{}
68 \bibliography{}
69 \bibliographystyle{}
70 \c{}
71 \cite[]{}
73 % Natbib citations can usually have two optional args, but LyX currently
74 % supports only one.
75 \citet[]{}
76 \Citet[]{}
77 \citet*[]{}
78 \Citet*[]{}
80 \citealt[]{}
81 \Citealt[]{}
82 \citealt*[]{}
83 \Citealt*[]{}
85 \citep[]{}
86 \Citep[]{}
87 \citep*[]{}
88 \Citep*[]{}
90 \citealp[]{}
91 \Citealp[]{}
92 \citealp*[]{}
93 \Citealp*[]{}
95 \citeauthor[]{}
96 \Citeauthor[]{}
97 \citeauthor*[]{}
98 \Citeauthor*[]{}
100 \citeyear[]{}
101 \citeyearpar[]{}
103 \cline{ - }
104 \d{}
105 \documentclass[]{}[]
106 \documentstyle[]{}
108 \emph{}
109 % \end{}   %reLyX will get confused if \end is found in this file!
110 \epsf{}
111 \epsfbox{}
112 \epsffile{}
113 \epsfig{}
114 \epsfxsize
115 \epsfysize
116 \footnote[]{}
117 \footnotesize
118 \H{}
119 \hline
120 \huge
121 \Huge
122 \include{}
123 \includegraphics[,][,]{} % btw, LyX doesn't support graphicx, just graphics
124 \input{}
126 \item[]  % Has two variants (jpw) Other variant is unsupported (adk)
127 \label{}
128 \large
129 \Large
130 \LARGE
131 \marginpar[]{}
132 \multicolumn{}{}{}
133 \newline
134 \noindent
135 \normalsize
136 \noun{}    % LyX style for nouns (appears in lyx-generated files)
137 \pageref{}
138 \psfig{}
139 \ref{}
144 \t{ }
145 \textmd{}   % I had to add these (adk)
146 \textbf{}   %         :
147 \textrm{}   %         :
148 \textsf{}   %         :
149 \texttt{}   %         :
150 \textup{}   %         :
151 \textit{}   %         :
152 \textsl{}   %         :
153 \textsc{}   %         :
154 \textbar
155 \textbackslash
156 \textgreater
157 \textless
158 \scriptsize
159 \small
160 \tiny
162 \u{}
163 \underbar{}  % LyX generated files use underbar instead of underline
164 \underline{}
165 \v{}
169 % Units of measure.  These get used only within the arguments of
170 % commands that take some length quantity.
172 \depth
173 \fill
174 \height
175 \totalheight
176 \width
179 % Length variables
182 \abovedisplay
183 \abovedisplayshortskip
184 \arraycolsep
185 \arrayrulewidth
186 \arraystretch
187 \baselineskip
188 \baselinestretch
189 \belowdisplayskip
190 \belowdisplayshortskip
191 \bigskipamount
192 \columnsep
193 \columnseprule
194 \dblfloatsep
195 \dbltextfloatsep
196 \doublerulesep
197 \evensidemargin
198 \fboxrule
199 \fboxsep
200 \floatsep
201 \footnotesep
202 \footskip
203 \headheight
204 \headsep
205 \hoffset
206 \intextsep
207 \itemindent
208 \itemsep
209 \jot
210 \labelsep
211 \labelwidth
212 \leftmargin
213 \leftmargini
214 \leftmarginii
215 \leftmarginiii
216 \leftmarginiv
217 \leftmarginv
218 \leftmarginvi
219 \listparindent
220 \marginpush
221 \marginparsep
222 \marginparwidth
223 \mathindent
224 \medskipamount
225 \oddsidemargin
226 \paperheight
227 \paperwidth
228 \parindent
229 \parsep
230 \parskip
231 \partopsep
232 \rightmargin
233 \smallskipamount
234 \tabbingsep
235 \tabcolsep
236 \textfloatsep
237 \textheight
238 \textwidth
239 \topmargin
240 \topsep
241 \topskip
242 \unitlength
243 \voffset
246 % Commands that act like single characters and insert something.  This
247 % excludes the commands that place accents on characters, since they
248 % require arguments, whereas these don't.  Also excluded are commands
249 % that insert a specified amount of space [again, that requires
250 % arguments] and those that insert lists, since a list isn't a single
251 % object.
253 % I had to remove things that TeX.pm doesn't recognize as a token, and hardcode
254 %   those into reLyX. This included !' ?' -- --- and maybe some other things
256 \ % A "\" followed by a space.
263 \bigskip
264 \copyright
265 \dag
266 \ddag
271 \dotfill
272 \dots
273 \guillemotleft
274 \guillemotright
275 \guilsinglleft
276 \guilsinglright
277 \hrulefill
279 \medskip
287 \pounds
288 \quad
289 \qquad
290 \quotedblbase
291 \quotesinglebase
295 \smallskip
297 \textbullet
298 \textemdash
299 \textendash
300 \textexclamdown
301 \textperiodcenter
302 \textquestiondown
303 \textquotedblleft
304 \textquotedblright
305 \textquoteleft
306 \textquoteright
307 \textvisiblespace
308 \textcompwordmark
309 \textquotedbl
312 \thechapter
313 \theenumi
314 \theenumii
315 \theenumiii
316 \theenumiv
317 \theequation
318 \thefigure
319 \thefootnote
320 \thempfootnote
321 \thepage
322 \theparagraph
323 \thepart
324 \thesection
325 \thesubsection
326 \thesubsubsection
327 \thesubparagraph
328 \thetable
329 \vfill
333 % The LaTeX commands.  As per Alejandro's request, I've omitted all of
334 % the math commands he appears to support in Mathed.  I'm also
335 % omitting commands used primarily for defining new class and style
336 % files. (jpw)
338 % For some reason, John didn't write {} after \" and some of the other
339 %    accent commands (adk)
340 % He also didn't include the \textsc{} equivalent to {\sc}
341 % Because any commands with arguments in parentheses (rather than braces or
342 %    brackets) appear in a picture environment, which reLyX doesn't support,
343 %    we can comment those out.
345 % These are the commands you're mostly likely to want to redefine in your own
346 % syntax files
348 % Arguments whose text is "translate" will have regular LaTeX in them (as
349 % opposed to commands with special syntax) which should be translated by
350 % reLyX like regular LaTeX. \mbox{} is an obvious example. LyX doesn't
351 % support it, but only the "\mbox{" and the "}" need to be in TeX mode.
353 \abstractname
354 \addcontentsline{}{}{translate}
355 \address{}
356 \addtime{}
357 \addtocontents{}{translate}  % one argument was missing here (JMarc)
358 \addtocounter{}{}
359 \addtolength{}{}
360 \addvspace{}
361 \Alph{}
362 \alph{}
363 \alsoname
364 \and
365 \appendix % had to add this -Ak
366 \appendixname
367 \arabic{}
368 \author{}
369 \backmatter
370 %\bezier{}(,)(,)(,)    % picture
371 \bfdefault
372 \bibname
373 \botfigrule
374 \bottomfraction
375 \caption[]{}
376 \cc{}
377 \ccname
378 \centering
379 \centerline{translate}
380 \chapter[]{}
381 \chapter*{}
382 \chaptername
383 \check{}
384 %\circle{}    % picture environment (JMarc)
385 %\circle*{}
386 \cleardoublepage
387 \clearpage
388 \closing{}
389 \color[]{,,}  % Two variants of this command and the next (jpw)
390 % \color{}    %  This variant doesn't matter to reLyX (adk)
391 \colorspec[]{,,}{}
392 %\colorspec{}{}    %  This variant doesn't matter to reLyX (adk)
393 %\contentsline{}{\numberline{}  }{}     % Appears only in .toc file (JMarc)
394 \contentsname
395 % \dashbox{}(,)[]{}   %picture
396 \date{}
397 \dblfigrule
398 \dblfloatpagefraction
399 \dbltopfraction
400 \def{}{}
401 \definecolor{}{}{,,}
402 \discretionary{}{}{}
403 \encl{}
404 \enclname
405 \enlargethispage{}
406 \enlargethispage*{}
407 \ensuremath{}
408 \extracolsep{}
409 \fbox{translate}
410 \fcolorbox[]{,,}{,,}{}  % Two variants of this command
411 %\fcolorbox{}{}{}    %  This variant doesn't matter to reLyX (adk)
412 \figurename
413 \floatpagefraction
414 \flushbottom
415 \fnsymbol{}
416 \fontfamily{}
417 \fontseries{}
418 \fontshape{}
419 \fontsize{}{}
420 \footnotemark[]
421 \footnoterule
422 \footnotetext[]{translate}
423 \frame{translate}
424 \framebox[][]{translate} % Two variants of this command
425 %\framebox(,)[]{}    %  picture variant
426 \frenchspacing
427 \frontmatter
428 \fussy
429 \glossary{translate}
430 \glossaryentry{}{}       %only in .glo file (JMarc)
431 % \graphpaper[](,)(,)    %picture
432 \headtoname
433 \hspace{}
434 \hspace*{}
435 \hyphenation{}
436 \iflanguage{}{}{}
437 \ifthenelse
438 \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
439 \indent
440 \index{}
441 \indexentry{}{}        % only in .idx files (JMarc)
442 \indexname
443 \indexspace
444 \invisible
445 \itdefault
446 % This variant of \item might break reLyX!
447 %  \item{}   % Only appears in unsupported theindex environment
448 \k{}
449 \kill
450 \labelnumi
451 \labelnumii
452 \labelnumiii
453 \labelnumiv
454 \labelitemi
455 \labelitemii
456 \labelitemiii
457 \labelitemiv
458 \language{}
459 % \line(,){}    %picture
460 \linebreak[]
461 \linethickness{}
462 \listfigurename
463 \listofalgorithms %AMStex?
464 \listoffigures
465 \listoftables
466 \listtablename
467 \location{}
468 \mainmatter
469 \makebox[][]{translate}
470 %  \makebox(,)[]{}     %picture variant
471 \makeglossary
472 \makeindex
473 \makelabel{translate}
474 \makelabels
475 \maketitle
476 \markboth{}{translate}
477 \markright{translate}
478 \mathversion{}
479 \mbox{translate}
480 \mddefault
481 % \multiput(,)(,){}{}     %picture
482 \name{}
483 \newboolean{}
484 \newcommand{}[][]{}
485 \newcommand*{}[][]{}
486 %\newcommand{}[]{}    % reLyX doesn't care about missing optarg
487 \newcounter{}[]
488 \newenvironment{}[][]{}{}
489 \newenvironment*{}[][]{}{}
490 % \newenvironment{}[]{}{}    % reLyX doesn't care about missing optarg
491 \newfont{}{ scaled }
492 \newlength{}
493 \newpage
494 \newsavebox{}
495 \newtheorem{}[]{translate}[]
496 \nocite{}
497 \nocorr
498 \nolinebreak[]
499 \nonfrenchspacing
500 \nopagebreak[]
501 \normalcolor
502 \normalfont
503 \normalmarginpar
504 \notesname
505 \numberline{}{}
506 \onecolumn
507 \onlynotes{}
508 \onlyslides{}
509 \opening{}
510 % \oval(,)[]   %picture
511 \pagebreak[]
512 \pagecolor[]{,,}
513 % \pagecolor{}    % reLyX doesn't care about this version
514 \pagename
515 \pagenumbering{}
516 \par
517 \paragraph[]{}
518 \paragraph*{}
519 %\parbox[]{}{}            % reLyX treats next line same as this one (adk)
520 \parbox[][][]{}{translate}
521 \part[]{}
522 \part*{}
523 \partname
524 \poptabs
525 \prefacename
526 \printindex
527 \protect
528 \providecommand{}[][]{}
529 \providecommand*{}[][]{}
531 \pushtabs
532 % \put(,){}     %picture
533 % \qbezier[](,)(,)(,)     %picture
534 \r{}
535 \raggedbottom
536 \raggedleft
537 \raggedright
538 \raisebox{}[][]{translate}
539 \reflectbox{translate}
540 \refname
541 \refstepcounter{}
542 \renewcommand{}[][]{}
543 \renewcommand*{}[][]{}
544 % \renewcommand{}[]{}   %reLyX doesn't care about variants
545 \renewenvironment{}[][]{}{}
546 \renewenvironment*{}[][]{}{}
547 % \renewenvironment{}[]{}{}
548 \resizebox{}{}{translate}
549 \resizebox*{}{}{translate}
550 \reversemarginpar
551 \rmdefault
552 \Roman{}
553 \roman{}
554 \rotatebox{}{translate}
555 \rule[]{}{}
556 \samepage
557 \savebox{}[][]{}
558 % \savebox{}(,)[]{}   %picture
559 \sbox{}{}
560 \scalebox{}[]{translate}
561 \scdefault
562 \section[]{}
563 \section*{}
564 \see
565 \seename
566 \selectfont
567 \selectlanguage{}
568 \setboolean{}{}
569 \setcounter{}{}
570 \setlength{}{}
571 \settime{}
572 \settodepth{}{}
573 \settoheight{}{}
574 \settowidth{}{}
575 \sfdefault
576 \shortstack[]{translate}
577 \showhyphens{}
578 \signature{}
579 \sldefault
580 \sloppy
581 \stepcounter{}
582 \stretch{}
583 %\subitem{}   % unsupported theindex environment
584 \subjectname
585 \subparagraph[]{}  % These "sub" versions of the sectioning commands weren't
586 \subparagraph*{}   % in the original commandlist for some reason (adk)
587 \subsection[]{}    %
588 \subsection*{}     %
589 \subsubsection[]{} %
590 \subsubsection*{}  %
591 %\subsubitem{}   % unsupported theindex environment
592 \suppressfloats[]
593 \symbol{}
594 \tablename
595 \tableofcontents
596 \tabularnewline[]
597 \telephone{translate}
598 \textcircled{translate}
599 \textcolor[]{,,}{translate}
600 %\textcolor{}{}      % reLyX doesn't care about this version
601 \textnormal{translate}
602 \textfraction
603 \thanks{}
604 \thicklines
605 \thinlines
606 \thispagestyle{}
607 \title{}
608 \today
609 \topfigrule
610 \topfraction
611 \ttdefault
612 \twocolumn[]
613 \updefault
614 \usebox{}
615 \usecounter{}
616 \usefont{}{}{}{}
617 \usepackage[]{}[]
618 \value{}
619 % \vector(,){}   %picture
620 % \verb||     % reLyX needs \verb to be hardcoded
621 % \verb*||
622 \visible
623 \vline
624 \vspace{}
625 \vspace*{}
626 \whiledo{}{}
629 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
630 % There are some environments which reLyX doesn't have an equivalent for.
631 % However, *within* that environment, simple translatable LaTeX appears.
632 % (E.g., this doesn't include something like "picture" because the TeX
633 % parser can't (yet?) understand the parentheses as being delimiters of
634 % coordinates rather than plain text.)
635 %    The environment names are placed in a "reLyXre" environment.
636 %    There aren't very many of these; the idea is that the user can add
637 % user-defined environments in personal syntax files
639 \begin{reLyXre}
640 % filecontents can only appear before \documentclass command, so not worth it
641 fussypar
642 sloppypar
643 % slide only appears in the slides class, but if we don't put this in, then
644 % the whole document will be copied in TeX mode!
645 slide
646 titlepage
647 \end{reLyXre}
649 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
650 % There are some math commands which LyX doesn't support. If there's an
651 % equivalent command that it *does* support, then we might as well
652 % translate it.
653 %    While copying things in math mode, reLyX will replace anything of the
654 % following commands with (exactly) whatever text is in braces, so, e.g.,
655 % $x\sb{a}$ will be converted to $x_{a}$ in the LyX file.
656 %    In most cases, this simply avoids "evil red text" in math mode, but
657 % in a couple cases, it actually fixes things (e.g. '\ ')
658 %    Tokens to replace should be "normal" tokens, backslash followed by a
659 % nonletter or one or more letters. (Token may also have * at the end.)
661 \begin{reLyXmt}
662 \sb    {_}
663 \sp    {^}
664 \|     {\Vert}
665 \vert  {|}
666 \      {\,\,}    % That's '\ ', same length (6/18 quad) as two '\,' tokens
667 \to    {\rightarrow}
668 \gets  {\leftarrow}
669 \le    {\leq}
670 \ge    {\geq}
671 \ensuremath   {}  % If it's in math mode, \ensuremath is unnec.
672 \end{reLyXmt}