1. 公式字体大小
- 字体可选项(\tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, \Huge)
- 使用方式如下,修改对应位置为上述可选项即可(如:tiny -> small, …)
{\tiny
\begin{align}
a = 1 + 2 + 3
\end{align}
}
\begin{tiny}
\begin{align}
a = 1 + 2 + 3
\end{align}
\end{tiny}
2.公式前正文行间距和公式后正文缩进问题
在有的 template 中,修改公式大小后,出现两个问题
- 公式前正文行间距也会随之改变。
- 公式后正文内容出现意外单格缩进,使用
\noindent
不起作用。
如下如所示:
对应源码为:
The equation with footnotesize will lead to the paragraph before has smaller line spacing, that is, too tight. The equation with footnotesize will lead to the paragraph before has smaller line spacing, that is, too tight. The equation with footnotesize will lead to the paragraph before has smaller line spacing, that is, too tight.
\begin{footnotesize}
\begin{align}
\label{eq:test}
&a = 1+2+3+4+5+6+7+8
\\&\notag+9+10+9+8+7+6+5+4+3+2+1
\end{align}
\end{footnotesize}
\noindent There will be unexpected indentations here and the \verb+\noindent+ command doesn't work. There will be unexpected indentations here and the \verb+\noindent+ command doesn't work. There will be unexpected indentations here and the \verb+\noindent+ command doesn't work.
解决方法参考:
https://tex.stackexchange.com/questions/565/how-can-i-get-rid-of-indentation-after-an-equation
https://tex.stackexchange.com/questions/33585/change-font-size-of-an-align-environment
- 针对行距问题,有两个简单修改方法。
- 在段落和公式间空一行
- 在公式前段落末尾使用
\par
指令
- 针对缩进问题,在公式末尾添加 % 即可
修改后源码为:
The equation with footnotesize will lead to the paragraph before has smaller line spacing, that is, too tight. The equation with footnotesize will lead to the paragraph before has smaller line spacing, that is, too tight. The equation with footnotesize will lead to the paragraph before has smaller line spacing, that is, too tight. \par
\begin{footnotesize}
\begin{align}
\label{eq:test}
&a = 1+2+3+4+5+6+7+8
\\&\notag+9+10+9+8+7+6+5+4+3+2+1
\end{align}
\end{footnotesize}%
There will be unexpected indentations here and the \verb+\noindent+ command doesn't work. There will be unexpected indentations here and the \verb+\noindent+ command doesn't work. There will be unexpected indentations here and the \verb+\noindent+ command doesn't work.
结果如图:
解决!!!