2024年4月3日发(作者:霸州小升初数学试卷)

latex中算法部分用磅数字体变小

第一种方法:用比较笨的方法,一个一个公式用

begin{small}

begin{equation}

ldots

end{equation}

end{small}

第二种方法:定义新的变量环境在开始

newenvironment{sequation}{begin{equation}small}{end{equa

tion}}

演示代码:

documentclass{article}

usepackage[includemp,body={398pt,550pt},footskip=30pt,%

marginparwidth=60pt,marginparsep=10pt]{geometry}

newenvironment{sequation}{begin{equation}small}{end{equa

tion}}

newenvironment{tequation}{begin{equation}tiny}{end{equati

on}}

begin{document}

begin{tequation}

int_a^b f(x) mathrm{d}x=A

end{tequation}

begin{sequation}

int_a^b f(x) mathrm{d}x=A

end{sequation}

begin{equation}

int_a^b f(x) mathrm{d}x=A

end{equation}

end{document}

LaTeX作为一个功能强大国际通用的排版软件,它特别适合于数

理科学中科技论文、专业书籍排版, LaTeX尤其适合于各种符号公式

的编排,其公式排版效果是目前常用的mathtype所不能比拟的。

在数学模式中,有四个控制字体相对大小的命令,即

displaystyle D 行间公式的基本尺寸

textstyle T 行内公式的基本尺寸大小

scriptstyle S 一级角标的尺寸

scriptscirptstyle SS 二级角标的尺寸大小

对于行内公式我们可以采取下面两种方法

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

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


更多推荐

公式,排版,尺寸,行内,数字,字体,基本,变量