LaTeX中在math mode下的部分文字大小转换
常见的\Huge
、tiny
等等控制fontsize的指令会在math mode下失去作用并引起warning或报错,这个时候需要\mbox来解决。
参考发表于伯克利统计系网站的一个方法:
Type sizes and changing type size in math mode
The standard type sizes in Latex are:
tiny, scriptsize, footnotesize, small, normalsize, large, Large, LARGE, huge, Huge
To change the size within the math environment, try the following
$$ \mbox{\Huge $ 3x+3=\mu$ } $$
You can define a short alias command for creating bold math notation in the document preamble:
\newcommand{\bld}[1]{\mbox{\boldmath $#1$}}
Using \boldmath
with subscripts can cause the subscript typesize to be too large; I often define a new command in the document preamble:
\newcommand{\blds}[1]{\mbox{\scriptsize \boldmath $#1$}}
Keywords: bold, math, notation, subscript, type size, Latex