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