1

I have the similar issue with Reference to a figure uses the section's number, but with the ccaption package to use the bilingual caption, I put the label after bicaption, but I can not handle the problem? It should be Figure 1 or 图1 instead of section 2.1.Does anyone have suggestion, thanks.

MWE:

\documentclass{article}
\usepackage{graphicx}
\usepackage{ctex}
\usepackage{ccaption}
\begin{document}
  \section{sssection}
  \section{oneone   }
    \subsection{kkkkk}
     \begin{figure}[h]
        \centering
        \includegraphics[scale=0.2]{pic/PEF_prin} 
          % a local figure should be replaced
        \bicaption{图}{中文}{Fig}{English title}
        \label{fig:key11}
    \end{figure}
    see Figure\ref{fig:key11}

  \end{document}
Troy
  • 13,741
Minyi Han
  • 123

1 Answers1

3

The label should be passed as an optional argument to \bicaption.

\documentclass{article}
\usepackage{graphicx}
\usepackage{ctex}
\usepackage{ccaption}
\begin{document}
    \section{sssection}
    \section{oneone   }
    \subsection{kkkkk}
    \begin{figure}
        \centering
        \includegraphics{example-image} 
        \bicaption[fig:key11]{图}{中文}{Fig}{English title}
    \end{figure}
    see Figure~\ref{fig:key11}
\end{document}

fig

Troy
  • 13,741