Différences
Ci-dessous, les différences entre deux révisions de la page.
| 2_programmation:macros:commande_etoilee3 [2018/12/03 23:24] – créée - modification externe 127.0.0.1 | 2_programmation:macros:commande_etoilee3 [2023/03/12 21:21] (Version actuelle) – Mise à jour de liens internes. Mots-clefs OpenGraph. jejust | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| LaTeX commands commonly have " | LaTeX commands commonly have " | ||
| - | tagged onto their name: for example '' | + | tagged onto their name: for example '' |
| - | '' | + | (the former defines a '' |
| - | command). | + | |
| The simple-minded way for a user to write such a command involves use | The simple-minded way for a user to write such a command involves use | ||
| Ligne 43: | Ligne 42: | ||
| The '' | The '' | ||
| it requires that the definition be | it requires that the definition be | ||
| - | [[FAQ-atsigns|'' | + | [[2_programmation: |
| - | A pleasing alternative is the [[ctanpkg> | + | A pleasing alternative is the [[ctanpkg> |
| - | piece of code allows you to define variants of your commands: | + | This elegant piece of code allows you to define variants of your commands: |
| <code latex> | <code latex> | ||
| Ligne 52: | Ligne 51: | ||
| \WithSuffix\newcommand\mycommand*{starred version} | \WithSuffix\newcommand\mycommand*{starred version} | ||
| </ | </ | ||
| - | The package needs [[FAQ-etex|e-LaTeX]], but any new enough | + | The package needs [[1_generalites: |
| distribution defines LaTeX as e-LaTeX by default. | distribution defines LaTeX as e-LaTeX by default. | ||
| arguments may be specified in the normal way, in both command | arguments may be specified in the normal way, in both command | ||
| Ligne 86: | Ligne 85: | ||
| normal TeX-style mandatory argument, and appears as ''# | normal TeX-style mandatory argument, and appears as ''# | ||
| - | While [[ctanpkg> | + | While [[ctanpkg> |
| - | specifications, | + | it //is// part of the [[1_generalites: |
| - | [[FAQ-LaTeX3|LaTeX 3 experimental harness]]. | + | |
| Simply loading the package to provide '' | Simply loading the package to provide '' | ||
| "pulls in" all of the LaTeX3 kernel (a large bunch of packages) | "pulls in" all of the LaTeX3 kernel (a large bunch of packages) | ||
| Ligne 95: | Ligne 93: | ||
| ----- | ----- | ||
| - | |||
| //Source:// [[faquk> | //Source:// [[faquk> | ||
| - | {{htmlmetatags> | + | {{htmlmetatags> |
| metatag-og: | metatag-og: | ||
| metatag-og: | metatag-og: | ||
| }} | }} | ||

