引文,表格和方程式超出了Beamer中的页面宽度

问题描述

我是第一次使用Latex,并且正在使用“ beamer”准备一张幻灯片。发生的事情是我的一些引用,表格和长方程超出了文本的宽度,尽管当文档类为“文章”时这并不是问题。我的表并不长,因为其中一个只有3行和6列。

乳胶代码

    \documentclass[9pt]{beamer}
\mode<presentation> {
\usefonttheme{serif}
\usetheme{Madrid}
\definecolor{BlueGreen}{cmyk}{0.85,0.33,0}
\colorlet{beamer@blendedblue}{BlueGreen!120}}

\usepackage{booktabs} 

\usepackage{caption}


\hypersetup{pdfnewwindow}
\setbeamertemplate{caption}[numbered]
\setbeamerfont{frametitle}{size=\footnotesize}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{postit}{bg=violet!110}
\usepackage{ragged2e}   %new code

\addtobeamertemplate{block begin}{}{\justifying} 



\usepackage{textpos}


\begin{document}

\begin{frame} \frametitle{\textbf{{\Large Objective}}}
    \begin{itemize}
        \justifying
            \item This package gives you easy access to the Lorem Ipsum dummy text; an option is available to separate the paragraphs of the dummy text. This text \cite{kumar2015method}.
        
        \item The long equation is: 
        \begin{equation} 
        A(\theta,\alpha) = \dfrac{ A*{-(\alpha*A)}\beta*{(\delta-1)} \left(A* \hspace{1mm}\hspace{1mm}C^{-A Z_{H}} \hspace{1mm}C^{-C^{-A *Z_{H}}} \prod_{i=1}^{m-1} \left( \dfrac{ A \hspace{1mm}C^{-A* Z_{u(i)}} C^{-C^{-A* Z_{u(i)}}}}{1- \frac{1}{C-1} (C^{1-C^{-A  Z_{u(i)}}}-1)}\right) \right) }{ \int_{0}^{\infty} C^{-(\alpha *A)}(A^{(\beta-1)} \left( A* \hspace{1mm}\hspace{1mm}C^{-A Z_{H}} \hspace{1mm}C^{-C^{-A Z_{H}}} \prod_{i=1}^{B-1} \left(\dfrac{ A \hspace{1mm}C^{-A Z_{u(i)}} C^{-C^{-A* Z_{u(i)}}}}{1- \frac{1}{C-1} (C^{1-C^{-A* Z_{u(i)}}}-1)}\right) \right) A}  .
        \end{equation}                          
    \end{itemize}
\end{frame}

\bibliography{ref}
\bibliographystyle{plainnat}

\end{document} 

.bib文件内容为:

@article{kumar2015method,title={This is the title of the article},author={Kumar,Dinesh and others},journal={This is Journal},volume={2},number={3},pages={150-180},year={2015}
}

解决方法

  • 如果您使用Source围兜风格,则还应该加载natbib软件包。这将自动允许换行符

enter image description here

  • 您不需要plainnat软件包,beamer提供了它自己的自定义字幕机制

  • 您必须将caption放在框架内

  • 对于非常大的方程式,我建议将分数替换为bibliography,这样您就可以将其分成多行。另外,您可能希望使用较小的字体,并删除所有手动空格。


(...) \times (...)^{-1}

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...