Latex公式内行间距,字体大小控制

来源:互联网 发布:qt5 socket编程 编辑:程序博客网 时间:2024/05/16 20:14

Part A: 公式中字体大小控制

在数学模式中,有四个控制字体相对大小的命令,即
\displaystyle D 行间公式的基本尺寸
\textstyle T 行内公式的基本尺寸大小
\scriptstyle S 一级角标的尺寸
\scriptscirptstyle SS 二级角标的尺寸大小
一、对于行内公式我们可以采取下面两种方法
1.一个行内分式

$\frac{1}{a + b}$
2.一个行内分式

$\displaystyle\frac{1}{a + b}$

二、像修改正文字体那样来修改公式字体
1. 逐个修改

\begin{small}\begin{equation}A \times B = C\end{equation}\end{small}

2. 批量修改,定义新的环境:

\newenvironment{sequation}{\small\begin{quation}}{\end{equation}}\newenvironment{tequation}{\tiny\begin{equation}}{\end{equation}}
\begin{sequation}   A \times B = C\end{sequation}\begin{tequation}  A \times B = C\end{tequation}



Part B: 修改行间距


\usepackage{setspace}\begin{document}\begin{spacing}{2.0}%%行间距变为double-space\begin{spacing}{1.0}%%行间距变为single-space\end{spacing}\end{spacing}\end{document}


添加空行的方法:


\vskip 2 cm.


其中的2可以随意修改

公式中加间隔
\quad
\qquad
\,
\:
\;
\!

前面两个的间隔较大,后面三个较小,最后一个是负间隔;

另外,还可以使用 \hspace{距离} 等来插入间隔.




1 0