我想使用 achemso 包在同一页中同时显示文本和图形。可以吗?

我想使用 achemso 包在同一页中同时显示文本和图形。可以吗?
\documentclass[journal=jpcld,manuscript=letter]{achemso}
\usepackage[english]{babel}
\renewcommand{\thefigure}{S\arabic{figure}}
\title{Supporting Information}
\newpage
\begin{document}



%% Snapshots of mixture simulation at various times 

\center\Large \textbf{Simulation A5 : Mixture of $\alpha$ \& $\beta$ aspartyl in 1:2 ratio}

\begin{figure}[h!]

\begin{center}

\fbox{\includegraphics[width=0.7\linewidth]{./supporting_info/mixture/snapshot_0ns}}\\

\vspace{0.5cm}

\fbox{\includegraphics[width=0.7\linewidth]{./supporting_info/mixture/snapshot_250ns}}\\

\vspace{0.5cm}

\fbox{\includegraphics[width=0.7\linewidth]{./supporting_info/mixture/snapshot_500ns}}\\

\end{center}

\caption{Snapshots showing the protein and the ligands (CPK representation) around it at various times of the simulation}

\end{figure}

\newpage

\center\Large \textbf{Simulation A3, Ligand : $\alpha$-aspartyl}

\begin{figure}[h!]

\begin{center}

\fbox{\includegraphics[width=0.7\linewidth]
{./supporting_info/alpha_aspartyl/snapshot_alpha_0ns}}\\
\vspace{0.5cm}

\fbox{\includegraphics[width=0.7\linewidth]{./supporting_info/alpha_aspartyl/snapshot_alpha_250ns}}\\
\vspace{0.5cm}

\fbox{\includegraphics[width=0.7\linewidth]{./supporting_info/alpha_aspartyl/snapshot_alpha_520ns}}\\
\caption{Snapshots from the simulation A3 at 0, 250 and 520 ns}

\end{center}

\end{figure}

\end{document}

通过运行该脚本,我得到了两页独立的文本,然后是两页图表。

有没有什么办法可以让下一个数字紧随其后?

答案1

将文本放置在figure环境内。

\documentclass[journal=jpcld,manuscript=letter]{achemso}
\usepackage[english]{babel}
\renewcommand{\thefigure}{S\arabic{figure}}

\title{Title}
\author{Author}
\affiliation{Somewhere}
\email{A@S}

\begin{document}

%% Snapshots of mixture simulation at various times 

\begin{figure}[htp!]
\centering\Large

\textbf{Simulation A5: Mixture of $\alpha$ \& $\beta$ aspartyl in $1{:}2$ ratio}

\bigskip

\fbox{\includegraphics[width=0.4\textwidth]{example-image}}

\bigskip

\fbox{\includegraphics[width=0.4\textwidth]{example-image}}

\bigskip

\fbox{\includegraphics[width=0.4\textwidth]{example-image}}

\caption{Snapshots showing the protein and the ligands (CPK representation) 
around it at various times of the simulation}

\end{figure}

\end{document}

在此处输入图片描述

相关内容