缺少插入的 \endcsname。\newlabel{comparison 75\%}{{1}{1}},我在编译表格时收到此错误

缺少插入的 \endcsname。\newlabel{comparison 75\%}{{1}{1}},我在编译表格时收到此错误
\documentclass[a4paper,11pt]{report}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{booktabs}
\usepackage{cuted}
\usepackage{multicol}
%\usepackage{subfigure}
\usepackage{epstopdf}
\usepackage{epsfig}
\usepackage{subfigure}
\begin{document}
    
    \onecolumn
    \begin{table}
        \centering
        \caption{Eigenvalues of Study System with and without SSSC for 75\% hybrid series compensation}
        \begin{tabular}{c|c|c|c|c}
            \toprule
            \multirow{4}{*}{Mode}&\multicolumn{4}{|c|}{75\% Compensation level}\\
            \cmidrule{2-5}
            &\multicolumn{2}{|c|}{case:1(without SSSC)} &\multicolumn{2}{c}{case:2(with SSSC)} \\
            \cmidrule{2-5}
            &$\sigma\pm j\omega$& $\zeta$ &$\sigma\pm j\omega$& $\zeta$ \\
            \midrule 
            Super-Synchronous   &-9.5903$\pm$629.17i&0.01524 &-12.344$\pm$556.39i&0.02218\\
            Sub-Synchronous     &1.6034$\pm$123.7   &-0.01296&-9.0587$\pm$137.23i&0.06586\\ 
            Shaft        &-0.4911$\pm$6.1496i&0.07962  &-0.48842$\pm$6.1493i&0.07917\\
            Torsional    &-85.88 $\pm$38.471i&0.91261  &-85.883$\pm$37.936i&0.91474\\
            Electromechanical &-11.602$\pm$91.825i&0.12535  &-9.6224$\pm$94.729i&0.10106\\ 
            \midrule
            \multirow{7}{*}{Other}&-2416.6$\pm$1271.4i&0.88511  &-2421.1$\pm$1252.1i&0.88825\\
            &      0$\pm$0i     &  -      &-2670.3            &1     \\ 
            &   0$\pm$0i        &   -     &-110.25            &1      \\
            &      -0.12579     &    1    &-0.15132           &1      \\
            &     -0.0035219    &   1     &-0.0034435         &1      \\
            &                   &         &0$\pm$0i           &-     \\ 
            &                   &         &0$\pm$0i           &-      \\                  
            \bottomrule
            \label{comparison 75\%}
        \end{tabular}
    \end{table}   
    \begin{table}
        \centering
        \caption{Eigenvalues of Study System with and without SSSC for 90\% hybrid compensation}
        \begin{tabular}{c|c|c|c|c}
            \toprule
            \multirow{4}{*}{Mode}&\multicolumn{4}{c}{90\% Compensation level}\\
            \cmidrule{2-5}
            &\multicolumn{2}{|c|}{case:1(without SSSC)} &\multicolumn{2}{c}{case:2(with SSSC)} \\
            \cmidrule{2-5}
            &$\sigma\pm j\omega$& $\zeta$ &$\sigma\pm j\omega$& $\zeta$ \\
            \midrule 
            Super-Syn.   &-10.42$\pm$653.25i  &0.01595 &-13.605$\pm$570.94i &0.02382\\
            Sub-Syn.     &6.3734$\pm$108.15i  &-0.05883&-1.1691$\pm$113.64i &0.01028\\ 
            Shaft        &-0.48923$\pm$6.1509i&0.07928&-0.48455$\pm$6.1504i&0.07854\\
            Torsional    &-86.432$\pm$38.566i &0.91322 &-86.534$\pm$37.766i &0.91652\\
            Electromechanical &-16.399$\pm$82.919  &0.19402 &-19.362$\pm$91.845i &0.20628\\ 
            \midrule
            \multirow{7}{*}{Other}&-2387.2$\pm$1205i   &0.89272 &-2393.8$\pm$1183.5i &0.89642\\
            &    0$\pm$0i        &-       &-2205.5             &1\\ 
            &    0$\pm$0i        &-       &-111.35             &1\\
            &     -0.14669       &1       & -0.18936           &1\\
            &-0.0021773          &1       &-0.0020965          &1\\
            &                    &        &0$\pm$0             &-\\ 
            &                    &        &0$\pm$0             &-\\                  
            \bottomrule
            \label{comparison 90\%}
        \end{tabular}
    \end{table}   
\end{document}

答案1

一个更简单的例子,仍然可以重现错误消息

Missing \endcsname inserted. \%  \newlabel{comparison 75\%}{{1}{1}}

\documentclass{report}
\begin{document}
    \begin{table}
        \caption{Eigenvalues ...}\label{comparison 75\%}
    \end{table}   
\end{document}

\%此错误是由于在标签内使用 而导致的。使用类似\label{comparison75percent}或 的\label{comparison75}命令可以使代码可编译且不会出现错误消息。


除此之外, 的\label位置也不正确。请将其移出tabular环境,但应将其移至 之后\caption

相关内容