Pdflatex. (Actually, placement of floats).

Rolf Turner r.turner at auckland.ac.nz
Tue Oct 20 23:36:22 CEST 2020

On Tue, 20 Oct 2020 09:19:43 +0000
"Hadi Abed, Khawla" <Khawla.Hadi-Abed at elekta.com> wrote:

> Hello Karl,
> Thanks for your response,
> The graphics are included in the document from the beginning (before
> adding this command); but these are in a wrong place. The Texworks
> put them in the last two page in the generated pdf document or in
> pdflatex viewer and not in their correct position. Just one graph is
> positioned in a correct page, but in the center of this page not at
> the top of the page (as I selected to have them in the top of the
> page "ht!" ). When I use this "\pdfminorversion=7", then the Tex
> viewer refuse to generate any pdf document and I receive the
> following:
> "! pdfTeX error (setup): PDF version cannot be changed after data is
> written to the PDF file. <to be read again> 
>                    \edef 
> l.54 \begin  {document}                       
> !  ==> Fatal error occurred, no output PDF file produced!
> Transcript written on ICON(8073)_AcceptanceReport.log." 
> Please find the attachment document errors
> could you please let me know how I can correct this error?


Further to the advice that Julius Dittmar and Karl Berry have given
you, I would suggest that you might get some mileage from the "float"
package.  This package allows you to say (e.g.):


where the upper case "H" indicates that the figure (in general the
float) should be placed exactly at the point in the text where the
"\begin{figure}" occurs.

One usually has then to fiddle a bit with just where one puts the
"\begin{figure}" in order to get things looking right.

Often it is better and less hassle just to leave things to LaTeX and
accept its decisions about where to place floats.  But not (quite)


Rolf Turner

Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

More information about the texhax mailing list.