halloweenmath 包不起作用

halloweenmath 包不起作用

我正在尝试使用halloweenmath包中的符号来制作幻灯片。如果我只定义一个符号一两次,它就可以正常工作,但是当使用太多符号时,编译会失败(在 MikTeX 和 Overleaf 上都是这样)。请参阅下面的 MWE。有人知道问题可能是什么吗?

非工作 MWE:

\documentclass{beamer}
\usepackage{halloweenmath}
\title{Paper Title}
\author{\normalsize{Author 1$^{\pumpkin ,\mathbat}$ \\ \scriptsize (joint with Author 2$^{\mathghost, c, \skull}$, Author 3$^{\mathwitch}$, Author 4,$^{\mathghost}$ Author 5$^{\mathghost, \mathbat}$}\\
\medskip
\tiny{$^{\pumpkin}$Instituation A\\
$^{\mathghost}$Instituation B\\
$^{\mathbat}$ Instituation C\\  
$^{\skull}$Instituation D\\
$^{\mathwitch}$Instituation E\\
}}
\date{\normalsize{Some Event\\
October 28, 2021}}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}

工作MWE:

\documentclass{beamer}
\usepackage{halloweenmath}
\title{Paper Title}
\author{\normalsize{Author 1$^{\pumpkin ,b}$ \\ \scriptsize (joint with Author 2$^{b, c, d}$, Author 3$^{e}$, Author 4,$^{b}$ Author 5$^{b, c}$}\\
\medskip
\tiny{$^{\pumpkin}$Instituation A\\
$^{b}$Instituation B\\
$^{c}$ Instituation C\\ 
$^{d}$Instituation D\\
$^{e}$Instituation E\\
}}
\date{\normalsize{Some Event\\
October 28, 2021}}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}

答案1

beamer尝试扩展作者以设置 pdfauthor 键。由于您不想要(不能拥有)万圣节数学,因此最好的方法是抑制它并手动设置 pdfauthor:

\documentclass[usepdftitle=false]{beamer} %don't try to guess the pdfauthor
\usepackage{halloweenmath}
\title{Paper Title}

\author{\normalsize{Author 1$^{\pumpkin ,\mathbat}$ \\ \scriptsize (joint with Author 2$^{\mathghost, c, \skull}$, Author 3$^{\mathwitch}$, Author 4,$^{\mathghost}$ Author 5$^{\mathghost, \mathbat}$}\\
\medskip
\tiny{$^{\pumpkin}$Instituation A\\
$^{\mathghost}$Instituation B\\
$^{\mathbat}$ Instituation C\\
$^{\skull}$Instituation D\\
$^{\mathwitch}$Instituation E\\
}}

\hypersetup{pdfauthor=something normal}

\date{\normalsize{Some Event\\
October 28, 2021}}
\begin{document}

\begin{frame}
\titlepage
\end{frame}
\end{document}

附注:诸如\normalsize或之类的命令\tiny不接受参数,它们是开关。

在此处输入图片描述

相关内容