如何增加整个文档或者最好只是这一部分的字体大小?
\begin{center}
$R_{ecl} = \sqrt{(X_{ecl}^{2} + Y_{ecl}^{2} + Z_{ecl}^{2})}$\\
$\lambda = \arctan{\frac{Y_{ecl}}{X_{ecl}}}$\\
$\beta = \arctan{\frac{Z_{ecl}}{\sqrt{(X_{ecl}^{2} + Y_{ecl}^{2})}}}$\\
\end{center}
答案1
例如
\begin{center}
\large
$R_{ecl} = \sqrt{(X_{ecl}^{2} + Y_{ecl}^{2} + Z_{ecl}^{2})}$\\
$\lambda = \arctan{\frac{Y_{ecl}}{X_{ecl}}}$\\
$\beta = \arctan{\frac{Z_{ecl}}{\sqrt{(X_{ecl}^{2} + Y_{ecl}^{2})}}}$\\
\end{center}
还有\Large
、、\LARGE
和。\huge
\Huge
答案2
假设您使用的是 pdfLaTeX,则主要应查看命令\large
、\Large
和\huge
。每个命令代表字体大小比前一个级别增加 20%。要本地化字体大小变化的效果,请将宏放在预定义环境中(例如center
)或将它们放在一对\begingroup
and\endgroup
语句中。
\documentclass{article}
\usepackage[vmargin=1cm]{geometry}
\usepackage{amsmath} % for "gather*" environment
\newcommand\threelines{\par
\begin{gather*}
R_{ecl} = \sqrt{X_{ecl}^{2} + Y_{ecl}^{2} + Z_{ecl}^{2}}\\
\lambda = \arctan{\frac{Y_{ecl}}{X_{ecl}}}\\
\beta = \arctan{\frac{Z_{ecl}}{\sqrt{X_{ecl}^{2} + Y_{ecl}^{2}}}}
\end{gather*}}
\begin{document}
\verb+default font size+
\threelines
\begingroup
\large
\verb+20% larger+
\threelines
\endgroup
\begingroup
\Large
\verb+44% larger+
\threelines
\endgroup
\begingroup
\Huge
\verb+73% larger+
\threelines
\endgroup
\end{document}