GeneralProblems with images and \bibliography

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
emmanuel_120
Posts: 2
Joined: Mon Dec 08, 2008 10:54 am

Problems with images and \bibliography

Post by emmanuel_120 »

Hi!

I just began using LaTeX a couple of months ago... and this is the first time I've had this kind of issue:

At the end of the document, I'm trying to put two images. Afterwards, the document ends, and I want to put the Bibliography with the \bibliography command. Now, if I use the command \newpage before the bibliography, it won't work, the bibliography begins on the same page. Now, If I add the two images I want, things completely mess up when I compile. The first image is put correctly; but then the bibliography begins, the second image is put in between the text and then the bibliography continues... the code I'm using is the following:

\begin{document}

...

\begin{figure}[h]
\centerline{\includegraphics[width=4.29in,height=2.555in]{table.eps}}
\caption{Image 1.}\label{tplan}
\end{figure}

\newpage

\begin{figure}[h]
\centerline{\includegraphics[width=6.325in,height=4.008in]{gantt4.eps}}
\caption{Bio.}\label{gantt}
\end{figure}

\newpage
\bibliography{biblio}

\end{document}

It won't read the \newpage commands, I've tried with the \breakpage[4] and it doesn't work either. I'm using WinEdt Build: 20071003 (v. 5.5), MikTeX 2.7 (latest version) on Win Vista SP1...

I'd really appreciate if any of you guys could help me out :)

Thanks in advance :D

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: Problems with images and \bibliography

Post by balf »

Try using (maybe just once) \clearpage instead of \newpage: it forces the printing of all figures and tables.

B.A.
emmanuel_120
Posts: 2
Joined: Mon Dec 08, 2008 10:54 am

Re: Problems with images and \bibliography

Post by emmanuel_120 »

It worked :)

Thanks!
Post Reply