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:renvois:detecter_qu_un_label_est_vide [2018/12/03 23:55] – jejust | 3_composition:texte:renvois:detecter_qu_un_label_est_vide [2021/11/29 22:56] (Version actuelle) – Correction de la mise en forme. yannick.tanguy | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== | + | ====== |
| + | Au moment de l' | ||
| - | People seem to want to know (at run time) if a label is undefined (I | + | ===== Avec les commandes de base ===== |
| - | don't actually understand //why//, particularly: | + | |
| - | state, and LaTeX deals with it quite well). | + | |
| - | A resolved label is simply a command: | + | Une étiquette définie est simplement une commande |
| - | '' | + | * '' |
| - | then simply a matter of detecting if the command exists. The usual | + | * et les deux autres |
| - | LaTeX internal way of doing this is to use the command | + | |
| - | '' | + | |
| - | | + | |
| - | In which, <//label-name//> is exactly what you would use in | + | |
| - | a '' | + | |
| - | sequences to be used if the label is undefined | + | |
| - | (<//undef-cmds//>) or if it is defined | + | |
| - | (<//def-cmds//>). | + | |
| - | Note that any command that incorporates | + | Notez que toute commande qui intègre |
| - | fragile, | + | |
| - | use it with '' | + | |
| - | If you're into this game, you may well not care about LaTeX's | + | Si vous suivez cette piste, vous ne soucierez peut-être pas de l'avertissement de < |
| - | warning about undefined labels at the end of the document; however, | + | |
| - | if you are, include the command | + | |
| - | <//'' | + | |
| - | And of course, remember you're dealing in internal commands, and pay | + | Enfin, bien sûr, rappelez-vous que vous avez affaire à des commandes internes. En cas de doute, consultez la question : « [[2_programmation: |
| - | attention to the [[FAQ-atsigns|at-signs]]. | + | |
| - | All the above can be avoided by using the [[ctanpkg> | + | ===== Avec l' |
| - | it provides commands that enable you to switch according to the state | + | |
| - | of a single label, or the states of a list of labels. | + | |
| - | definition is a bit complicated, | + | |
| - | powerful. | + | |
| + | Tout ce qui précède peut être évité en utilisant l' | ||
| ----- | ----- | ||
| Ligne 41: | Ligne 23: | ||
| //Source:// [[faquk> | //Source:// [[faquk> | ||
| - | {{htmlmetatags> | + | {{htmlmetatags> |
| - | metatag-og: | + | metatag-og: |
| metatag-og: | metatag-og: | ||
| }} | }} | ||
| - | |||

