![在 latex beamer 中对齐线条](https://linux22.com/image/357473/%E5%9C%A8%20latex%20beamer%20%E4%B8%AD%E5%AF%B9%E9%BD%90%E7%BA%BF%E6%9D%A1.png)
如何在 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
序言之外的东西 - 你使用了一个不存在的宏
\Justifying
(ragged2e
定义\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}