Ceci est une ancienne révision du document !
Quelles sont toutes les commandes à une seule lettre?
Certaines parties sont spécifiques à Tralics et ne concernent pas .
~
(Tralics version 1 description: The ~
character is a normal character, but translates into a non-breaking space. Of course, the result is a tilde in verbatim mode, and a mathematical space in math mode.)
Example:
Test tilde:~\verb=~=$a~b$. \href{\url{a~b\~c}}{some url}
The XML translation is
Test tilde: <hi rend='tt'>~</hi><formula type='inline'> <math xmlns='http://www.w3.org/1998/Math/MathML'> <mrow><mi>a</mi><mspace width='1em'/><mi>b</mi></mrow></math></formula>. <xref url='some url'>a~b~c</xref>
Note how ~
and \~
are handled by the \url
command.
In the current version of Tralics, the tilde character is active and defined as \def~{\nobreakspace}
. The only purpose of the change is to make the following example work (it is file xii
by David Carlisle).
\let~\catcode~`76~`A13~`F1~`j00~`P2jdefA71F~`7113jdefPALLF PA''FwPA;;FPAZZFLaLPA//71F71iPAHHFLPAzzFenPASSFthP;A$$FevP A@@FfPARR717273F737271P;ADDFRgniPAWW71FPATTFvePA**FstRsamP AGGFRruoPAqq71.72.F717271PAYY7172F727171PA??Fi*LmPA&&71jfi Fjfi71PAVVFjbigskipRPWGAUU71727374 75,76Fjpar71727375Djifx :76jelse&U76jfiPLAKK7172F71l7271PAXX71FVLnOSeL71SLRyadR@oL RrhC?yLRurtKFeLPFovPgaTLtReRomL;PABB71 72,73:Fjif.73.jelse B73:jfiXF71PU71 72,73:PWs;AMM71F71diPAJJFRdriPAQQFRsreLPAI I71Fo71dPA!!FRgiePBt'el@ lTLqdrYmu.Q.,Ke;vz vzLqpip.Q.,tz; ;Lql.IrsZ.eap,qn.i. i.eLlMaesLdRcna,;!;h htLqm.MRasZ.ilk,% s$;z zLqs'.ansZ.Ymi,/sx ;LYegseZRyal,@i;@ TLRlogdLrDsW,@;G LcYlaDLbJsW,SWXJW ree @rzchLhzsW,;WERcesInW qt.'oL.Rtrul;e doTsW,Wk;Rri@stW aHAHHFndZPpqar.tridgeLinZpe.LtYer.W,:jbye
\~
The \~
command allows you to put a tilde accent on a letter (see also the \tilde
command). The possibilities are given here:
\~A \~a \~{\^A} \~{\^a} \~{\u A} \~{\u a} \~E \~e \~{\^E} \~{\^e} \~I \~i \~N \~n \~O \~o \~{\=O} \~{\=o} \~{\'O} \~{\'o} \~{\“O} \~{\”o} \~{\^O} \~{\^o} \~{\H O} \~{\H o} \~U \~u \~{\'U} \~{\'u} \~{\H U} \~{\H u} \~V \~v \~Y \~y
the result is:
à ã Ẫ ẫ Ẵ ẵ Ẽ ẽ Ễ ễ Ĩ ĩ Ñ ñ Õ õ ȭ Ȭ Ṍ ṍ Ṏ ṏ Ỗ ỗ Ő̃ ő̃ Ũ ũ Ṹ ṹ Ű̃ ű̃ Ṽ ṽ Ỹ ỹ
\$
The \$
command is valid in math mode and text mode. It generates a dollar sign \%
\&
a
a\]b
. It means: `start inline math' but Tralics does no check. This command is also used as an opening delimiter by the ifthen package.
===== ), \) =====
The
) command can be used as a math delimiter. See description of the
\vert command.
The expansion of
\) is
x' x
x
' x u_2' v'^3_4
x^{\prime } x^{\prime \prime } x^{\prime \prime \prime }
x^{\prime \prime \prime \prime } u_2^{\prime } v^{\prime 3}_4$
</code>
We have removed a bunch of lines of the form +stack: level
, because each opening and closing brace changes the current level (by the way, it is the dollar sign that increases the level first). The XML translation is the following.
<formula type='inline'> <math xmlns='http://www.w3.org/1998/Math/MathML'> <mrow> <msup><mi>x</mi> <mo>′</mo></msup> <msup><mi>x</mi> <mrow><mo>′</mo><mo>′</mo></mrow> </msup> <msup><mi>x</mi><mrow><mo>′</mo><mo>′</mo><mo>′</mo></mrow></msup> <msup><mi>x</mi> <mrow><mo>′</mo><mo>′</mo><mo>′</mo> <mo>′</mo></mrow></msup> <msubsup><mi>u</mi> <mn>2</mn> <mo>′</mo></msubsup> <msubsup><mi>v</mi> <mn>4</mn><mrow><mo>′</mo><mn>3</mn></mrow> </msubsup> </mrow> </math> </formula>
\' (backslash left quote)
The single quote character behaves normally, but has a special meaning when Tralics reads a number (see scanint). The \'
command puts an acute accent over some letters. Do not confuse with \acute
, which is a math-only command. Example
\'A \'a \'{\AA} \'{\aa} \'{\AE} \'{\ae} \'{\^A} \'{\^a} \'{\u A} \'{\u a} \'C \'c \'{\c C} \'{\c c} \'E \'e \'{\=E} \'{\=e} \'{\^E} \'{\^e} \'G \'g \'I \'i \\\'{\"I} \'{\"i} \'K \'k \'L \'l \'M \'m \'N \'n \'O \'o \'{\O} \'{\o} \'{\~O} \'{\~o} \'{\=O} \'{\=o} \'{\^O} \'{\^o} \'{\H O} \'{\H o}\\ \'P \'p \'R \'r \' S \'s \'{\.S} \'{\.s} \'U \'u \'{\"U} \'{\"u} \'{\~U} \'{\~u} \'{\H U} \'{\H u} \'W \'w \'Y \'y \'Z \'z
gives
Á á Ǻ ǻ Ǽ ǽ Ấ ấ Ắ ắ Ć ć Ḉ ḉ É é Ḗ ḗ Ế ế Ǵ ǵ Í í Ḯ ḯ Ḱ ḱ Ĺ ĺ Ḿ ḿ Ń ń Ó ó Ǿ ǿ Ṍ ṍ Ṓ ṓ Ố ố Ớ ớ Ṕ ṕ Ŕ ŕ Ś ś Ṥ ṥ Ú ú Ǘ ǘ Ṹ ṹ Ứ ứ Ẃ ẃ Ý ý Ź ź
\" (backslash double quote)
The double quote character behaves normally, but has a special meaning when Tralics reads a number (see scanint). The \“
command puts a umlaut or diaeresis accent over some letters. Example:
\"A \"a \"{\=A} \"{\=a} \"E \"e \"H \"h \"I \"i \"{\'I} \"{\'i} \"O \"o \"{\=O} \"{\=o} \"{\~O} \"{\~o} \"t\\ \"U \"u \"{\=U} \"{\=u} \"{\`U} \"{\`u} \"{\'U} \"{\'u} \"{\v U} \"{\v u} \"W \"w \"X \"x \"Y \"y
gives
Ä ä Ǟ ǟ Ë ë Ḧ ḧ Ï ï Ḯ ḯ Ö ö Ȫ ȫ Ṏ ṏ ẗ Ü ü Ṻ ṻ Ǜ ǜ Ǘ ǘ Ǚ ǚ Ẅ ẅ Ẍ ẍ Ÿ ÿ
\= (backslash equals)
The \=
command generates a macro accent, similar to the \bar
(that works in math mode only). The translation of
\=A \=a \={\"A} \={\"a} \={\.A} \={\.a} \=\AE \=\ae \=E \= e \={\'E} \={\'e} \={\`E} \={\`e} \=G \=g \=H \=h\\ \=I \=i \={\d L} \={\d l} \= O \=o \={\k O} \={\k o} \={\"O} \={\"o} \={\~O} \={\~o} \={\.O} \={\.o} \={\`O} \={\`o} \={\'O} \={\'o}\\ \={\d R} \={\d r} \=T \=t \=U \=u \={\"U} \={\"u} \=Y \=y
is
Ā ā Ǟ ǟ Ǡ ǡ ǢǣĒ ē Ḗ ḗ Ḕ ḕ Ḡ ḡ Ħ ħ Ī ī Ḹ ḹ Ō ō Ǭ ǭ Ȫ ȫ Ȭ ȭ Ȱ ȱ Ṑ ṑ Ṓ ṓ Ṝ ṝ Ŧ ŧ Ū ū Ṻ ṻ Ȳ ȳ
\. (backslash dot)
The \.
command generates dot accent, similar to the \dot
(that works in math mode only). The translation of
\.A \.a \.{\=A} \.{\=a} \.B \.b \.C \.c \.D \.d \.E \.e \.F \.f \.G \.g \.H \.h \.I \.L \.l \.M \.m \.N \.n \.O \.o \.{\=O} \.{\=o} \.P \.p \.R \.r \.S \.s \.{\d S} \.{\d s} \.{\v S} \.{\v s} \.{\'S} \.{\'s} \.T \.t \.W \.w \.X \.x \.Y \.y \.Z \.z
is
Ȧ ȧ Ǡ ǡ Ḃ ḃ Ċ ċ Ḋ ḋ Ė ė Ḟ ḟ Ġ ġ Ḣ ḣ İ Ŀ ŀ Ṁ ṁ Ṅ ṅ Ȯ ȯ Ȱ ȱ Ṗ ṗ Ṙ ṙ Ṡ ṡ Ṩ ṩ Ṧ ṧ Ṥ ṥ Ṫ ṫ Ẇ ẇ Ẋ ẋ Ẏ ẏ Ż ż
\^ (backslash hat)
The \^
command generates a circonflex accent, similar to the \hat
command (that works in math mode only). The translation of
\^A \^a \^{\'A} \^{\'a} \^{\`A} \^{\`a} \^{\h A} \^{\h a} \^{\~A} \^{\~a} \^{\d A} \^{\d a} \^C \^c \^E \^e \^{\'E} \^{\'e} \^{\`E} \^{\`e} \^{\h E} \^{\h e} \^{\~E} \^{\~e} \^{\d E} \^{\d e} \^G \^g \^H \^h \^I \^i \^J \^j \^O \^o \^{\'O} \^{\'o} \^{\`O} \^{\`o} \^{\h O} \^{\h o} \^{\~O} \^{\~o} \^{\d O} \^{\d o} \^S \^ s \^U \^u \^W \^w \^Y \^y \^Z \^z
is
 â Ấ ấ Ầ ầ Ẩ ẩ Ẫ ẫ Ậ ậ Ĉ ĉ Ê ê Ế ế Ề ề Ể ể Ễ ễ Ệ ệ Ĝ ĝ Ĥ ĥ Î î Ĵ ĵ Ô ô Ố ố Ồ ồ Ổ ổ Ỗ ỗ Ộ ộ Ŝ ŝ Û û Ŵ ŵ Ŷ ŷ Ẑ ẑ
\` (backslash backquote)
The backquote character behaves normally, but has a special meaning when Tralics reads a number (see scanint). The \`
command generates a grave accent, similar to the \grave command (that works in math mode only). The translation of
\`A \`a \`{\^A} \`{\^a} \`{\u A} \`{\u a} \`E \`e \`{\=E} \`{\=e} \`{\^E} \`{\^e} \`I \`i \`N \`n \\\`O \`o \`{\=O} \`{\=o} \`{\^O} \`{\^o} \`{\H O} \`{\H o} \`U \`u \`{\"U} \`{\"u} \`{\H U} \`{\H u} \`W \`w \`Y\`y
is
À à Ầ ầ Ằ ằ È è Ḕ ḕ Ề ề Ì ì Ǹ ǹ Ò ò Ṑ ṑ Ồ ồ Ờ ờ Ù ù Ǜ ǜ Ừ ừ Ẁ ẁ Ỳỳ
\ (backslash space)
The \
command (backslash space) adds a space character to the XML tree. The command name is formed of a backslash followed by a space, a tabulation, a line-feed, or a carriage return. Since these characters are of catcode 10 (space), spaces after them is ignored. At the start of chapter 25 of the TeXbook, Knuth explains that the result of this command is as if a space had been given in a context where the space factor is 1000 (Tralics ignores \spacefactor
and other factors that modify the space factor). In math mode, the translation is <mspace width='4pt'/>
.
Note that \space
produces a single space.
\/ (backslash slash)
The \/
command is assumed to insert a kern corresponding to the italic correction, if the last item on the horizontal list is a character or a ligature, or a kern of width zero in math mode. However, Tralics ignores such subtleties, so that this command does nothing.
\*
This command is valid in math mode only, the translation is a <mo>⁢</mo>.
\@ (backslash atsign)
The LaTeX kernel contains \def\@{\spacefactor\@m}
. However, Tralics ignores currently space factors, so that this command does nothing. If the at-sign character is of category `letter', then \@ne
is a single command; but if it is of category `other' (normal case), it is \@
followed by some characters, and this often gives an error in LaTeX, since the \spacefactor
command cannot be used everywhere.
The description of \@makeactive
is found near that of \makeatletter
; there are som exceptions to this rule: \@ne
is described as if it were \one
.
Source: https://www-sop.inria.fr/marelle/tralics/doc-symbols.html