Latex 公式字体大小、公式后缩进,以及段前行间距变化

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.

结果如图:
请添加图片描述

解决!!!

  • 26
    点赞
  • 43
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值