![如果在定理选项中使用,natbib citep[]{} 会出现错误](https://linux22.com/image/313986/%E5%A6%82%E6%9E%9C%E5%9C%A8%E5%AE%9A%E7%90%86%E9%80%89%E9%A1%B9%E4%B8%AD%E4%BD%BF%E7%94%A8%EF%BC%8Cnatbib%20citep%5B%5D%7B%7D%20%E4%BC%9A%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF.png)
我正在使用 natbib 和 amsthm。如果我\citep[Thm. 4.5]{key}
在定理环境的选项中使用,我会得到错误:
\NAT@@citetp 的参数有一个额外的}。\begin{thm}[\citep[Thm]
为什么我不能将带有选项的 citep 放入定理环境的选项中?下面是我的代码示例。
感谢您的帮助
\documentclass[a4paper]{scrartcl}
\renewcommand\sf{\sffamily}
\usepackage{scrhack}
\usepackage[numbers]{natbib}
\usepackage{amsmath, amsthm, amssymb, dsfont}
\usepackage{amsfonts}
\usepackage{amsopn}
\usepackage{bbold}
\usepackage{bbm}
\newtheoremstyle{mystyle}% % Name
{}% % Space above
{}% % Space below
{\normalfont}% % Body font
{}% % Indent amount
{\bfseries}% % Theorem head font
{}% % Punctuation after theorem head
{ }% % Space after theorem head, ' ', or \newline
{}% % Theorem head spec (can be left empty, meaning `normal')
\theoremstyle{mystyle}
\newtheorem{Theorem}{Theorem}%
\begin{document}
\begin{Theorem}[\citep[Thm]{cs_Foucart13}]
test
\end{Theorem}
\bibliographystyle{plainnat-d}
\bibliography{literatur}
答案1
\begin{Theorem}[\citep[Thm]{cs_Foucart13}]
意味着选择Theorem
是
\citep[Thm
事情从此就变得不对了。
使用
\begin{Theorem}[{\citep[Thm]{cs_Foucart13}}]
这适用于任何 LaTeX2e 可选参数,而不仅仅是定理。