note286 / xduts

Xidian University TeX Suite 西安电子科技大学LaTeX套装
https://www.ctan.org/pkg/xduts
LaTeX Project Public License v1.3c
699 stars 71 forks source link

使用figure来插入图片会被全部排版到作者简介之后的插图章节 #149

Closed Han0nly closed 12 months ago

Han0nly commented 12 months ago

作者您好,我在使用figure来插入图片会被全部排版到作者简介之后的插图章节,不确定是什么原因,只能使用\begin{center}来插入图片,这个问题是我哪里使用的不对吗?如何解决?谢谢您的回复。

下面这种情况会被全部排版到作者简介之后的插图章节:

\begin{figure}[tp]
\centering
\includegraphics[width=0.48\textwidth]{figs/chapter4/FIG5}
\caption{Setup of the testbed.}
\label{testbed}
\end{figure}

下面这种情况排版比较正常:

\begin{center}
\includegraphics[scale=0.8]{figs/1.pdf}
\captionof{figure}{Some here}
\end{center}
note286 commented 12 months ago

请给出能复现问题的完整代码,你目前所述我无法复现你的问题。

note286 commented 12 months ago

例如这种完整的代码。

\documentclass{xdupgthesis}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=.3\linewidth]{example-image-a}
\caption{title1}
\end{figure}
\begin{figure}
\centering
\includegraphics[width=.3\linewidth]{example-image-b}
\caption{title2}
\end{figure}
\end{document}

image

Han0nly commented 12 months ago

对不起给你添麻烦了,我发现是我引用了endfloat包导致的