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/05/24 22:03] – 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? ====== |
- | section: Symbols, etc. | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | # Using symbols | + | 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, |
- | Most symbol font sets come with a package that defines commands for | + | ===== Une solution générale ===== |
- | every symbol in the font. While this is convenient, it can lead to | + | |
- | difficulties, | + | |
- | 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:// | + | Cette solution évitant les conflits de noms est présentée dans la question « [[2_programmation:erreurs:c: |
- | `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:// | + | ===== La mécanique de l'extension “pifont” ===== |
- | [`pifont`](https:// | + | |
- | of [`pifont`](https:// | + | |
- | for symbols. | + | |
- | `\yagding[family]{symbol number}`[color], | + | |
- | 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://ctan.org/pkg/Yagusylo) is somewhat complicated, but its documentation | + | L' |
- | clear; it is probably the best tool to use for picking and choosing | + | |
- | symbols from a variety of font families. | + | |
+ | <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: | ||
+ | }} | ||