调整 IEEE 附录编号并确保准确的交叉引用

调整 IEEE 附录编号并确保准确的交叉引用

我目前正在处理以下示例,但交叉引用显示不正确。它显示和,而不是预期的Appendix A.1和。有人能建议一个解决方案来纠正这个问题吗?Appendix A.2Appendix AAppendix 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}

电气电子工程师学会

相关内容