我正在写一个投影仪演示文稿。我的问题是\section[Outline]{title}
的语法问题。 \section
与我的所有章节标题一起正常工作,除了以下示例:
\section[$\mathbb{Z}[G]$-module constructions]{$\mathbb{Z}[G]$-modules and Geometric Constructions}
我需要在[
的大纲部分围绕G(即[G])周围的\[
或\section
符号,然而,只要有类似括号的东西在那里,Tex就会抛出大量的错误。
欢迎所有的想法,并提前感谢。
迈克尔安德森在评论中指出了一种更清洁的方式。在序言中定义命令为
\newcommand[1]{\bracket}{[#1]}
并使用语法$\bracket{G}$
在G
周围放置括号。
问题是因为LaTeX将]
中的[G]
解释为命令的[Outline]
部分的结束括号。这是一个解决方案。在您的序言中,添加以下内容:
\newcommand{\rbracket}{]}
现在将你的section
定义为
\section[$\mathbb{Z}[G\rbracket $-module constructions]{$\mathbb{Z}[G]$-modules and Geometric Constructions}
这就是轮廓应该是这样的
Michael Anderson给出了一个很好的解决方案,但是当我尝试它时,我遇到了错误。然后我写了这个:
\newcommand{\bracket}[1]{[#1]}
这有助于括号中的括号:
\bracket{content}
得到[内容]。
通过将短标题包装在{...}
的附加层中,您可以“隐藏”来自乳胶的有问题的内容:
\documentclass{beamer}
\begin{document}
\begin{frame}
\tableofcontents
\end{frame}
\section[{$\mathbb{Z}[G]$-module constructions}]{$\mathbb{Z}[G]$-modules and Geometric Constructions}
\begin{frame}
content...
\end{frame}
\end{document}