Kodama's home / tips.

数式でのサイズの調整

数式の大きさの階層は 4段階になっていて, 文字の大きさだけではなく 記号 の配置なども調整される.
通常のテキストのサイズ変更を数式の中で行いたい場合, \mbox で一旦テキストモードにして, その中で再度 数式環境に移す.
%% LaTeX sample

\documentclass{article}
\begin{document}

$\displaystyle \sum^{x}_{x} x^{x^x}_{x_x} \textstyle \sum^{x}_{x} x^{x^x}_{x_x}
\scriptstyle \sum^{x}_{x} x^{x^x}_{x_x} \scriptscriptstyle \sum^{x}_{x} x^{x^x}_{x_x}$

$ \mbox{\tiny $x^{y^x}$} \mbox{\scriptsize $x^{y^z}$} \mbox{\footnotesize $x^{y^z}$} 
\mbox{\normalsize $x^{y^z}$} \mbox{\large $x^{y^z}$} \mbox{\Large $x^{y^z}$}
\mbox{\LARGE $x^{y^z}$} \mbox{\huge $x^{y^z}$} \mbox{\Huge $x^{y^z}$} $

\end{document}

Kodama's home / tips.