对齐环境中方程式的字体大小减小

对齐环境中方程式的字体大小减小

当我使用“对齐环境”编写方程式时,显示的方程式(方程式 1.5 和 1.6)的字体大小看起来比其他方程式(方程式 1.7 和 1.8)小。为了参考,我附上了编译文档的屏幕截图。如何确保所有方程式的字体大小相同?

\begin{align}
\pd{f}{x} &= \pd{f}{z} \cdot \pd{z}{x} = \pd{f}{z} \cdot 1 \\
\pd{f}{y} &= \pd{f}{z} \cdot \pd{z}{y} = \pd{f}{z} \cdot i
\end{align}

since $f(x) = u(x,y) + iv(x,y)$ by \autoref{eq:complexfunction}, we also have

\begin{equation}
\pd{f}{x} = \pd{u}{x} + i \pd{v}{x} \quad \text{and} \quad \pd{f}{y} = \pd{u}{y} + i \pd{v}{y}
\end{equation}
Combining above equations, we have

\begin{equation}
\pd{f}{x} = \pd{f}{z} = \pd{u}{x} + i \pd{v}{x} \quad \text{and} \quad \pd{f}{x} = \pd{f}{z} = \pd{u}{x} + i \pd{v}{x}
\end{equation}

序言(如果需要)

\documentclass[a4paper]{article}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{jheppub}
\usepackage{amsthm}
\usepackage{tcolorbox}
\usepackage{commath}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\tcbuselibrary{theorems}
\newtcbtheorem
  []% init options
  {theorem}% name
  {Theorem}% title
  {%
    colback=green!5,
    colframe=green!35!black,
    fonttitle=\bfseries,
  }% options
  {thm}% prefix

\newtcbtheorem
  []% init options
  {definition}% name
  {Definition}% title
  {%
    colback=red!5,
    colframe=red!50!black,
    fonttitle=\bfseries,
  }% options
  {def}% prefix

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\reals}{\mathbb{R}}
\renewcommand{\qedsymbol}{$\blacksquare$}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\subheader{Notes}
\title{Some Title}
\author{Some Author}
\affiliation{Greatest University}
\emailAdd{[email protected]}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\maketitle
\flushbottom
\newpage

答案1

更合理的测试文档是

在此处输入图片描述

\documentclass{article}

\usepackage{amsmath}
\usepackage{commath}
\begin{document}

align
\begin{align}
\pd{f}{x} &= \pd{f}{z} \cdot \pd{z}{x} = \pd{f}{z} \cdot 1 \\
\pd{f}{y} &= \pd{f}{z} \cdot \pd{z}{y} = \pd{f}{z} \cdot i
\end{align}

equation
\begin{equation}
\pd{f}{x} = \pd{u}{x} + i \pd{v}{x} \quad \text{and} \quad \pd{f}{y} = \pd{u}{y} + i \pd{v}{y}
\end{equation}
\end{document}

commath包基于对的误解,\ifinner并强制在align该包中进行文本样式设置,确实不值得推荐,请使用简单版本\frac而不是commath版本\pd

在此处输入图片描述

\documentclass{article}

\usepackage{amsmath}
%\usepackage{commath}
\newcommand\pd[2]{\frac{\partial#1}{\partial#2}}
\begin{document}

align
\begin{align}
\pd{f}{x} &= \pd{f}{z} \cdot \pd{z}{x} = \pd{f}{z} \cdot 1 \\
\pd{f}{y} &= \pd{f}{z} \cdot \pd{z}{y} = \pd{f}{z} \cdot i
\end{align}

equation
\begin{equation}
\pd{f}{x} = \pd{u}{x} + i \pd{v}{x} \quad \text{and} \quad \pd{f}{y} = \pd{u}{y} + i \pd{v}{y}
\end{equation}
\end{document}

相关内容