调整latex公式中局部字体大小

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了调整latex公式中局部字体大小相关的知识,希望对你有一定的参考价值。

参考技术A 可用字体包含:
\displaystyle 标准
\textstyle 行内
\scriptstyle 第一层上下标
\scriptscriptstyle 第二层上下标

示例:

有些公式符号行内行外style没有差别,可能不同符号情况不一样

Latex公式图片间距

参考技术A 一、LATEX调整公式与正文间距离,调整空白大小:

调整空白命令:
\setlength\abovedisplayskip3pt
\setlength\belowdisplayskip3pt

用法,放在各种公式命令的适当位置,参见如下:

%样式一
\beginequation
\setlength\abovedisplayskip3pt
\setlength\belowdisplayskip3pt
y(t)=a(t)-b(t).
\endequation

%样式二
$$
\setlength\abovedisplayskip3pt
\setlength\belowdisplayskip3pt
y(t)=a(t)-b(t).
$$

%样式三
\begineqnarray
\setlength\abovedisplayskip3pt
\setlength\belowdisplayskip3pt
y(t)=a(t)-b(t).
\endeqnarray

二、Latex调整图片与上下文距离
\vspace-0.8cm %调整图片与上文的垂直距离
\setlength\abovecaptionskip-0.2cm %调整图片标题与图距离
\setlength\belowcaptionskip-1cm %调整图片标题与下文距离

\usepackagetitlesec宏包
\titleformat\chapter[display]\normalfont\huge\bfseries\center\chaptertitlename\ \thechapter10pt\Huge
\titleformat\section\normalfont\Large\bfseries\thesection1em
\titleformat\subsection\normalfont\large\bfseries\thesubsection1em
\titleformat\subsubsection\normalfont\normalsize\bfseries\thesubsubsection1em
\titleformat\paragraph[runin]\normalfont\normalsize\bfseries\theparagraph1em
\titleformat\subparagraph[runin]\normalfont\normalsize\bfseries\thesubparagraph1em
下面的命令用于调节 标题与上下文,段落之间间距命令
\titlespacing \chapter 0pt50pt40pt
\titlespacing \section 0pt3.5ex plus 1ex minus .2ex2.3ex plus .2ex
\titlespacing \subsection 0pt3.25ex plus 1ex minus .2ex1.5ex plus .2ex
\titlespacing \subsubsection0pt3.25ex plus 1ex minus .2ex1.5ex plus .2ex
\titlespacing \paragraph 0pt3.25ex plus 1ex minus .2ex1em
\titlespacing \subparagraph \parindent3.25ex plus 1ex minus .2ex1em

参数随便改

比如:我用\titlespacing*\section 0pt9pt0pt来设置小的上下文与标题间距。

http://zh-cn.w3support.net/index.php?db=so&id=512967

以上是关于调整latex公式中局部字体大小的主要内容,如果未能解决你的问题,请参考以下文章

LaTeX目录中的字体如何调整大小

Latex局部字体大小设置

Latex设置字体大小

如何设置latex表格内的字体和大小

Python画图:改变所有字体(大小,名称等)

LaTeX :font size 修改字体大小的几种方式