附录图片放置

附录图片放置

抱歉发了这么长的消息,我对 LaTeX 还很陌生,几天前才开始整理我的论文,论文将于周五提交。我设法整理了大部分内容,但我在附录的浮点数方面遇到了麻烦。我的附录只是一些图表。

最初,我尝试输出图表的标题,然后将两个图表输出到一页。这段代码运行良好,直到大约第三页,当一个图表单独放置时,它会再次返回到每页两个图表,然后随机放置一个浮点数到每页。

这是我的代码开始的一个示例:

\textbf{Abutment Fragility Curves}

\textit{As-Built Pristine Integral Bridge}

\begin{figure}[!h]
  \begin{center}
  \leavevmode
  \includegraphics[width=5in, height=3in]{Model1Active0yrs.png}
  \caption[]{As-Built Pristine Active Abutment Fragility Curve}
  \label{figModel1Active0yrs}
  \end{center}
\end{figure}

\begin{figure}[!h]
  \begin{center}
  \leavevmode
  \includegraphics[width=5in, height=3in]{Model1Passive0yrs.png}
  \caption[]{As-Built Pristine Passive Abutment Fragility Curve}
  \label{figModel1Passive0yrs}
  \end{center}
\end{figure}
\clearpage

\begin{figure}[!h]
  \begin{center}
  \leavevmode
  \includegraphics[width=5in, height=3in]{Model1Transverse0yrs.png}
  \caption[]{As-Built Pristine Transverse Abutment Fragility Curve}
  \label{figModel1Transverse0yrs}
  \end{center}
\end{figure}

\textit{As-Built 50 Year Old Integral Bridge}

\begin{figure}[!h]
  \begin{center}
  \leavevmode
  \includegraphics[width=5in, height=3in]{Model1Active50yrs.png}
  \caption[]{As-Built 50 Year Active Abutment Fragility Curve}
  \label{figModel1Active50yrs}
  \end{center}
\end{figure}
\clearpage

为了尝试纠正这个问题,我开始使用子浮动。对于前几页,使用子浮动,我需要在同一页上获得三个图表,因为它们是相关的,并且需要相同的子标题关系。然而,尽管缩放了子标题,但子标题还是出现在图表的左下方,(a)位于图表下方,然后将图形推到右侧,而不是位于标题上方的中心

\begin{figure}[]
  \centering
  \subfloat[]{Active Abutment}{\label{figModel1}\includegraphics[scale=0.4]{Model1.png}}
  \captionsetup{position=bottom}
  \centering
  \subfloat[]{Passive Abutment}{\label{figModel2}\includegraphics[scale=0.4]{Model2.png}}
  \captionsetup{position=bottom}
  \centering
  \subfloat[]{Transverse Abutment}{\label{figModel3}\includegraphics[scale=0.4]{Model3.png}}
  \captionsetup{position=bottom}
  \caption[]{Pristine Integral Bridge Abutment Fragility Curves}
\end{figure}
\clearpage

我需要支持如何控制附录中的数字!

答案1

由于您只有一串数字,我建议不要让它们浮动。以下是针对给定页面的两个数字的设置。... \clearpage冲洗...重复。

已编辑以显示用于验证的框架,并反映了这样一个事实:(\vfill帽子提示 John Kormylo)需要某种类型的锚点来推动,以免被页面边界吸收。

\documentclass{article}
\usepackage{caption}
\usepackage[demo]{graphicx}
\usepackage[pass,showframe]{geometry}
\begin{document}
{\centering
\null\vfill
\includegraphics[width=4.5in, height=3in]{Model1Active0yrs.png}
\captionof{figure}{As-Built Pristine Active Abutment Fragility Curve%
  \label{figModel1Active0yrs}}
\vfill
\includegraphics[width=4.5in, height=3in]{Model1Passive0yrs.png}
\captionof{figure}{As-Built Pristine Passive Abutment Fragility Curve%
  \label{figModel1Passive0yrs}}
\vfill\null
}
\end{document}

在此处输入图片描述

相关内容