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