
本文中で付録の図を参照していますが、付録の図を参照している場合は、参照に付録の文字と図番号を表示したいと思います。
たとえば、現在、付録 A の図 1 を参照する場合、.1 としか表示されませんが、本文では A.1 と表示したいです。関連する部分がわからないため、序文をすべて含め、ドキュメントと付録 A の行も含めました。
なお、私はaip
Overleafのテンプレート( )を使用しています。
以下は私の前文と本文からの関連行です。
\documentclass[%
aip,
% jmp,
% bmf,
% sd,
% rsi,
amsmath,amssymb,
%preprint,%
reprint,%
%author-year,%
%author-numerical,%
% Conference Proceedings
]{revtex4-1}
\usepackage{graphicx}% Include figure files
\usepackage{float}
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage[mathscr]{euscript}% use for script letters
\usepackage[english]{babel}
\usepackage{multirow}% use for having parts of table cover multiple lines
%\usepackage{array,booktabs}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[nottoc]{tocbibind}
\renewcommand\bibname{References}
\usepackage{mathptmx}
\usepackage{gensymb}
\usepackage{amsmath}
\usepackage{xfrac}
\usepackage{nicefrac}
\usepackage{appendix}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
citecolor=blue,
urlcolor=black,
hypertexnames=false
}
%\usepackage{nameref}% loads gettitlestring
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@ssect@ltx}{\@xsect}{\protected@edef\@currentlabelname{#8}\@xsect}{}{}% Patch \<section>*
\xpatchcmd{\@sect@ltx}{\@xsect}{\protected@edef\@currentlabelname{#8}\@xsect}{}{}% Patch \<section>
\makeatother
\usepackage[pagewise]{lineno}% Enable numbering of text and display math
\linenumbers\relax % Commence numbering lines
% for response to reviewers
%\usepackage[dvipsnames]{xcolor}
\usepackage{soul}
\begin{document}
\preprint{AIP/123-QED}
...
\subsection{Identification of the Quasi-Steady Period}\label{sec:2C-Quasi-Steady}
since the time-averaged lift-coefficient $\overline{C_L}$ had become roughly constant across all $AR$, and ${Re}_g$ considered in this study (see Figure \mbox{\ref{fig:A1}}b).
...
\clearpage
\input{Writing/SupA}
\end{document}
以下は私の付録 A からの関連行です。
\preprint{AIP/123-QED}
\setcounter{page}{1}
\renewcommand{\appendixname}{Supplementary Material}
\appendix
\section*{Supplementary Material A}\label{Supplementary Material A}
\setcounter{figure}{0}
\renewcommand\thefigure{\thesection.\arabic{figure}}
\begin{figure*}[ht!]
\centering
\includegraphics[]{Figures/SupA/FigA1/FigA1.pdf}
\caption{I have removed the caption in my question.}
\label{fig:A1}
\end{figure*}
答え1
\label
これは、図の 2 番目と3 番目の作成方法を示しています\ref
。MWE をもう少し小さくしました。
\documentclass[%
aip,
% jmp,
% bmf,
% sd,
% rsi,
amsmath,amssymb,
%preprint,%
reprint,%
%author-year,%
%author-numerical,%
% Conference Proceedings
]{revtex4-1}
\usepackage{appendix}
\makeatletter
\newcommand{\locallabel}[1]% #1 = label name
{\bgroup% temporary
\edef\@currentlabel{\arabic{figure}}%
\label{#1}%
\egroup}
\makeatother
\begin{document}
\listoffigures
\hrule
One can use \ref{fig:A1} or \ref{fig:1}.
\preprint{AIP/123-QED}
\setcounter{page}{1}
\renewcommand{\appendixname}{Supplementary Material}
\appendix
\section{Supplementary Material A}\label{Supplementary Material A}
\setcounter{figure}{0}
\renewcommand{\thefigure}{\thesection.\arabic{figure}}% defaul \ref and \listoffigures
\begin{figure*}[ht!]
\caption{I have removed the caption in my question.}
\label{fig:A1}
\locallabel{fig:1}
\end{figure*}
\end{document}