我目前正在处理以下示例,但交叉引用显示不正确。它显示和,而不是预期的Appendix A.1
和。有人能建议一个解决方案来纠正这个问题吗?Appendix A.2
Appendix A
Appendix B
\documentclass[lettersize,journal]{IEEEtran}
\begin{document}
\title{How to Use the IEEEtran \LaTeX \ Templates}
\author{IEEE Publication Technology Department}
\maketitle
\section{Introduction}
Appendix \ref{appendix:proofXX}
Appendix \ref{appendix:proofYY}
\renewcommand{\appendixname}{Appendices}
\appendix
\renewcommand\thesection{\Alph{section}}
\renewcommand\thesubsectiondis{\thesection.\Roman{subsection}}
\renewcommand\thesubsubsectiondis{\thesubsectiondis.\alph{subsubsection}}
\renewcommand\theparagraphdis{\arabic{paragraph}.}
\renewcommand{\theequation}{A\arabic{equation}}
% \renewcommand{\theequation}{\thesection.\arabic{equation}} % Redefine equation numbering
% \numberwithin{equation}{subsection}
% \numberwithin{equation}{section}
\setcounter{equation}{0}
\newtheorem{thma}{Theorem}[subsection]
\newtheorem{lema}{Lemma}[subsection]
\newtheorem{defina}{Definition}[subsection]
\newtheorem{rmrka}{Remark}[subsection]
\newtheorem{assuma}{Assumption}[subsection]
\subsection{Proof of Proposition XX}\label{appendix:proofXX}
\subsection{Proof of Proposition YY}\label{appendix:proofYY}
\end{document}
答案1
\thesubsectiondis
控制计数器的显示方式\subsection
,但\thesubsection
仍控制引用时的显示。因此只需重新定义\thesubsection
即可匹配。
\documentclass[journal]{IEEEtran}
\begin{document}
\title{How to Use the IEEEtran \LaTeX \ Templates}
\author{IEEE Publication Technology Department}
\maketitle
\section{Introduction}
Appendix \ref{appendix:proofXX}
Appendix \ref{appendix:proofYY}
\renewcommand{\appendixname}{Appendices}
\appendix
\renewcommand\thesubsection{\thesection.\Roman{subsection}}
\renewcommand\thesubsectiondis{\thesection.\Roman{subsection}}
\subsection{Proof of Proposition XX}\label{appendix:proofXX}
\subsection{Proof of Proposition YY}\label{appendix:proofYY}
\end{document}