在投影機的一幀中插入多個方程

在投影機的一幀中插入多個方程

我希望你一切都好。我正在用乳膠做一個投影機演示。在一幀中我包含了幾個方程,但它們沒有出現在幻燈片中。這是我的 MWE。

    \documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}}
\usepackage{mathrsfs}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\begin{frame}{Methodology}
\begin{block}{Levinsohn dhe Petrin (2003)}


$$Y_{it}=A_{it}K_{it}L_{it}M_{it}$$\pause 
$$y_{it}= \beta_{0} + \beta_{l} l_{it} + \beta_{k} k_{it} +\omega_{it} + \epsilon_{it}$$\pause 
$$m_{it}=f(k_{it};\omega_{it})$$ \pause 
$$\omega_{it}=f(k_{it};m_{it})$$ \pause
$$ \hat{A}_{it}= \beta_{0}+ \hat{\omega}_{it}$$\pause
$$ \hat{A}_{it}= y_{it} - \beta{k}k_{it}- \hat{\beta}_{l}l_{it}$$\pause 
$$TFP=exp(\hat{A}_{it})$$


\end{block}

\end{frame}
\end{document}

您能建議任何可能的解決方案嗎?

謝謝

答案1

轉換為gather*開箱即用,且項目之間沒有大間距$$...$$$$...$$不應該在 LaTeX 中使用)

\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}}
\usepackage{mathrsfs}
\usepackage{tabularx}
\usepackage{booktabs}

% just if you are not using the nav bar
\beamertemplatenavigationsymbolsempty


\begin{document}
\begin{frame}{Methodology}
\begin{block}{Levinsohn dhe Petrin (2003)}
\begin{gather*}
  \uncover<+->{Y_{it}=A_{it}K_{it}L_{it}M_{it}  \\}
  \uncover<+->{ y_{it}= \beta_{0} + \beta_{l} l_{it} + \beta_{k} k_{it}
    +\omega_{it} + \epsilon_{it} \\}
  \uncover<+->{ m_{it}=f(k_{it};\omega_{it})\\}
  \uncover<+->{
    \omega_{it}=f(k_{it};m_{it})\\}
  \uncover<+->{   \hat{A}_{it}= \beta_{0}+ \hat{\omega}_{it} \\}
  \uncover<+->{
    \hat{A}_{it}= y_{it} - \beta{k}k_{it}- \hat{\beta}_{l}l_{it}
    \\}
  \uncover<+->{
    TFP=exp(\hat{A}_{it})
  }
\end{gather*}


\end{block}


\end{frame}
\end{document}

是的,必須添加\uncover很煩人,但正如投影機手冊所說,amsmath在幕後做了一些非常棘手的事情,所以這是唯一有效的方法。

順便說一句,為了給您的程式碼良好的格式,請標記程式碼並按{}介面,或者如果您在桌面上,請按 Ctrl-k(不確定 Mac 上的快捷方式是否不同)

相關內容