我需要显示方程式字体大小比普通文本小 1pt,但内联方程式保持与文本字体大小相同。如何在乳胶中处理这个问题,有人能帮忙吗
提前致谢
答案1
您可以定义一个新的环境。
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{environ}
\NewEnviron{myequation}{%
\par\vspace{-\baselineskip}
\small
\begin{equation}%
\BODY
\end{equation}
}
\begin{document}
\noindent Some text here $y=x$ Some text here Some text here Some text here Some text here Some text here Some text here Some text here Some text here Some text here
\begin{myequation}%
f(y) = ya \times k^{y} %
\end{myequation}
Some text here $f(y)=0$
\end{document}
答案2
定义newcommand
用于设置方程字体大小。
\documentclass[10pt]{article}
\newcommand{\se}[1]{\fontsize{9}{0} % 1pt smaller then normal text. Set it whatever you want
\begin{equation}
{#1}
\end{equation}
\fontsize{10}{0}
}
\begin{document}
This is $f(x)=g(x)$ an inline equation.
This is display mode equation. \se{\lim_{x \to \infty} \exp(-x) = 0}
This is another $y=\sin (x)$ inline equation.
\end{document}