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:symboles:utiliser_des_symboles2 [2018/06/03 12:58] – joseph.wright | 3_composition:texte:symboles:utiliser_des_symboles2 [2023/07/03 22:20] (Version actuelle) – Mise à jour du code des exemples pour TL2023. Mots-clefs OpenGraph. jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Comment éviter les conflits de noms de commande de symbole? ====== |
- | title: Using symbols | + | |
- | category: formatting | + | |
- | permalink: / | + | |
- | --- | + | |
- | Most symbol font sets come with a package that defines commands for | + | Les polices de symboles sont souvent fournies avec une extension qui définit des commandes pour chaque symbole de la police. Bien que cela soit pratique, cela peut entraîner des difficultés, en particulier avec des conflits de noms lorsque vous chargez des extensions qui couvrent des polices qui dupliquent des symboles ou qui définissent de grands nombres de symboles. Voici quelques exemples de méthode pour éviter ce type de situation. |
- | every symbol in the font. While this is convenient, it can lead to | + | |
- | difficulties, particularly with name clashes when you load packages | + | |
- | that cover fonts which duplicate symbols& | + | |
- | discussed in | + | |
- | " | + | |
- | Some font sets (for example the related set: `FdSymbol`, | + | |
- | `MdSymbol` and `MnSymbol`) are huge, and the | + | |
- | accompanying macros cover so many symbols that name clashes are surely | + | |
- | a serious problem. | + | |
- | The [`pifont`](https:// | + | ===== Une solution générale ===== |
- | `Zapf Dingbats` font) avoids this sort of problem: it requires | + | |
- | you to know the font position of any symbol you want to use (the | + | |
- | documentation provides font tables). | + | |
- | `\ding{number}` for a single symbol; there are commands for | + | |
- | other fancier uses. [`Pifont`](https:// | + | |
- | fonts, for similar use. | + | |
- | The [`yagusylo`](https:// | + | Cette solution évitant les conflits de noms est présentée dans la question « [[2_programmation:erreurs:c: |
- | [`pifont`](https:// | + | |
- | of [`pifont`](https:// | + | |
- | for symbols. | + | |
- | `\yagding[family]{symbol number}`[color], you can also | + | |
- | define symbol names with `\defdingname`, | + | |
- | with `\yagding*{symbol name}` (the defined name carries the | + | |
- | font family and color specified in the arguments of | + | |
- | `\defdingname`). | + | |
- | [`Yagusylo`](https:// | + | ===== La mécanique de l' |
- | clear; it is probably the best tool to use for picking and choosing | + | |
- | symbols from a variety of font families. | + | |
+ | L' | ||
+ | |||
+ | <code latex> | ||
+ | \documentclass{article} | ||
+ | \usepackage{pifont} | ||
+ | |||
+ | \begin{document} | ||
+ | \ding{252} Voici un exemple de symbole: \ding{166}. | ||
+ | \end{document} | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | \documentclass[12pt]{article} | ||
+ | \usepackage{pifont} | ||
+ | \usepackage[french]{babel} | ||
+ | \pagestyle{empty} | ||
+ | |||
+ | \begin{document} | ||
+ | \ding{252} Voici un exemple de symbole: \ding{166}. | ||
+ | \end{document} | ||
+ | </ | ||
+ | |||
+ | ===== La mécanique de l' | ||
+ | |||
+ | L' | ||
+ | |||
+ | <code latex> | ||
+ | \documentclass{article} | ||
+ | \usepackage{yagusylo} | ||
+ | |||
+ | \begin{document} | ||
+ | Une planète Terre appelée par une commande générique: | ||
+ | |||
+ | \defdingname[marvosym][global]{109}{terre}[black] | ||
+ | Une planète Terre appelée par une nouvelle commande personnelle: | ||
+ | \end{document} | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | \documentclass[12pt]{article} | ||
+ | \usepackage{yagusylo} | ||
+ | \usepackage[french]{babel} | ||
+ | \pagestyle{empty} | ||
+ | |||
+ | \begin{document} | ||
+ | Une planète Terre appelée par une commande générique: | ||
+ | |||
+ | \defdingname[marvosym][global]{109}{terre}[black] | ||
+ | Une planète Terre appelée par une nouvelle commande personnelle: | ||
+ | \end{document} | ||
+ | </ | ||
+ | |||
+ | <WRAP clear /> | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 36ex> | ||
+ | Les familles possibles sont: | ||
+ | |||
+ | ^ Package | ||
+ | | [[ctanpkg> | ||
+ | | [[ctanpkg> | ||
+ | | | '' | ||
+ | | | '' | ||
+ | | | '' | ||
+ | | | '' | ||
+ | | | '' | ||
+ | | [[ctanpkg> | ||
+ | | [[ctanpkg> | ||
+ | | [[ctanpkg> | ||
+ | | [[ctanpkg> | ||
+ | | [[ctanpkg> | ||
+ | | | '' | ||
+ | </ | ||
+ | <WRAP column 50ex> | ||
+ | < | ||
+ | L' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | |||
+ | ----- | ||
+ | //Source:// [[faquk> | ||
+ | |||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||