RevTex 的「citeautoscript」選項不適用於圖形標題內的引用

RevTex 的「citeautoscript」選項不適用於圖形標題內的引用

這段程式碼編譯得很好:

\documentclass[prb]{revtex4-1}
\begin{document}

\begin{figure}
\caption{Caption \cite{app}}
\end{figure}

\bibliography{Biblio}
\bibliographystyle{apsrev4-1}

\end{document}

我喜歡使用 RevTex 的autoscript選項,該選項會在任何標點符號之後移動引文上標。但是如果我將上面的第一行更改為

\documentclass[prb,citeautoscript]{revtex4-1}

我收到錯誤訊息

Missing \endcsname inserted
<to be read again>
\color@endgroup

指向帶有 , 的行\caption,並且我的文檔無法編譯。知道是什麼導致了這個問題,或者citeautoscript當我在標題中引用時如何繞過它並使用該功能?

答案1

看起來像是一個奇怪的錯誤,但將標題內容放在單獨的行中以某種方式起作用。但不知道為什麼。微量元素:

\documentclass[prb,citeautoscript]{revtex4-1}
\begin{document}

\begin{figure}
\caption{
Caption \cite{app}
}
\end{figure}



\begin{thebibliography}{10}
\bibitem{app} Lorem ipsum
\end{thebibliography}

\end{document}

在此輸入影像描述

相關內容