\caption@ydblarg 参数错误,有一个额外的 }

\caption@ydblarg 参数错误,有一个额外的 }
\begin{figure}[H]
 \centering
 \includegraphics[width=14cm]{Text/Images/phi_geometrical.jpg}
  \caption{Depiction of Azimuth Angle\begin{math}\;\phi_{geom}\;\end{math} in 2 
    dimensions}
  \label{fig:phi_geometrical}
   \end{figure}

我遇到了错误。有人能帮我解决这个问题吗?

答案1

\begin{math}是脆弱的,应该被\protected 或更好地替换为$

\documentclass{article}

\usepackage{here}
\begin{document}

\begin{figure}[H]
 \centering
% \includegraphics[width=14cm]{Text/Images/phi_geometrical.jpg}
  \caption{Depiction of Azimuth Angle \protect\begin{math}\;\phi_{geom}\;\protect\end{math} in 2 
    dimensions}
  \label{fig:phi_geometrical}
   \end{figure}

    But why not simply

    \begin{figure}[H]
 \centering
% \includegraphics[width=14cm]{Text/Images/phi_geometrical.jpg}
  \caption{Depiction of Azimuth Angle $\;\phi_{geom}\;$ in 2 
    dimensions}
  \label{fig:phi_geometrical}
   \end{figure}

\end{document}

在此处输入图片描述

相关内容