我正在撰写一篇稿件,最终将提交给美国化学学会 (ACS) 期刊发表。为此,我使用了achemso
文檔類別。
提交给 ACS 的稿件通常由两部分组成:一篇主论文和一份支持信息 (SI) 文件。通常,主论文和 SI 会放在单独的 .tex 文件中,并输出到单独的 .pdf 文件中。但是,我希望草稿主要论文和国际单位制在同一个文件中。
这似乎是一个奇怪的要求——两个独立的文件有什么问题?——但是,对于手稿起草/准备过程只有一个文件对我和我的主管来说是有帮助的。
所以,我的问题是:
是否可以将方程式、图形和表格的数字计数器重置为 1在我的 .tex 文件的最后一部分?
此外,是否可以在方程式、图形和表格的数字计数器前面加上字母“S”在我的 .tex 文件的最后一部分?
换句话说,我希望支持信息(即文件的最后一部分)中的方程式编号为(S1)、(S2)、(S3)等。同样,我希望支持信息中的图表编号为图 S1、图 S2、图 S3 等。表格也是如此:表 S1、表 S2 等。
这是我的 MWE,它利用了achemso
文档类,以及其输出的精简版本:
\documentclass[journal=jacsat,manuscript=article]{achemso}
\usepackage{amsmath,siunitx,booktabs,graphicx}
\usepackage[capitalize]{cleveref}
\sisetup{%
detect-family, detect-shape, detect-weight, detect-mode,
product-units = power,
list-final-separator = {, and },
retain-explicit-plus,
input-comparators = {<=>\approx\ge\geq\gg\le\leq\ll\sim\lesssim\gtrsim}
}
\author{First A. Author}
\affiliation[University A]{Department, University A, Address A}
\author{Second B. Author}
\affiliation[University B]{Department, University B, Address B}
\author{Third C. Author}\email{[email protected]}
\affiliation[University C]{Department, University C, Address C}
\title{Article Title}
\SectionNumbersOn
\begin{document}
\begin{abstract}
Abstract goes here.
\end{abstract}
\section{Introduction}
\section{Methods}
\section{Results and Discussion}
% Equations in the main paper
\begin{equation}\label{eq:result1}
\begin{aligned}
A &= A_1 + A_2 + A_3 \\
A_{\alpha} &= A_{\alpha 1} + A_{\alpha 2} + A_{\alpha 3}
\end{aligned}
\end{equation}
\begin{subequations}\label{eq:result2}
\begin{align}
B &= B_1 + B_2 + B_3\label{eq:result2:a} \\
B_{\beta} &= B_{\beta 1} + B_{\beta 2} + B_{\beta 3}\label{eq:result2:b}
\end{align}
\end{subequations}
% Figure in the main paper
\begin{figure}[!h]
\centering
\includegraphics[width=0.25\textwidth]{example-image}%
\caption{A figure in the main paper.}\label{fig:result1}
\end{figure}
% Table in the main paper
\begin{table}
\centering
\begin{tabular}{lS[table-format=1.2,table-number-alignment=left]}
\toprule
& {Quantity} \\
\midrule
Trial A & 1.11 \\
Trial B & 2.22 \\
\bottomrule
\end{tabular}
\caption{A table in the main paper.}
\label{tbl:result1}
\end{table}
\begin{itemize}
\item REFER TO EQUATIONS: Refer to \cref{eq:result1}. Refer to \cref{eq:result2}.
Let's look more closely and refer to subequations: \cref{eq:result2:a,eq:result2:b}.
\item REFER TO FIGURES: Refer to \cref{fig:result1}.
\item REFER TO TABLES: Refer to \cref{tbl:result1}.
\end{itemize}
\section{Conclusion}
\begin{suppinfo}
Advertisement for, and description of, Supporting Information goes here.
\end{suppinfo}
\begin{acknowledgement}
The authors thank funding sources.
\end{acknowledgement}
\begin{tocentry}
\includegraphics[width=\textwidth]{example-image}
Graphical TOC goes here.
\end{tocentry}
\clearpage
\section*{Supporting Information}
% Equations in the Supporting Information
% Figure in the Supporting Information
\begin{figure}[!h]
\centering
\includegraphics[width=0.25\textwidth]{example-image}%
\caption{A figure in the Supporting Information.}\label{fig:si:result1}
\end{figure}
% Table in the Supporting Information
\begin{table}
\centering
\begin{tabular}{lS[table-format=1.2,table-number-alignment=left]}
\toprule
& {Quantity} \\
\midrule
Trial A & 1.11 \\
Trial B & 2.22 \\
\bottomrule
\end{tabular}
\caption{A table in the Supporting Information.}\label{tbl:si:result1}
\end{table}
\end{document}
答案1
更改计数器表示的格式并将其重置为 0。
\clearpage
\renewcommand{\theequation}{S\arabic{equation}}
\renewcommand{\thetable}{S\arabic{table}}
\renewcommand{\thefigure}{S\arabic{figure}}
\setcounter{equation}{0}
\setcounter{table}{0}
\setcounter{figure}{0}
\section*{Supporting Information}
这是一个完整的示例。我改变了[!h]
它,[!htp]
不仅仅是为了避免警告。
\documentclass[journal=jacsat,manuscript=article]{achemso}
\usepackage{amsmath,siunitx,booktabs,graphicx}
\usepackage[capitalize]{cleveref}
\sisetup{%
detect-family, detect-shape, detect-weight, detect-mode,
product-units = power,
list-final-separator = {, and },
retain-explicit-plus,
input-comparators = {<=>\approx\ge\geq\gg\le\leq\ll\sim\lesssim\gtrsim}
}
\author{First A. Author}
\affiliation[University A]{Department, University A, Address A}
\author{Second B. Author}
\affiliation[University B]{Department, University B, Address B}
\author{Third C. Author}\email{[email protected]}
\affiliation[University C]{Department, University C, Address C}
\title{Article Title}
\SectionNumbersOn
\begin{document}
\begin{abstract}
Abstract goes here.
\end{abstract}
\section{Introduction}
\section{Methods}
\section{Results and Discussion}
% Equations in the main paper
\begin{equation}\label{eq:result1}
\begin{aligned}
A &= A_1 + A_2 + A_3 \\
A_{\alpha} &= A_{\alpha 1} + A_{\alpha 2} + A_{\alpha 3}
\end{aligned}
\end{equation}
\begin{subequations}\label{eq:result2}
\begin{align}
B &= B_1 + B_2 + B_3\label{eq:result2:a} \\
B_{\beta} &= B_{\beta 1} + B_{\beta 2} + B_{\beta 3}\label{eq:result2:b}
\end{align}
\end{subequations}
% Figure in the main paper
\begin{figure}[!htp]
\centering
\includegraphics[width=0.25\textwidth]{example-image}%
\caption{A figure in the main paper.}\label{fig:result1}
\end{figure}
% Table in the main paper
\begin{table}[!htp]
\centering
\begin{tabular}{lS[table-format=1.2,table-number-alignment=left]}
\toprule
& {Quantity} \\
\midrule
Trial A & 1.11 \\
Trial B & 2.22 \\
\bottomrule
\end{tabular}
\caption{A table in the main paper.}
\label{tbl:result1}
\end{table}
\begin{itemize}
\item REFER TO EQUATIONS: Refer to \cref{eq:result1}. Refer to \cref{eq:result2}.
Let's look more closely and refer to subequations: \cref{eq:result2:a,eq:result2:b}.
\item REFER TO FIGURES: Refer to \cref{fig:result1}.
\item REFER TO TABLES: Refer to \cref{tbl:result1}.
\end{itemize}
\section{Conclusion}
\begin{suppinfo}
Advertisement for, and description of, Supporting Information goes here.
\end{suppinfo}
\begin{acknowledgement}
The authors thank funding sources.
\end{acknowledgement}
\begin{tocentry}
\includegraphics[width=\textwidth]{example-image}
Graphical TOC goes here.
\end{tocentry}
\clearpage
\renewcommand{\theequation}{S\arabic{equation}}
\renewcommand{\thetable}{S\arabic{table}}
\renewcommand{\thefigure}{S\arabic{figure}}
\setcounter{equation}{0}
\setcounter{table}{0}
\setcounter{figure}{0}
\section*{Supporting Information}
% Equations in the Supporting Information
\begin{equation}
x=y
\end{equation}
% Figure in the Supporting Information
\begin{figure}[!htp]
\centering
\includegraphics[width=0.25\textwidth]{example-image}%
\caption{A figure in the Supporting Information.}\label{fig:si:result1}
\end{figure}
% Table in the Supporting Information
\begin{table}
\centering
\begin{tabular}{lS[table-format=1.2,table-number-alignment=left]}
\toprule
& {Quantity} \\
\midrule
Trial A & 1.11 \\
Trial B & 2.22 \\
\bottomrule
\end{tabular}
\caption{A table in the Supporting Information.}\label{tbl:si:result1}
\end{table}
\end{document}