在 latex beamer 中对齐线条

在 latex beamer 中对齐线条

如何在 latex beamer 演示文稿中对齐线条。使用下面的代码,我制作了一个幻灯片演示文稿,并将其附在下面,但文本的装饰效果不佳。我尝试使用 \Justifying 命令,但它不起作用。

幻灯片的第二段看起来没有很好地修饰文字。

\documentclass[handout,t]{beamer}
\begin{document}
\usepackage{ragged2e}
% -----------------------------------------------------------------------------
\begin{frame}{District wise Cumulative Rainfall as on 23rd June, 2017}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{MONSOON-CUMULATIVE}
    \end{column}
    \begin{column}{.47\textwidth}
        \begin{itemize}
%%          \JustifyingParfillskip
%           \JustifyingParindent
            \item Central and North part of the regions under deficit category of rainfall (yellow and red zones). 
            \item The excess rainfall received in Bharuch, Narmada and Dahod while others region received normal rainfall (Green and blue zones). 
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}
\end{document}
%------------------------------------------------------------------------------

在此处输入图片描述

答案1

您的代码有两个主要问题:

  • 你有一个\usepackage序言之外的东西
  • 你使用了一个不存在的宏\Justifyingragged2e定义\justifying

合理的

\documentclass[handout,demo,t]{beamer}
\usepackage{ragged2e}
\begin{document}
% -----------------------------------------------------------------------------
\begin{frame}{District wise Cumulative Rainfall as on 23rd June, 2017}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{MONSOON-CUMULATIVE}
    \end{column}
    \begin{column}{.47\textwidth}
        \begin{itemize}
            \item\justifying Central and North part of the regions under deficit category of rainfall (yellow and red zones). 
            \item The excess rainfall received in Bharuch, Narmada and Dahod while others region received normal rainfall (Green and blue zones). 
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}
\end{document}

相关内容