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 | ||
domaines_specialises:mathematiques:ajuster_la_longueur_d_une_fleche_par_rapport_a_un_texte [2020/11/18 20:11] – Corrections de coquilles de texte et de balisage yannick.tanguy | 4_domaines_specialises:mathematiques:symboles:fleches:ajuster_la_longueur_d_une_fleche_par_rapport_a_un_texte [2023/02/19 21:17] (Version actuelle) – Correction du code d'un exemple. jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Comment ajuster la longueur d'une flèche par rapport à celle d'un texte ? ====== | + | ====== Comment ajuster la longueur d'une flèche par rapport à celle d'un texte? ====== |
- | La commande '' | + | ===== Avec l' |
+ | ==== Flèche simple ==== | ||
+ | |||
+ | La commande '' | ||
+ | |||
+ | === === | ||
+ | <WRAP column 45ex> | ||
<code latex> | <code latex> | ||
- | $\xrightarrow[\text{au-dessous}]{\text{au-dessus}}$ | + | \documentclass{article} |
+ | \usepackage{mathtools} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xrightarrow[\text{au-dessous | ||
+ | (plus long)}]{\text{au-dessus}} | ||
+ | \xrightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus (pas plus court)}} | ||
+ | $ | ||
+ | \end{document} | ||
</ | </ | ||
+ | </ | ||
- | <latex> | + | <WRAP column 45ex> |
- | $\xrightarrow[\text{au-dessous}]{\text{au-dessus}}$ | + | < |
- | </latex> | + | \documentclass{article} |
+ | \usepackage[body={8cm, | ||
+ | \usepackage{lmodern} | ||
+ | \usepackage{mathtools} | ||
+ | \pagestyle{empty} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xrightarrow[\text{au-dessous | ||
+ | (plus long)}]{\text{au-dessus}} | ||
+ | \xrightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus (pas plus court)}} | ||
+ | $ | ||
+ | \end{document} | ||
+ | </latexdoc> | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | ==== ==== | ||
- | {{htmlmetatags> | + | Comme vous pouvez l' |
+ | |||
+ | === === | ||
+ | <WRAP column 45ex> | ||
+ | <code latex> | ||
+ | \documentclass{article} | ||
+ | \usepackage{mathtools} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xleftarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xleftrightarrow[\text{% | ||
+ | au-dessous}]{\text{au-dessus}}$ | ||
+ | \end{document} | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP column 45ex> | ||
+ | < | ||
+ | \documentclass{article} | ||
+ | \usepackage[body={8cm, | ||
+ | \usepackage{lmodern} | ||
+ | \usepackage{mathtools} | ||
+ | \pagestyle{empty} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xleftarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xleftrightarrow[\text{% | ||
+ | au-dessous}]{\text{au-dessus}}$ | ||
+ | \end{document} | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | ==== ==== | ||
+ | |||
+ | ==== Flèche double ==== | ||
+ | |||
+ | De la même façon qu'il existe '' | ||
+ | |||
+ | === === | ||
+ | <WRAP column 45ex> | ||
+ | <code latex> | ||
+ | \documentclass{article} | ||
+ | \usepackage{mathtools} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xLeftarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xRightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xLeftrightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}}$ | ||
+ | \end{document} | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP column 45ex> | ||
+ | < | ||
+ | \documentclass{article} | ||
+ | \usepackage[body={8cm, | ||
+ | \usepackage{lmodern} | ||
+ | \usepackage{mathtools} | ||
+ | \pagestyle{empty} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xLeftarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xRightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xLeftrightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}}$ | ||
+ | \end{document} | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | ==== ==== | ||
+ | |||
+ | ==== Flèche à deux pointes ==== | ||
+ | |||
+ | Pour une flèche à deux pointes, vous devrez écrire vos propres commandes : | ||
+ | |||
+ | === === | ||
+ | <WRAP column 45ex> | ||
+ | <code latex> | ||
+ | \documentclass{article} | ||
+ | \usepackage{mathtools} | ||
+ | \newcommand\dhrightarrow{% | ||
+ | \mathrel{\ooalign{$\rightarrow$% | ||
+ | \cr$\mkern3.5mu\rightarrow$}} | ||
+ | } | ||
+ | \newcommand\dhxrightarrow[2][]{% | ||
+ | \mathrel{\ooalign{$\xrightarrow[% | ||
+ | # | ||
+ | \hidewidth$\rightarrow% | ||
+ | \mkern4mu$}} | ||
+ | } | ||
+ | \begin{document} | ||
+ | \begin{alignat*}{3} | ||
+ | A \rightarrow | ||
+ | A \xrightarrow[C]{D} B && | ||
+ | A \xrightarrow{\text{Long texte% | ||
+ | \dots}} B | ||
+ | & \\ | ||
+ | A \dhrightarrow B && | ||
+ | A \dhxrightarrow[C]{D} B && | ||
+ | A \dhxrightarrow{\text{Long texte% | ||
+ | \dots}} B | ||
+ | & \\ | ||
+ | \end{alignat*} | ||
+ | \end{document} | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP column 45ex> | ||
+ | < | ||
+ | \documentclass{article} | ||
+ | \usepackage[body={8cm, | ||
+ | \usepackage{lmodern} | ||
+ | \usepackage{mathtools} | ||
+ | \newcommand\dhrightarrow{% | ||
+ | \mathrel{\ooalign{$\rightarrow$% | ||
+ | \cr$\mkern3.5mu\rightarrow$}} | ||
+ | } | ||
+ | \newcommand\dhxrightarrow[2][]{% | ||
+ | \mathrel{\ooalign{$\xrightarrow[% | ||
+ | # | ||
+ | \hidewidth$\rightarrow% | ||
+ | \mkern4mu$}} | ||
+ | } | ||
+ | \pagestyle{empty} | ||
+ | \begin{document} | ||
+ | \begin{alignat*}{3} | ||
+ | A \rightarrow | ||
+ | A \xrightarrow[C]{D} B && | ||
+ | A \xrightarrow{\text{Long texte% | ||
+ | \dots}} B | ||
+ | & \\ | ||
+ | A \dhrightarrow B && | ||
+ | A \dhxrightarrow[C]{D} B && | ||
+ | A \dhxrightarrow{\text{Long texte% | ||
+ | \dots}} B | ||
+ | & \\ | ||
+ | \end{alignat*} | ||
+ | \end{document} | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | ==== ==== | ||
+ | |||
+ | ----- | ||
+ | //Source:// [[https:// | ||
+ | |||
+ | {{htmlmetatags> | ||
metatag-og: | metatag-og: | ||
metatag-og: | metatag-og: | ||
}} | }} | ||
- |