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 [2021/01/13 14:04] – Ajout d'une source. jejust | 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' |
- | dont la longueur est fonction de celles du texte qui est placé au-dessus et au-dessous | + | |
- | (et de la chaîne la plus longue lorsqu' | + | |
- | En voici un exemple : | + | |
- | <WRAP column> | + | ==== Flèche simple ==== |
- | <code latex> | + | |
- | $\xrightarrow[\text{au-dessous (plus long)}]{\text{au-dessus}}$ | + | |
- | </ | + | |
- | < | + | La commande '' |
- | \LARGE | + | |
- | $\xrightarrow[\text{au-dessous (plus long)}]{\text{au-dessus}}$ | + | === === |
- | </ | + | <WRAP column |
- | </ | + | |
- | <WRAP column> | + | |
<code latex> | <code latex> | ||
- | $\xrightarrow[\text{au-dessous}]{\text{au-dessus (pas plus court)}}$ | + | \documentclass{article} |
+ | \usepackage{mathtools} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xrightarrow[\text{au-dessous | ||
+ | (plus long)}]{\text{au-dessus}} | ||
+ | \xrightarrow[\text{au-dessous}]{% | ||
+ | | ||
+ | $ | ||
+ | \end{document} | ||
</ | </ | ||
+ | </ | ||
- | <latex> | + | <WRAP column 45ex> |
- | \LARGE | + | < |
- | $\xrightarrow[\text{au-dessous}]{\text{au-dessus (pas plus court)}}$ | + | \documentclass{article} |
- | </latex> | + | \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}]{% | ||
+ | | ||
+ | $ | ||
+ | \end{document} | ||
+ | </latexdoc> | ||
</ | </ | ||
<WRAP clear /> | <WRAP clear /> | ||
+ | ==== ==== | ||
- | Comme vous l'imaginez, il y a une commande '' | + | Comme vous pouvez |
+ | === === | ||
+ | <WRAP column 45ex> | ||
<code latex> | <code latex> | ||
- | $\xleftarrow[\text{au-dessous}]{\text{au-dessus}}$ | + | \documentclass{article} |
+ | \usepackage{mathtools} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xleftarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xleftrightarrow[\text{% | ||
+ | | ||
+ | \end{document} | ||
</ | </ | ||
+ | </ | ||
- | <latex> | + | <WRAP column 45ex> |
- | \LARGE | + | < |
- | $\xleftarrow[\text{au-dessous}]{\text{au-dessus}}$ | + | \documentclass{article} |
- | </latex> | + | \usepackage[body={8cm, |
+ | \usepackage{lmodern} | ||
+ | \usepackage{mathtools} | ||
+ | \pagestyle{empty} | ||
+ | \begin{document} | ||
+ | \Large | ||
+ | $\xleftarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xleftrightarrow[\text{% | ||
+ | | ||
+ | \end{document} | ||
+ | </latexdoc> | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | ==== ==== | ||
- | ===== Flèche double | + | ==== Flèche double ==== |
- | De la même façon qu'il existe '' | + | De la même façon qu'il existe '' |
- | et '' | + | |
- | vous pouvez imaginer appeler '' | + | |
- | mais pour que ça marche, vous devrez charger le package | + | |
+ | === === | ||
+ | <WRAP column 45ex> | ||
<code latex> | <code latex> | ||
+ | \documentclass{article} | ||
\usepackage{mathtools} | \usepackage{mathtools} | ||
- | $\xRightarrow[\text{au-dessous}]{\text{au-dessus}}$ | + | \begin{document} |
+ | \Large | ||
+ | $\xLeftarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xRightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xLeftrightarrow[\text{au-dessous}]{% | ||
+ | | ||
+ | \end{document} | ||
</ | </ | ||
+ | </ | ||
+ | <WRAP column 45ex> | ||
< | < | ||
\documentclass{article} | \documentclass{article} | ||
+ | \usepackage[body={8cm, | ||
+ | \usepackage{lmodern} | ||
\usepackage{mathtools} | \usepackage{mathtools} | ||
\pagestyle{empty} | \pagestyle{empty} | ||
\begin{document} | \begin{document} | ||
- | \LARGE | + | \Large |
- | $\xRightarrow[\text{au-dessous}]{\text{au-dessus}}$ | + | $\xLeftarrow[\text{au-dessous}]{% |
+ | \text{au-dessus}} | ||
+ | \xRightarrow[\text{au-dessous}]{% | ||
+ | \text{au-dessus}} | ||
+ | \xLeftrightarrow[\text{au-dessous}]{% | ||
+ | | ||
\end{document} | \end{document} | ||
</ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | ==== ==== | ||
- | ===== Flèche à deux pointes | + | ==== Flèche à deux pointes ==== |
- | Pour une flèche à deux pointes, vous devrez écrire vos propres commandes: | + | Pour une flèche à deux pointes, vous devrez écrire vos propres commandes : |
+ | === === | ||
+ | <WRAP column 45ex> | ||
<code latex> | <code latex> | ||
- | \usepackage{amsmath} | + | \documentclass{article} |
+ | \usepackage{mathtools} | ||
\newcommand\dhrightarrow{% | \newcommand\dhrightarrow{% | ||
- | \mathrel{\ooalign{$\rightarrow$\cr% | + | \mathrel{\ooalign{$\rightarrow$% |
- | $\mkern3.5mu\rightarrow$}} | + | \cr$\mkern3.5mu\rightarrow$}} |
} | } | ||
- | |||
\newcommand\dhxrightarrow[2][]{% | \newcommand\dhxrightarrow[2][]{% | ||
- | \mathrel{\ooalign{$\xrightarrow[# | + | \mathrel{\ooalign{$\xrightarrow[% |
- | \hidewidth$\rightarrow\mkern4mu$}} | + | |
+ | \hidewidth$\rightarrow% | ||
+ | | ||
} | } | ||
+ | \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} | \documentclass{article} | ||
- | \usepackage{amsmath} | + | \usepackage[body={8cm, |
+ | \usepackage{lmodern} | ||
+ | \usepackage{mathtools} | ||
\newcommand\dhrightarrow{% | \newcommand\dhrightarrow{% | ||
- | \mathrel{\ooalign{$\rightarrow$\cr% | + | \mathrel{\ooalign{$\rightarrow$% |
- | $\mkern3.5mu\rightarrow$}} | + | \cr$\mkern3.5mu\rightarrow$}} |
} | } | ||
- | |||
\newcommand\dhxrightarrow[2][]{% | \newcommand\dhxrightarrow[2][]{% | ||
- | \mathrel{\ooalign{$\xrightarrow[# | + | \mathrel{\ooalign{$\xrightarrow[% |
- | \hidewidth$\rightarrow\mkern4mu$}} | + | |
+ | \hidewidth$\rightarrow% | ||
+ | | ||
} | } | ||
- | |||
\pagestyle{empty} | \pagestyle{empty} | ||
\begin{document} | \begin{document} | ||
\begin{alignat*}{3} | \begin{alignat*}{3} | ||
- | A \rightarrow | + | A \rightarrow |
- | A \dhrightarrow B && | + | |
+ | | ||
+ | | ||
+ | | ||
+ | A \dhrightarrow B && | ||
+ | | ||
+ | | ||
+ | | ||
+ | & \\ | ||
\end{alignat*} | \end{alignat*} | ||
\end{document} | \end{document} | ||
</ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | ==== ==== | ||
----- | ----- | ||
Ligne 107: | Ligne 197: | ||
{{htmlmetatags> | {{htmlmetatags> | ||
- | metatag-og: | + | metatag-og: |
metatag-og: | metatag-og: | ||
}} | }} | ||
- |