【问题标题】:Creating pdf using kile. Want png files continuously使用 kile 创建 pdf。连续想要png文件
【发布时间】:2014-09-26 01:39:38
【问题描述】:

我正在使用 kile 创建一个 pdf 文件。在我的文件中,我有 5 个 .png 文件。我需要连续页面中的这些文件。我的代码是:

\begin{figure}[htbp]
  \centering
  \includegraphics[width=20cm,height=30cm,keepaspectratio]{./Chapters/Chapter6/tab1.png}
\end{figure}
 \newpage
 \begin{figure}[htbp]
 \centering
 \includegraphics[width=20cm,height=30cm,keepaspectratio]{./Chapters/Chapter6/tab2.png}
  \end{figure}
\newpage
 \begin{figure}[htbp]
\centering
\includegraphics[width=20cm,height=30cm,keepaspectratio]{./Chapters/Chapter6/tab3.png}
  \end{figure}
\newpage
 \begin{figure}[htbp]
\centering
\includegraphics[width=20cm,height=30cm,keepaspectratio]{./Chapters/Chapter6/tab4.png}
  \end{figure}
\newpage
 \begin{figure}[htbp]
\centering
\includegraphics[width=20cm,height=30cm,keepaspectratio]{./Chapters/Chapter6/tab5.png}
\caption{Proposed new tagset}
\label{1}
\end{figure}
\newpage  

我在不同的页面中得到包含此 png 文件的输出 pdf,即。不在连续页面中。请给我一个解决方案。

【问题讨论】:

    标签: pdf latex png


    【解决方案1】:

    在序言中,包括

    \usepackage{float}
    

    然后对于您的数字,使用H 选项。

    \begin{figure}[H]
    \includegraphics[...]{...}
    \end{figure}
    

    http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions 中所述,H 位置表示将浮动插入到它出现在文本中的精确位置,因此您应该能够将它们全部放在连续页面上,只需将它们放在您想要的位置(可能)中间有一个页面清除命令。

    【讨论】:

      【解决方案2】:

      根据您的页面大小,数字可能大于一页。 在任何情况下,一页上都不能放两个这样的图。

      尝试删除 \newpage 宏。

      【讨论】:

        猜你喜欢
        • 2013-12-10
        • 2014-02-08
        • 2019-01-15
        • 1970-01-01
        • 1970-01-01
        • 2017-11-14
        • 1970-01-01
        • 2010-11-15
        相关资源
        最近更新 更多