![PDF 文档中出现的浮动放置选项](https://linux22.com/image/320474/PDF%20%E6%96%87%E6%A1%A3%E4%B8%AD%E5%87%BA%E7%8E%B0%E7%9A%84%E6%B5%AE%E5%8A%A8%E6%94%BE%E7%BD%AE%E9%80%89%E9%A1%B9.png)
我有一个包含大量浮点数的乳胶文档,所以我想将它们全部放在 pdf 的末尾。
我已经使用以下方法完成了此操作:
\usepackage[nomarkers, nolists]{endfloat}
最重要的是,我有[!]
我的
\begin{figure*}[!]
我显然在做一些愚蠢的事情。有人能告诉我这是什么吗?
以下是我的问题的一个实际示例。您可以看到应该绘制图表的位置[htbp]
\documentclass[a4paper,fleqn,usenatbib]{mnras}
\usepackage[T1]{fontenc}
\usepackage{ae,aecompl}
\usepackage{graphicx} % Including figure files
\usepackage{amsmath} % Advanced maths commands
\usepackage{amssymb} % Extra maths symbols
\title[title}
\author[K. T. Smith et al.]{
Keith T. Smith,$^{1}$\thanks{E-mail: [email protected] (KTS)}
A. N. Other,$^{2}$
Third Author$^{2,3}$
and Fourth Author$^{3}$
\\
$^{1}$Royal Astronomical Society, Burlington House, Piccadilly, London W1J 0BQ, UK\\
$^{2}$Department, Institution, Street Address, City Postal Code, Country\\
$^{3}$Another Department, Different Institution, Street Address, City Postal Code, Country
}
\date{Accepted XXX. Received YYY; in original form ZZZ}
\pubyear{2015}
\begin{document}
\label{firstpage}
\pagerange{\pageref{firstpage}--\pageref{lastpage}}
\maketitle
\begin{abstract}
This is a simple template for authors to write new MNRAS papers.
The abstract should briefly describe the aims, methods, and main results of the paper.
It should be a single paragraph not more than 250 words (200 words for Letters).
No references should appear in the abstract.
\end{abstract}
\begin{keywords}
keyword1 -- keyword2 -- keyword3
\end{keywords}
\section{Introduction}
Introduction
\section{Observations}
Observations.
\section{Data Analysis}
\label{dataanalysis}
Data analysis
\section{Results}
results
\begin{figure*}[htbp]
\begin{center}
\includegraphics[width=150mm]{plot.png}
\caption{Plot caption}
\label{}
\end{center}
\end{figure*}
\begin{figure*}[htbp]
\begin{center}
\includegraphics[width=150mm]{plot2.png}
\caption{caption2}
\label{}
\end{center}
\end{figure*}
\bsp % typesetting comment
\label{lastpage}
\end{document}
答案1
文档类的手册里给出了答案:
LaTeX 浮动放置命令
[htbp]
被有意禁用。出版商将在制作过程中调整图表和表格的布局,因此作者不必担心放置问题,以免失望和浪费精力。
由于浮动环境被重新定义为没有可选参数,因此[..]
被解释为普通文本,并打印在文档中。