
私は\mathcode"69"69
、このコメントで提案されたように、序文で使用しています質問、数式内の e と i を自動的に縦書きにします。
問題は、イタリック体を取得する方法があるかどうかです私たとえば、後で数式モードでインデックスとして使用しますか? その場合、どのようにしますか?
試してみましたが$\mathit{i}$
、うまくいきませんでした。
答え1
i
コマンドは、およびの古い mathcode 設定を使用して定義できますe
。
\documentclass{article}
\mathchardef\iti=\mathcode`\i
\mathchardef\ite=\mathcode`\e
\mathcode`\i=`\i
\mathcode`\e=`\e
\begin{document}
\begin{displaymath}
4 + 7i = 4e^{10} + b_\iti^\ite
\end{displaymath}
\end{document}