]> git.lyx.org Git - lyx.git/blob - lib/syntax.default
Adding hebrew quotation marks (bug #12849).
[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 \bibbysection[] % biblatex
68 \bibitem[]{}
69 \bibliography{}
70 \bibliographystyle{}
71 \addbibresource{} % biblatex
72 \c{}
73 \cite[]{}
74
75 % Natbib citations can usually have two optional args
76 \citet[][]{}
77 \Citet[][]{}
78 \citet*[][]{}
79 \Citet*[][]{}
80
81 \citealt[][]{}
82 \Citealt[][]{}
83 \citealt*[][]{}
84 \Citealt*[][]{}
85
86 \citep[][]{}
87 \Citep[][]{}
88 \citep*[][]{}
89 \Citep*[][]{}
90
91 \citealp[][]{}
92 \Citealp[][]{}
93 \citealp*[][]{}
94 \Citealp*[][]{}
95
96 \citeauthor[]{}
97 \Citeauthor[]{}
98 \citeauthor*[]{}
99 \Citeauthor*[]{}
100
101 \citeyear[]{}
102 \citeyearpar[][]{}
103
104 % jurabib supports some natbib commands and additionally:
105 \fullcite[][]{}
106 \footcite[][]{}
107 \footcitet[][]{}
108 \footcitealt[][]{}
109 \footcitep[][]{}
110 \footcitealp[][]{}
111 \footciteauthor[]{}
112 \footciteyear[]{}
113 \footciteyearpar[][]{}
114 \citefield[]{}
115 %\citetitle[]{}
116
117 % biblatex:
118 \Cite[][]{}
119 \cite*[][]{}
120 \textcite[][]{}
121 \Textcite[][]{}
122 \parencite[][]{}
123 \Parencite[][]{}
124 \parencite*
125 \smartcite[][]{}
126 \Smartcite[][]{}
127 \footcite[][]{}
128 \Footcite[][]{}
129 \autocite[][]{}
130 \Autocite[][]{}
131 \citecite[][]{}
132 \citecite*[][]{}
133 \fullcite[][]{}
134 \footfullcite[][]{}
135 \supercite[][]{}
136
137 \cline{ - }
138 \d{}
139 \documentclass[]{}[]
140 \documentstyle[]{}
141 \em
142 \emph{}
143 %\end{}   %tex2lyx will get confused if \end is found in this file!
144 \epsf{}
145 \epsfbox{}
146 \epsffile{}
147 \epsfig{}
148 \epsfxsize
149 \epsfysize
150 \fancyhead[]{}
151 \footnote[]{}
152 \footnotesize
153 \H{}
154 \hline
155 \huge
156 \Huge
157 \include{}
158 \includegraphics[,][,]{} % btw, LyX doesn't support graphicx, just graphics
159 \input{}
160 \it
161 \item[]  % Has two variants (jpw) Other variant is unsupported (adk)
162 \label{}
163 \large
164 \Large
165 \LARGE
166 \marginpar[]{}
167 \mintinline[,]{}
168 \multicolumn{}{}{}
169 \newline
170 \noindent
171 \normalsize
172 \noun{}    % LyX style for nouns (appears in lyx-generated files)
173 \pageref{}
174 \psfig{}
175 \ref{}
176 \rm
177 \sc
178 \sf
179 \sl
180 \t{ }
181 \textmd{}   % I had to add these (adk)
182 \textbf{}   %         :
183 \textrm{}   %         :
184 \textsf{}   %         :
185 \texttt{}   %         :
186 \textup{}   %         :
187 \textit{}   %         :
188 \textsl{}   %         :
189 \textsc{}   %         :
190 \textbar
191 \textbackslash
192 \textgreater
193 \textless
194 \scriptsize
195 \small
196 \tiny
197 \tt
198 \u{}
199 \underbar{}  % LyX generated files use underbar instead of underline
200 \underline{}
201 \v{}
202
203
204
205 % Units of measure.  These get used only within the arguments of
206 % commands that take some length quantity.
207
208 \depth
209 \fill
210 \height
211 \totalheight
212 \width
213
214 %
215 % Length variables
216 %
217
218 \abovedisplay
219 \abovedisplayshortskip
220 \arraycolsep
221 \arrayrulewidth
222 \arraystretch
223 \baselineskip
224 \baselinestretch
225 \belowdisplayskip
226 \belowdisplayshortskip
227 \bigskipamount
228 \columnsep
229 \columnseprule
230 \dblfloatsep
231 \dbltextfloatsep
232 \doublerulesep
233 \evensidemargin
234 \fboxrule
235 \fboxsep
236 \floatsep
237 \footnotesep
238 \footskip
239 \headheight
240 \headsep
241 \hoffset
242 \intextsep
243 \itemindent
244 \itemsep
245 \jot
246 \labelsep
247 \labelwidth
248 \leftmargin
249 \leftmargini
250 \leftmarginii
251 \leftmarginiii
252 \leftmarginiv
253 \leftmarginv
254 \leftmarginvi
255 \listparindent
256 \marginpush
257 \marginparsep
258 \marginparwidth
259 \mathindent
260 \medskipamount
261 \oddsidemargin
262 \paperheight
263 \paperwidth
264 \parindent
265 \parsep
266 \parskip
267 \partopsep
268 \rightmargin
269 \smallskipamount
270 \tabbingsep
271 \tabcolsep
272 \textfloatsep
273 \textheight
274 \textwidth
275 \topmargin
276 \topsep
277 \topskip
278 \unitlength
279 \voffset
280
281 %
282 % Commands that act like single characters and insert something.  This
283 % excludes the commands that place accents on characters, since they
284 % require arguments, whereas these don't.  Also excluded are commands
285 % that insert a specified amount of space [again, that requires
286 % arguments] and those that insert lists, since a list isn't a single
287 % object.
288 %
289
290 \ % A "\" followed by a space.
291 \,
292 \/
293 \AA
294 \aa
295 \AE
296 \ae
297 \bigskip
298 \copyright
299 \dag
300 \ddag
301 \DH
302 \dh
303 \DJ
304 \dj
305 \dotfill
306 \dots
307 \guillemotleft
308 \guillemotright
309 \guilsinglleft
310 \guilsinglright
311 \hrulefill
312 \lq
313 \medskip
314 \NG
315 \ng
316 \O
317 \o
318 \OE
319 \oe
320 \P
321 \pounds
322 \quad
323 \qquad
324 \quotedblbase
325 \quotesinglebase
326 \rq
327 \S
328 \SS
329 \smallskip
330 \ss
331 \textbullet
332 \textemdash
333 \textendash
334 \textexclamdown
335 \textperiodcenter
336 \textquestiondown
337 \textquotedblleft
338 \textquotedblright
339 \textquoteleft
340 \textquoteright
341 \textvisiblespace
342 \textcompwordmark
343 \textquotedbl
344 \TH
345 \th
346 \thechapter
347 \theenumi
348 \theenumii
349 \theenumiii
350 \theenumiv
351 \theequation
352 \thefigure
353 \thefootnote
354 \thempfootnote
355 \thepage
356 \theparagraph
357 \thepart
358 \thesection
359 \thesubsection
360 \thesubsubsection
361 \thesubparagraph
362 \thetable
363 \vfill
364
365
366 %
367 % The LaTeX commands.  As per Alejandro's request, I've omitted all of
368 % the math commands he appears to support in Mathed.  I'm also
369 % omitting commands used primarily for defining new class and style
370 % files. (jpw)
371 %
372 % For some reason, John didn't write {} after \" and some of the other
373 %    accent commands (adk)
374 % He also didn't include the \textsc{} equivalent to {\sc}
375 % Because any commands with arguments in parentheses (rather than braces or
376 %    brackets) appear in a picture environment, which reLyX doesn't support,
377 %    we can comment those out.
378 %
379 % These are the commands you're mostly likely to want to redefine in your own
380 % syntax files
381 %
382 % Arguments whose text is "translate" will have regular LaTeX in them (as
383 % opposed to commands with special syntax) which should be translated by
384 % tex2lyx like regular LaTeX. \mbox{} is an obvious example. LyX doesn't
385 % support it, but only the "\mbox{" and the "}" need to be in TeX mode.
386 % "translate" should be specified for as many arguments aspossible.
387 % Besides the better on-screen display of the contents (a math inset looks
388 % better than a formula in ERT), it enables LyX to apply some fixes to LaTeX
389 % limitations: For example, footnotes in section headings do not work in
390 % LaTeX, but LyX produces preamble code to fix that. Of course this works only
391 % for footnote insets and not for footnotes in ERT. Example:
392 % \section{title \texorpdfstring{\footnote{foo}}{bar}}
393 % is some code that may occur in a .tex file created by LyX. The re-import
394 % works only because the first argument of \texorpdfstring is specified as
395 % translatable in this file.
396 % If a command puts the contents of an argument inside an own group, use
397 % "group" instead of "translate". Otherwise things like font changes would
398 % survive the end of the group in LyX (bug 3036).
399
400 \abstractname
401 \Acrobatmenu{}{}         % from the hyperref package
402 \addcontentsline{}{}{translate}
403 \address{}
404 \addtime{}
405 \addtocontents{}{translate}  % one argument was missing here (JMarc)
406 \addtocounter{}{}
407 \addtolength{}{}
408 \addvspace{}
409 \Alph{}
410 \alph{}
411 \alsoname
412 \and
413 \appendix % had to add this -Ak
414 \appendixname
415 \arabic{}
416 \author{}
417 \backmatter
418 %\bezier{}(,)(,)(,)    % picture
419 \bfdefault
420 \bibliographyunit[]
421 \bibname
422 \botfigrule
423 \bottomfraction
424 \caption[]{}
425 \cc{}
426 \ce{}
427 \cf{}
428 \ccname
429 \cellcolor[]{}
430 \centering
431 \centerline{translate}
432 \chapter[]{}
433 \chapter*{}
434 \chaptername
435 \check{}
436 \CheckCommand{}[][]{}
437 \CheckCommand*{}[][]{}
438 \CheckCommandx{}[][]{} % xargs.sty
439 \CheckCommandx*{}[][]{} % xargs.sty
440 %\circle{}    % picture environment (JMarc)
441 %\circle*{}
442 \cleardoublepage
443 \clearpage
444 \closing{}
445 \color[]{}  % Two variants of this command and the next (jpw)
446 %\color{}
447 \colorspec[]{}{}
448 %\colorspec{}{}
449 \columncolor[]{}
450 %\contentsline{}{\numberline{}  }{}     % Appears only in .toc file (JMarc)
451 \contentsname
452 %\dashbox{}(,)[]{}   %picture
453 \date{}
454 \dblfigrule
455 \dblfloatpagefraction
456 \dbltopfraction
457 \DeclareRobustCommand{}[][]{}
458 \DeclareRobustCommand*{}[][]{}
459 \DeclareRobustCommandx{}[][]{} % xargs.sty
460 \DeclareRobustCommandx*{}[][]{} % xargs.sty
461 \def{}{}
462 \definecolor{}{}{}
463 \DeleteShortVerb{} % from doc.sty, argument must be verbatim
464 \DescribeMacro{}
465 \discretionary{}{}{}
466 \encl{}
467 \enclname
468 \enlargethispage{}
469 \enlargethispage*{}
470 \ensuremath{}
471 \extracolsep{}
472 \fbox{translate}
473 \fcolorbox[]{}{}{}  % Two variants of this command
474 %\fcolorbox{}{}{}
475 \figurename
476 \floatpagefraction
477 \flushbottom
478 \fnsymbol{}
479 \fontfamily{}
480 \fontseries{}
481 \fontshape{}
482 \fontsize{}{}
483 \footnotemark[]
484 \footnoterule
485 \footnotetext[]{translate}
486 % LaTeX has \frame{}, but beamer has \frame[]{}, so use the latter
487 \frame[]{translate}
488 \framebox[][]{translate} % Two variants of this command
489 %\framebox(,)[]{}    %  picture variant
490 \frenchspacing
491 \frontmatter
492 \fussy
493 \glossary{translate}
494 \glossaryentry{}{}       %only in .glo file (JMarc)
495 % \graphpaper[](,)(,)    %picture
496 \headtoname
497 \href{}{translate}       % from the hyperref package
498 \hspace{}
499 \hspace*{}
500 \hyperdef{}{}{translate} % from the hyperref package
501 \hyperlink{}{translate}  % from the hyperref package
502 \hyperref{}{}{translate} % from the hyperref package
503 \hypertarget{}{translate} % from the hyperref package
504 \hyphenation{}
505 \iflanguage{}{}{}
506 \ifthenelse
507 \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
508 \indent
509 \index{translate}
510 \indexentry{}{}        % only in .idx files (JMarc)
511 \indexname
512 \indexspace
513 \invisible
514 \itdefault
515 % This variant of \item might break reLyX!
516 %  \item{}   % Only appears in unsupported theindex environment
517 \k{}
518 \kill
519 \labelnumi
520 \labelnumii
521 \labelnumiii
522 \labelnumiv
523 \labelitemi
524 \labelitemii
525 \labelitemiii
526 \labelitemiv
527 \language{}
528 % We need this because the arguments must not be interpreted
529 \let{item}{item}
530 % \line(,){}    %picture
531 \linebreak[]
532 \linethickness{}
533 \listfigurename
534 \listofalgorithms %AMStex?
535 \listoffigures
536 \listoftables
537 \listtablename
538 \location{}
539 \mainmatter
540 \makebox[][]{translate}
541 %  \makebox(,)[]{}     %picture variant
542 \makeglossary
543 \makeindex
544 \makelabel{translate}
545 \makelabels
546 \maketitle
547 \MakeShortVerb{} % from doc.sty, argument must be verbatim
548 \markboth{group}{group}
549 \markright{group}
550 \mathversion{}
551 \mbox{translate}
552 \mddefault
553 % \multiput(,)(,){}{}     %picture
554 \name{}
555 \newboolean{}
556 \newcommand{}[][]{}
557 \newcommand*{}[][]{}
558 \newcommandx{}[][]{} % xargs.sty
559 \newcommandx∗{}[][]{} % xargs.sty
560 \newcounter{}[]
561 \newenvironment{}[][]{}{}
562 \newenvironment*{}[][]{}{}
563 \newenvironmentx{}[][]{}{} % xargs.sty
564 \newenvironmentx*{}[][]{}{} % xargs.sty
565 \newfont{}{ scaled }
566 \newlength{}
567 \newpage
568 \newsavebox{}
569 \newtheorem{}[]{translate}[]
570 \nocite{}
571 \nocorr
572 \nolinebreak[]
573 \nonfrenchspacing
574 \nopagebreak[]
575 \normalcolor
576 \normalfont
577 \normalmarginpar
578 \notesname
579 \numberline{}{}
580 \onecolumn
581 \onlynotes{}
582 \onlyslides{}
583 \opening{}
584 % \oval(,)[]   %picture
585 \pagebreak[]
586 \pagecolor[]{}
587 % \pagecolor{}    % tex2lyx can first care about this when fileformat 351 is supported
588 \pagename
589 \pagenumbering{}
590 \par
591 \paragraph[]{}
592 \paragraph*{}
593 %\parbox[]{}{}            % reLyX treats next line same as this one (adk)
594 \parbox[][][]{}{translate}
595 \part[]{}
596 \part*{}
597 \partname
598 \pdfbookmark[]{}{}       % from the hyperref package
599 \pdfstringdef{}{}        % from the hyperref package
600 \poptabs
601 \prefacename
602 \printbibliography[] % biblatex
603 \printindex[]{}
604 \protect
605 \providecommand{}[][]{}
606 \providecommand*{}[][]{}
607 \providecommandx{}[][]{} % xargs.sty
608 \providecommandx*{}[][]{} % xargs.sty
609 \ps
610 \psfrag{}[][][][]{translate}
611 \psfrag*{}[][][][]{translate}
612 \pushtabs
613 % \put(,){}     %picture
614 \putbib[]
615 % \qbezier[](,)(,)(,)     %picture
616 \r{}
617 \raggedbottom
618 \raggedleft
619 \raggedright
620 \raisebox{}[][]{translate}
621 \reflectbox{translate}
622 \refname
623 \refstepcounter{}
624 \renewcommand{}[][]{}
625 \renewcommand*{}[][]{}
626 \renewcommandx{}[][]{} % xargs.sty
627 \renewcommandx∗{}[][]{} % xargs.sty
628 \renewenvironment{}[][]{}{}
629 \renewenvironment*{}[][]{}{}
630 %\renewenvironment{}[]{}{}
631 \renewenvironmentx{}[][]{}{} % xargs.sty
632 \renewenvironmentx*{}[][]{}{} % xargs.sty
633 \resizebox{}{}{translate}
634 \resizebox*{}{}{translate}
635 \reversemarginpar
636 \rmdefault
637 \Roman{}
638 \roman{}
639 \rotatebox[]{}{translate}
640 \rowcolor[]{}
641 \rule[]{}{}
642 \samepage
643 \savebox{}[][]{}
644 % \savebox{}(,)[]{}   %picture
645 \sbox{}{}
646 \scalebox{}[]{translate}
647 \scdefault
648 \section[]{}
649 \section*{}
650 \see
651 \seename
652 \selectfont
653 \selectlanguage{}
654 \setboolean{}{}
655 \setcounter{}{}
656 \setlength{}{}
657 \settime{}
658 \settodepth{}{}
659 \settoheight{}{}
660 \settowidth{}{}
661 \sfdefault
662 \shortstack[]{translate}
663 \showhyphens{}
664 \signature{}
665 \sindex[]{translate} %splitidx.sty
666 \sldefault
667 \sloppy
668 \stepcounter{}
669 \stretch{}
670 %\subitem{}   % unsupported theindex environment
671 \subcaption[translate]{translate}
672 \subcaptionbox[translate]{translate}[][]{translate} % subcaption.sty
673 \subcaptionbox*{translate}[][]{translate} % subcaption.sty
674 \subjectname
675 \subfloat[][]{}
676 \subfigure[translate][translate]{translate} % obsolete subfigure.sty
677 \subparagraph[]{}  % These "sub" versions of the sectioning commands weren't
678 \subparagraph*{}   % in the original commandlist for some reason (adk)
679 \subref{} % subcaption.sty
680 \subref*{} % subcaption.sty
681 \subsection[]{}    %
682 \subsection*{}     %
683 \subsubsection[]{} %
684 \subsubsection*{}  %
685 %\subsubitem{}   % unsupported theindex environment
686 \subtable[translate][translate]{translate} % obsolete subfigure.sty
687 \suppressfloats[]
688 \symbol{}
689 \tablename
690 \tableofcontents
691 \tabularnewline[]
692 \telephone{translate}
693 \texorpdfstring{translate}{translate} % from the hyperref package
694 \textcircled{translate}
695 \textcolor[]{}{translate}
696 %\textcolor{}{}
697 \textbf{translate}     % hardcoded, but needed nevertheless for \let\xyz\textbf
698 \textnormal{translate} % hardcoded, but needed nevertheless for \let\xyz\textnormal
699 \textmd{translate}     % hardcoded, but needed nevertheless for \let\xyz\textmd
700 \textit{translate}     % hardcoded, but needed nevertheless for \let\xyz\textit
701 \textrm{translate}     % hardcoded, but needed nevertheless for \let\xyz\textrm
702 \textsc{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsc
703 \textsf{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsf
704 \textsl{translate}     % hardcoded, but needed nevertheless for \let\xyz\textsl
705 \texttt{translate}     % hardcoded, but needed nevertheless for \let\xyz\texttt
706 \textup{translate}     % hardcoded, but needed nevertheless for \let\xyz\textup
707 \textfraction
708 \thanks{translate}
709 \thicklines
710 \thinlines
711 \thispagestyle{}
712 \title{}
713 \today
714 \topfigrule
715 \topfraction
716 \ttdefault
717 \twocolumn[]
718 \updefault
719 \usebox{}
720 \usecounter{}
721 \usefont{}{}{}{}
722 \usepackage[]{}[]
723 \value{}
724 % \vector(,){}   %picture
725 % \verb||     % tex2lyx fails on \verb, see http://www.lyx.org/trac/ticket/4468 and http://www.lyx.org/trac/ticket/5408
726 % \verb*||
727 \visible
728 \vline
729 \vspace{}
730 \vspace*{}
731 \whiledo{}{}
732
733 % LaTeX environments.
734 % They have always one extra "argument":
735 % It contains "translate" if the contents of the environment contains normal
736 % LaTeX code that can be translated to LyX.
737 \begin{environments}
738 bibunit[]{translate}
739 listing{} % minted.sty
740 minted{} % minted.sty
741 psmatrix[]{}
742 subfigure[]{translate} % subcaption.sty
743 subtable[]{translate} % subcaption.sty
744 theorem[]{translate} % from amsthm.sty and probably others
745 thebibliography{}
746 tikzpicture[]{}
747 \end{environments}
748
749 % Environments that start math mode.
750 % $...$, $$...$$, \(...\) and \[...\] are hardcoded in tex2lyx.
751 % The arguments are currently ignored (apart from displaymath).
752 \begin{mathenvironments}
753 equation{displaymath}
754 equation*{displaymath}
755 eqnarray{displaymath}
756 eqnarray*{displaymath}
757 align{displaymath}
758 align*{displaymath}
759 gather{displaymath}
760 gather*{displaymath}
761 multline{displaymath}
762 multline*{displaymath}
763 math{}
764 displaymath{displaymath}
765 flalign{displaymath}
766 flalign*{displaymath}
767 % These require extra args
768 alignat{}{displaymath}
769 alignat*{displaymath}
770 xalignat{}{displaymath}
771 xalignat*{}{displaymath}
772 xxalignat{}{displaymath}
773 % These are not known by LyX but work nevertheless:
774 empheq[]{}{displaymath}
775 \end{mathenvironments}
776
777 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
778 % Sweave stuff
779 \Sexpr{}
780 \SweaveOpts{}
781 \SweaveInput{}
782 \SweaveSyntax{}
783 \Scoderef{}
784
785 \Rcode{}
786 \Robject{}
787 \Rcommand{}
788 \Rfunction{}
789 \Rfunarg{}
790 \Rpackage{}
791 \Rclass{}
792 \Rmethod{}