![列表环境中 \small 的奇怪行为](https://linux22.com/image/282482/%E5%88%97%E8%A1%A8%E7%8E%AF%E5%A2%83%E4%B8%AD%20%5Csmall%20%E7%9A%84%E5%A5%87%E6%80%AA%E8%A1%8C%E4%B8%BA.png)
我在 Beamer 的列表环境中使用\small
,遇到一个问题,即关闭后的文本\small
仍然很小。以下是该问题的一个最小工作示例:
\documentclass{beamer}
\usetheme{Montpellier}
\begin{document}
\begin{frame}
\frametitle{Weird behaviour of $\setminus$small in the listing env.}
\begin{itemize}
\item This is normal text and \small{this is small text}, and $\setminus$\texttt{small} is closed but this is still small
\item This new item is still small although no \texttt{$\setminus$small} used
\end{itemize}
\end{frame}
\end{document}
输出如下:
如果您能告诉我如何解决这个问题,我将不胜感激。
答案1
使用不当:不是\small{this is small text}
,但是{\small this is small text}
。