2

我正在写一个投影仪演示文稿。我的问题是\section[Outline]{title}. \section除了以下示例之外,我的所有部分标题都可以正常工作:

\section[$\mathbb{Z}[G]$-module constructions]{$\mathbb{Z}[G]$-modules and Geometric Constructions}

我需要在大纲部分的 G(即 [G])周围有一个[或符号,但是,只要有任何类似括号的东西在那里,Tex 就会抛出大量错误。 \[\section

欢迎所有想法,并提前致谢。

4

3 回答 3

3

迈克尔安德森在评论中指出了一种更清洁的方式来做同样的事情。将序言中的命令定义为

\newcommand[1]{\bracket}{[#1]}

并使用语法在 .$\bracket{G}$周围放置括号G


问题是因为 LaTeX 将]in解释为命令部分的[G]右括号。[Outline]这是一个解决方法。在序言中,添加以下内容:

\newcommand{\rbracket}{]}

现在定义你section

\section[$\mathbb{Z}[G\rbracket $-module constructions]{$\mathbb{Z}[G]$-modules and Geometric Constructions}

这就是大纲的样子

在此处输入图像描述

于 2011-06-25T03:08:36.193 回答
2

通过将短标题包装在附加层中,{...}您可以从乳胶中“隐藏”有问题的内容:

\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}
于 2019-02-27T15:54:24.767 回答
0

迈克尔安德森给出了一个很好的解决方案,但是当我尝试它时,我得到了错误。然后我写了这个:

\newcommand{\bracket}[1]{[#1]}

并且可以将括号括在括号中:

\bracket{content}

获取[内容]。

于 2015-03-01T22:35:54.173 回答