
본문에서 부록의 그림을 참조하고 있는데, 부록의 그림을 참조하는 경우에는 부록 문자와 그림 번호를 표시하고 싶습니다.
예를 들어, 지금 부록 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
이것은 두 번째 와 \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}