我的问题是:如何让脚注尺寸方程的方程编号以正常尺寸显示?目前,方程编号 (2) 在脚注尺寸中显得太小了。
\documentclass[a4paper,11pt]{report}
\usepackage[utf8]{inputenc}
% Math related
\usepackage{amsmath,amssymb}
% matrix spacing
\usepackage{tabstackengine}
\setstackEOL{\cr}
%%%%%%%%%%%
\begin{document}
This is the normalsize equation.
\begin{equation} \label{eq.normal}
\setstacktabbedgap{1pt}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\parenMatrixstack{
v_{11} & v_{12} & v_{13}\cr
v_{21} & v_{22} & v_{23}\cr
\vdots & \vdots & \vdots\cr
v_{N1} & v_{N2} & v_{N3}
}
\parenMatrixstack{
\sqrt{\lambda_{1}}&0 & 0\cr
0 & \sqrt{\lambda_{2}} & 0\cr
0 & 0 & \sqrt{\lambda_{3}}
}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{equation}
\\
This is the footnotesize equation.
\footnotesize{
\begin{equation} \label{eq.footnotesize}
\setstacktabbedgap{1pt}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\parenMatrixstack{
v_{11} & v_{12} & v_{13}\cr
v_{21} & v_{22} & v_{23}\cr
\vdots & \vdots & \vdots\cr
v_{N1} & v_{N2} & v_{N3}
}
\parenMatrixstack{
\sqrt{\lambda_{1}}&0 & 0\cr
0 & \sqrt{\lambda_{2}} & 0\cr
0 & 0 & \sqrt{\lambda_{3}}
}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{equation}
}
\normalsize
\\
\end{document}
答案1
在等式前使用\footnotesize
并不是最好的做法,因为它会影响等式前文本的基线跳过。
我建议一个您可以决定字体大小的新环境。
\documentclass{article}
\usepackage{amsmath}
\ExplSyntaxOn
\NewDocumentEnvironment{sequation}{O{\small}b}
{
\yufip_sequation:nnn {equation}{#1}{#2}
}{}
\NewDocumentEnvironment{sequation*}{O{\small}b}
{
\yufip_sequation:nnn {equation*}{#1}{#2}
}{}
\cs_new_protected:Nn \yufip_sequation:nnn
{
\begin{#1}
\mbox{#2$\displaystyle#3$}
\end{#1}
}
\ExplSyntaxOff
\begin{document}
This is the normalsize equation.
\begin{equation} \label{eq.normal}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\[1ex]
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\begin{pmatrix}
v_{11} & v_{12} & v_{13}\\
v_{21} & v_{22} & v_{23}\\
\vdots & \vdots & \vdots\\
v_{N1} & v_{N2} & v_{N3}
\end{pmatrix}
\begin{pmatrix}
\sqrt{\lambda_{1}}&0 & 0\\
0 & \sqrt{\lambda_{2}} & 0\\
0 & 0 & \sqrt{\lambda_{3}}
\end{pmatrix}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{equation}
This is the footnotesize equation.
\begin{sequation}[\footnotesize] \label{eq.footnotesize}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\[1ex]
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\begin{pmatrix}
v_{11} & v_{12} & v_{13}\\
v_{21} & v_{22} & v_{23}\\
\vdots & \vdots & \vdots\\
v_{N1} & v_{N2} & v_{N3}
\end{pmatrix}
\begin{pmatrix}
\sqrt{\lambda_{1}}&0 & 0\\
0 & \sqrt{\lambda_{2}} & 0\\
0 & 0 & \sqrt{\lambda_{3}}
\end{pmatrix}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{sequation}
This is the small equation, without equation number.
\begin{sequation*}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\[1ex]
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\begin{pmatrix}
v_{11} & v_{12} & v_{13}\\
v_{21} & v_{22} & v_{23}\\
\vdots & \vdots & \vdots\\
v_{N1} & v_{N2} & v_{N3}
\end{pmatrix}
\begin{pmatrix}
\sqrt{\lambda_{1}}&0 & 0\\
0 & \sqrt{\lambda_{2}} & 0\\
0 & 0 & \sqrt{\lambda_{3}}
\end{pmatrix}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{sequation*}
\end{document}
答案2
另一种可能性是利用medsize
环境,来自nccmath
(约 80% \displaystyle
):
\documentclass[a4paper,11pt]{report}
% Math related
\usepackage{amsmath,amssymb}
% matrix spacing
\usepackage{nccmath}
\usepackage{tabstackengine}
\setstackEOL{\cr}
%%%%%%%%%%%
\begin{document}
This is the normalsize equation.
\begin{equation} \label{eq.normal}
\setstacktabbedgap{1pt}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\parenMatrixstack{
v_{11} & v_{12} & v_{13}\cr
v_{21} & v_{22} & v_{23}\cr
\vdots & \vdots & \vdots\cr
v_{N1} & v_{N2} & v_{N3}
}
\parenMatrixstack{
\sqrt{\lambda_{1}}&0 & 0\cr
0 & \sqrt{\lambda_{2}} & 0\cr
0 & 0 & \sqrt{\lambda_{3}}
}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{equation}
\\
\begin{equation} \label{eq.normal}
\begin{medsize}
\setstacktabbedgap{1pt}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\parenMatrixstack{
v_{11} & v_{12} & v_{13}\cr
v_{21} & v_{22} & v_{23}\cr
\vdots & \vdots & \vdots\cr
v_{N1} & v_{N2} & v_{N3}
}
\parenMatrixstack{
\sqrt{\lambda_{1}}&0 & 0\cr
0 & \sqrt{\lambda_{2}} & 0\cr
0 & 0 & \sqrt{\lambda_{3}}
}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{medsize}
\end{equation}\\
This is the footnotesize equation.
\footnotesize{
\begin{equation} \label{eq.footnotesize}
\setstacktabbedgap{1pt}
\begin{pmatrix}
\frac{dF_1(t,\:T_1)}{F_1(t,\:T_1)}\\
\frac{dF_2(t,\:T_2)}{F_i(t,\:T_2)}\\
\vdots\\
\frac{dF_N(t,\:T_N)}{F_N(t,\:T_N)}\\
\end{pmatrix} =
\parenMatrixstack{
v_{11} & v_{12} & v_{13}\cr
v_{21} & v_{22} & v_{23}\cr
\vdots & \vdots & \vdots\cr
v_{N1} & v_{N2} & v_{N3}
}
\parenMatrixstack{
\sqrt{\lambda_{1}}&0 & 0\cr
0 & \sqrt{\lambda_{2}} & 0\cr
0 & 0 & \sqrt{\lambda_{3}}
}
\begin{pmatrix}
dZ_{1}(t)\\
dZ_{2}(t)\\
dZ_{3}(t)\\
\end{pmatrix}
\end{equation}
}
\normalsize
\end{document}
答案3
该mathtools
包(该包的超集amsmath
)提供了命令\newtagform
和,使方程编号及其相关括号的\usetagform
执行变得简单易懂。例如,\normalsize
\newtagform{normalsize}[\normalsize]{\normalsize(}{\normalsize)}
在下面的截图中,相同的方程被排版了 3 次:at \normalsize
(默认)、\footnotesize
和\Large
。因为我们执行了\usetagform{normalsize}
,所以即使显示的数学运算发生变化,方程数字的大小也不会发生变化。
\documentclass[11pt]{report}
\usepackage{mathtools}
\newtagform{normalsize}[\normalsize]{\normalsize(}{\normalsize)}
\setlength\textwidth{7cm} % just for this example
\begin{document}
\usetagform{normalsize}
\begin{equation} \label{eq.normal}
1+2+3+4+5=15
\end{equation}
%
\footnotesize%
\begin{equation} \label{eq.footnotesize}
1+2+3+4+5=15
\end{equation}
%
\Large%
\begin{equation} \label{eq.Large}
1+2+3+4+5=15
\end{equation}
\end{document}