描述标签中的换行符

描述标签中的换行符

我有一个描述标签(或标题)有点长,我想将其分成两行。我设法在下面做到了,但描述标题的第二行与第一行的第二行不一致\item。有办法解决这个问题吗?MWE 如下:

\documentclass{beamer}
\usetheme{Madrid}
\mode<handout>{ \usecolortheme{seahorse} \usecolortheme{rose} }
\useinnertheme{circles}
\usefonttheme[mathonly]{serif}

\begin{document}
\begin{frame}\frametitle{Course Logistics (cont'd)}
\begin{description}

 \item [{\parbox[t]{1.8cm}{Late\\assignments}} ]
   \begin{itemize}
      \item \small{Late assignments will be accepted for 48 hours past the due date, but...}
      \item For each 24 hour past the due date, a 5\% penalty will be applied off the top.
      \item Solutions will be posted after 48 hours at which point no further submissions are accepted
   \end{itemize}
\end{description}
\note{ }
\end{frame}
\end{document}

在此处输入图片描述

答案1

隐藏 parbox 的深度:

\documentclass{beamer}
\usetheme{Madrid}
\mode<handout>{ \usecolortheme{seahorse} \usecolortheme{rose} }
\useinnertheme{circles}
\usefonttheme[mathonly]{serif}

\begin{document}
\begin{frame}\frametitle{Course Logistics (cont'd)}
\begin{description}

 \item [\smash{\parbox[t]{1.8cm}{Late\\assignments}} ]
   \begin{itemize}
      \item \small{Late assignments will be accepted for 48 hours past the due date, but...}
      \item For each 24 hour past the due date, a 5\% penalty will be applied off the top.
      \item Solutions will be posted after 48 hours at which point no further submissions are accepted
   \end{itemize}
\end{description}
\note{ }
\end{frame}
\end{document}

在此处输入图片描述

相关内容