Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| composition:texte:lignes:arguments_incorrects_pour_newline [2018/12/03 23:42] – jejust | 3_composition:texte:lignes:arguments_incorrects_pour_newline [2022/11/29 15:52] (Version actuelle) – Usage de ⟨...⟩ dbitouze | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== | + | ====== |
| + | Cette réponse concerne deux types de problèmes : | ||
| + | * ceux où un astérisque au début d'une ligne ne parvient mystérieusement pas à apparaître dans le document final ; | ||
| + | * ceux générant une erreur de la forme : | ||
| - | This answer concerns two sorts of problems: errors of the form | + | < |
| - | + | ||
| - | < | + | |
| ! Missing number, treated as zero. | ! Missing number, treated as zero. | ||
| <to be read again> | <to be read again> | ||
| Ligne 10: | Ligne 11: | ||
| <*> [perhaps] | <*> [perhaps] | ||
| </ | </ | ||
| - | and errors where a single asterisk at the start of a line mysteriously | ||
| - | fails to appear in the typeset output. | ||
| - | Both problems arise because | + | Les deux problèmes surviennent car la commande |
| - | command | + | * la commande |
| - | "break the line here, and inhibit | + | * la commande |
| - | the command | + | |
| - | means | + | |
| - | "break the line here and add <// | + | |
| - | The problem arises because | + | Et ces problèmes arrivent parce que la commande |
| - | non-blank thing; the test it uses ignores the end of the line in | + | |
| - | your input text, so that '' | + | |
| - | were giving it a " | + | |
| - | An obvious solution is to enclose the stuff at the start of the new | + | ===== Dans le texte ===== |
| - | line in braces, typing: | + | |
| + | Une solution évidente est de mettre l' | ||
| <code latex> | <code latex> | ||
| {\ttfamily | {\ttfamily | ||
| - | /* C-language comment\\ | + | /* Commentaire en langage |
| - | {[perhaps]} this could be done better\\ | + | {[Important]} à traiter\\ |
| {*}/ | {*}/ | ||
| } | } | ||
| </ | </ | ||
| - | This particular example could be coded (without any problems) in | + | Cet exemple particulier pourrait être codé (sans aucun problème) en mode verbatim, |
| - | verbatim, | + | |
| + | ===== Dans les mathématiques ===== | ||
| - | The problem also appears in maths mode, in arrays and so on. In this | + | Ce problème apparaît également en mode mathématique, dans les tableaux et autres éléments demandant la présence de la commande '' |
| - | case, large-scale bracketing of things is //not// a good idea; the | + | |
| - | TeX primitive '' | + | |
| - | searches of this nature) | + | |
| - | '' | + | |
| <code latex> | <code latex> | ||
| \begin{eqnarray} | \begin{eqnarray} | ||
| - | [a] &=& b \\ | + | [a] |
| \relax[a] &=& b | \relax[a] &=& b | ||
| \end{eqnarray} | \end{eqnarray} | ||
| </ | </ | ||
| - | which is a usage this FAQ would not recommend, anyway: refer | ||
| - | to the [[FAQ-eqnarray|reason not to use '' | ||
| - | Note that the [[ctanpkg> | + | Cet exemple n'est toutefois pas recommandé par cette FAQ, comme indiqué à la question « [[4_domaines_specialises: |
| - | '' | + | |
| - | '' | + | |
| - | ('' | + | |
| + | Notez que l' | ||
| ----- | ----- | ||
| Ligne 65: | Ligne 51: | ||
| //Source:// [[faquk> | //Source:// [[faquk> | ||
| - | {{htmlmetatags> | + | {{htmlmetatags> |
| - | metatag-og: | + | metatag-og: |
| metatag-og: | metatag-og: | ||
| }} | }} | ||

