考虑以下投影仪代码:
\documentclass{beamer}
\usepackage{mathtools, amsmath}
\begin{document}
\begin{frame}
\vspace{-1.5cm}
Result:
\begin{align*}
\pi_1(k, i\w) &=- \left( \frac12 \log\frac{D^2+\w^2}{\w^2} - \tan^{-1}\frac{D}{\w} \right) \\
\pi_2(k,i\w) &= \left( \frac12 \log\frac{D^2+\w^2}{\w^2} + \tan^{-1}\frac{D}{\w} \right) \\
\Pi_1(k, i\w) &= \begin{dcases}
-\frac{\e_{q,R}^2}{\e_{q,R}^2 + \w^2}, & q \sim 0 \\
{\scriptstyle
\begin{multlined}
\frac12 \left[ -\frac14 \log((\e_{q'R}-2D)^2 + \w^2) - \frac14 \log((\e_{q'R}+2D)^2 + \w^2) + \frac12 \log(\e_{q'R}^2 +\w^2) \right.\\
\left.\quad -\frac12 i \left( \tan^{-1} \frac{\e_{q'R}-2D}{\w} + \tan^{-1} \frac{\e_{q'R}+2D}{\w} \right) \right]
\end{multlined}
}
, & q \sim 2k_F
\end{dcases}.
\end{align*}
\end{frame}
\end{document}
为什么\scriptstyle
不工作?我该如何修复它?
答案1
multlined
使用\displaystyle
。另一方面,\scriptstyle
是不好的,因为分数会有分子和分母,\scriptscriptstyle
所以下标会变得太大。最好将最后一个括号拆分,再使用一行,全部在 中\textstyle
。
\documentclass{beamer}
\usepackage{mathtools, amsmath}
\newcommand{\e}{\epsilon}
\newcommand{\w}{\omega}
\begin{document}
\begin{frame}
Result:
\begin{align*}
\pi_1(k, i\w) &=- \left( \frac12 \log\frac{D^2+\w^2}{\w^2} - \tan^{-1}\frac{D}{\w} \right) \\
\pi_2(k,i\w) &= \left( \frac12 \log\frac{D^2+\w^2}{\w^2} + \tan^{-1}\frac{D}{\w} \right) \\
\Pi_1(k, i\w) &= \begin{dcases}
-\frac{\e_{q,R}^2}{\e_{q,R}^2 + \w^2}, & q \sim 0 \\
\begin{aligned}[b]
\textstyle
\frac12 \Bigl[
&\textstyle - \frac14 \log((\e_{q'R}-2D)^2 + \w^2) \\
&\textstyle - \frac14 \log((\e_{q'R}+2D)^2 + \w^2) \\
&\textstyle + \frac12 \log(\e_{q'R}^2 +\w^2) \\
&\textstyle - \frac12 i \tan^{-1} \frac{\e_{q'R}-2D}{\w} \\
&\textstyle - \frac12 i \tan^{-1} \frac{\e_{q'R}+2D}{\w}
\Bigr],
\end{aligned}
& q \sim 2k_F
\end{dcases}.
\end{align*}
\end{frame}
\end{document}
我留下了尾随的点,但是,正如你所看到的,它悬在空中。
答案2
为了好玩,使用包rcases
中定义mathtools
:
\documentclass{beamer}
\usepackage{mathtools}
\newcommand*{\w}{\omega}
\newcommand*{\e}{\epsilon}
\begin{document}
\begin{frame}
Result:
\begin{align*}
\pi_1(k, i\w) & = -\left(\frac{1}{2} \log\frac{D^2+\w^2}{\w^2} - \tan^{-1}\frac{D}{\w} \right) \\
\pi_2(k, i\w) & = \left(\frac{1}{2} \log\frac{D^2+\w^2}{\w^2} + \tan^{-1}\frac{D}{\w} \right) \\
\Pi_1(k, i\w) &= \\
\MoveEqLeft[2.4]{\begin{dcases}
-\frac{\e_{q,R}^2}{\e_{q,R}^2 + \w^2}\raisebox{2.4pt}{ ,} & q \sim 0 \\
\begin{rcases}
\frac{1}{2}\biggl[
- \frac{1}{4} \log\bigl((\e_{q'R}-2D)^2 + \w^2\bigr) \\
\quad\,
- \frac{1}{4} \log\bigl((\e_{q'R}+2D)^2 + \w^2\bigr)
+ \frac{1}{2} \log\bigl(\e_{q'R}^2 +\w^2\bigr) \\
\quad\,
- \frac{1}{2} i \Bigl( \tan^{-1} \frac{\e_{q'R}-2D}{\w} + \tan^{-1} \frac{\e_{q'R}+2D}{\w} \Bigr) \biggr]
\end{rcases}
, & q \sim 2k_F
\end{dcases}}
\end{align*}
\end{frame}
\end{document}
答案3
我认为你不需要 \scriptstyle
,因为它不太易读。我建议将dcases
环境拆分为 4 行,并将其嵌套在一个fleqn
环境中,从nccmath
(要加载)前我使用 mathtools 中的中等大小的分数作为分数系数:
\documentclass{beamer}
\usepackage{nccmath, mathtools}
\newcommand*{\w}{\omega}
\newcommand*{\e}{\epsilon}
\begin{document}
\begin{frame}
\vspace{-0.5cm}
Result:
\begin{fleqn}
\begin{align*}
\pi_1(k, i\w) &=- \left( \mfrac12 \log\frac{D^2+\w^2}{\w^2} - \tan^{-1}\frac{D}{\w} \right) \\
\pi_2(k,i\w) &= \left( \mfrac12 \log\frac{D^2+\w^2}{\w^2} + \tan^{-1}\frac{D}{\w} \right) \\
\Pi_1(k, i\w) &= \\
\MoveEqLeft[3]{\begin{dcases}
-\frac{\e_{q,R}^2}{\e_{q,R}^2 + \w^2}, & q \sim 0 \\
\begin{aligned}
\mfrac12\biggl[ & -\mfrac14 \log((\e_{q'R}-2D)^2 + \w^2) \\
& - \mfrac14 \log((\e_{q'R}+2D)^2 + \w^2)+ \mfrac12 \log(\e_{q'R}^2 +\w^2) \\
& -\mfrac12 i \left( \tan^{-1} \frac{\e_{q'R}-2D}{\w} + \tan^{-1} \frac{\e_{q'R}+2D}{\w} \right) \biggr]
\end{aligned}
, & q \sim 2k_F
\end{dcases}.}
\end{align*}
\end{fleqn}
\end{frame}
\end{document}