Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente |
2_programmation:macros:single_letter_commands [2022/08/17 20:11] – Caractères unicodes plutôt que codes HTML inopérants (OK sauf pour 4 caractères) dbitouze | 2_programmation:macros:single_letter_commands [2022/12/01 13:39] (Version actuelle) – [\*] Code en tant que tel dbitouze |
---|
===== \$ ===== | ===== \$ ===== |
| |
The ''\$'' command is valid in math mode and text mode. It generates a dollar sign <latex>\$</latex> (<latex>$\$$</latex> in math mode). See also the description of the ''\qquad'' command. Remember that the dollar sign by itself (using default category codes) starts or finishes a math formula. | The ''\$'' command is valid in math mode and text mode. It generates a dollar sign. See also the description of the ''\qquad'' command. Remember that the dollar sign by itself (using default category codes) starts or finishes a math formula. |
| |
===== \% ===== | ===== \% ===== |
| |
The ''\%'' command is valid in math mode and text mode. It generates a percent sign <latex>\%</latex> (<latex>$\%$</latex> in math mode). See also the description of the ''\qquad'' command. Remember that the percent sign by itself (using default category codes) starts a comment. | The ''\%'' command is valid in math mode and text mode. It generates a percent sign %. See also the description of the ''\qquad'' command. Remember that the percent sign by itself (using default category codes) starts a comment. |
| |
===== \& ===== | ===== \& ===== |
| |
The ''\&'' command is valid in math mode and text mode. It generates a ampersand sign <latex>\&</latex> (or <latex>$\&$</latex> in math mode). See description of the ''\qquad'' command. Remember that the ''&'' character is valid only inside arrays as a cell delimiter (see description of arrays). | The ''\&'' command is valid in math mode and text mode. It generates a ampersand sign &. See description of the ''\qquad'' command. Remember that the ''&'' character is valid only inside arrays as a cell delimiter (see description of arrays). |
| |
===== \! ===== | ===== \! ===== |
===== \ (backslash space) ===== | ===== \ (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'/>''. | 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 <latex>\TeX</latex>book, 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. | Note that ''\space'' produces a single space. |
===== \* ===== | ===== \* ===== |
| |
This command is valid in math mode only, the translation is a <mo>⁢</mo>. | This command is valid in math mode only, the translation is a ''<mo>⁢</mo>''. |
| |
===== \@ (backslash atsign) ===== | ===== \@ (backslash atsign) ===== |