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}

autoscript나는 구두점 뒤에 인용 위 첨자를 이동시키는 RevTex 옵션을 사용하는 것을 좋아합니다 . 하지만 위의 첫 번째 줄을 다음과 같이 변경하면

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

오류 메시지가 나타납니다.

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

가 있는 줄을 가리키면 \caption내 문서가 컴파일되지 않습니다. 이 문제의 원인이 무엇인지, citeautoscript캡션 내부에 인용이 있을 때 어떻게 이 문제를 해결하고 기능을 사용할 수 있는지 아십니까 ?

답변1

이상한 버그처럼 보이지만 캡션 내용을 별도의 줄에 넣는 것은 어떻게든 작동합니다. 그래도 이유는 모르겠습니다. MWE:

\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}

여기에 이미지 설명을 입력하세요

관련 정보