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 | ||
| 4_domaines_specialises:mathematiques:definir_un_nouvel_operateur [2021/06/15 06:54] – Correction de lien interne. jejust | 4_domaines_specialises:mathematiques:structures:operateurs:definir_un_nouvel_operateur [2022/01/06 08:22] (Version actuelle) – Ajout d'éléments anciens. yannick.tanguy | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== | + | ====== |
| + | Pour cela, vous pouvez utiliser la commande '' | ||
| - | Use the '' | + | <WRAP column 45ex> |
| <code latex> | <code latex> | ||
| - | \newcommand{\diag}{\mathop{\mathrm{diag}}} | + | % Dans le préambule |
| + | \newcommand{\diag}{% | ||
| + | | ||
| + | % (...) | ||
| + | % Dans le document | ||
| + | \[\diag_1^n \] | ||
| </ | </ | ||
| + | </ | ||
| - | Subscripts and superscripts on '' | + | <WRAP column 45ex> |
| - | above the function name, as they are on '' | + | < |
| - | If you want your subscripts and superscripts always placed to the right, do: | + | \documentclass{article} |
| + | \usepackage{amsmath} | ||
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| + | \newcommand{\diag}{\mathop{\mathrm{diag}}} | ||
| + | \[\diag_1^n \] | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| + | |||
| + | Les indices et les exposants associés à '' | ||
| + | : | ||
| + | |||
| + | <WRAP column 45ex> | ||
| <code latex> | <code latex> | ||
| - | \newcommand{\diag}{\mathop{\mathrm{diag}}\nolimits} | + | % Dans le préambule |
| + | \newcommand{\diag}{% | ||
| + | | ||
| + | % (...) | ||
| + | % Dans le document | ||
| + | \[\diag_1^n \] | ||
| </ | </ | ||
| + | </ | ||
| - | The [[ctanpkg> | + | <WRAP column 45ex> |
| - | loaded by [[ctanpkg> | + | < |
| - | that takes does the same job as the first definition above. | + | \documentclass{article} |
| - | To create our original '' | + | \usepackage{amsmath} |
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| + | \newcommand{\diag}{\mathop{\mathrm{diag}}\nolimits} | ||
| + | \[\diag_1^n \] | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| + | |||
| + | L' | ||
| + | |||
| + | <WRAP column 45ex> | ||
| <code latex> | <code latex> | ||
| + | % Dans le préambule | ||
| \DeclareMathOperator{\diag}{diag} | \DeclareMathOperator{\diag}{diag} | ||
| + | % (...) | ||
| + | % Dans le document | ||
| + | \[\diag_1^n \] | ||
| </ | </ | ||
| + | </ | ||
| - | '' | + | <WRAP column 45ex> |
| - | sub- and superscripts in the | + | < |
| - | « [[4_domaines_specialises: | + | \documentclass{article} |
| + | \usepackage{amsmath} | ||
| + | \pagestyle{empty} | ||
| + | \DeclareMathOperator{\diag}{diag} | ||
| + | \begin{document} | ||
| + | \[\diag_1^n \] | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| - | The [[ctanpkg> | + | Pour créer notre commande |
| - | into your mathematics, so '' | + | |
| + | <WRAP column 45ex> | ||
| <code latex> | <code latex> | ||
| + | % Dans le préambule | ||
| + | \DeclareMathOperator*{\diag}{diag} | ||
| + | % (...) | ||
| + | % Dans le document | ||
| + | \[\diag_1^n \] | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP column 45ex> | ||
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage{amsmath} | ||
| + | \pagestyle{empty} | ||
| + | \DeclareMathOperator*{\diag}{diag} | ||
| + | \begin{document} | ||
| + | \[\diag_1^n \] | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| + | |||
| + | La commande '' | ||
| + | |||
| + | <code latex> | ||
| + | \[ \operatorname{foo}(bar) \] | ||
| + | </ | ||
| + | |||
| + | Ceci sera équivalent à : | ||
| + | |||
| + | <code latex> | ||
| + | % Dans le préambule | ||
| \DeclareMathOperator{\foo}{foo} | \DeclareMathOperator{\foo}{foo} | ||
| - | ... | + | % (...) |
| + | % Dans le document | ||
| \[ \foo(bar) \] | \[ \foo(bar) \] | ||
| </ | </ | ||
| - | As with '' | ||
| - | '' | ||
| - | (It should be noted that " | + | Comme pour '' |
| + | <note important> | ||
| + | |||
| + | En < | ||
| ----- | ----- | ||
| Ligne 45: | Ligne 130: | ||
| {{htmlmetatags> | {{htmlmetatags> | ||
| - | metatag-og: | + | metatag-og: |
| metatag-og: | metatag-og: | ||
| }} | }} | ||
| - | |||

