我有一份主稿和一份补充材料 tex 文件。这些文件基于 AGU 期刊的模板,因此不建议添加除提供的软件包之外的任何其他软件包。我需要在主文件中的补充资料中交叉引用该图。我知道解决方案可以是 xr 软件包,但正如所说,我无法使用它。
是否有一种解决方法,例如在 MAIN 中列出所有 SI 图形及其标签,但不显示它们?
\documentclass[draft]{agujournal2018}
\begin{document}
I would like to cite \ref{fig:si01}, which is displayed in SI.
....
therefore I would like to include here below a list of figures without displaying them.
In addition they should be renamed
% first rename figures adding S, and then reset figure counter to zero
\def\appendixID{{S}} % add S to numbering
\renewcommand{\thefigure}{\appendixID\arabic{figure}}
\setcounter{figure}{0}
% second, make a list of not-shown figures
% this does the job but is note resetting the counter:
\begin{figure}[htbp]
\label{fig:si01}
\end{figure}
% this reset the counter and add the "S" but it's showing the figure caption, while I want nothing to be displayed:
\begin{figure}[htbp]
\caption{}\label{fig:si01}
\end{figure}
\end{document}
感谢您的帮助!