bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: texi2pdf and image width


From: Karl Berry
Subject: Re: texi2pdf and image width
Date: Tue, 23 Aug 2011 18:40:17 GMT

Hi Reinhold,

    However, it seems that an image needs to be smaller than the actual text 
    width.

I don't think so.  I see a discrepancy only because of PDF/PostScript
points vs. TeX points.  Adobe points ("big points" = bp in TeX) are
72/inch.  TeX points are 72.27/inch (= pt in TeX, the traditional
printer's point ... recall that TeX predates PostScript :).

1bp = 1.00375pt.

Your image is 455bp wide = 456.70625pt.
The TeX \hsize = 455.24408pt.

The complaint is 
Overfull \hbox (1.46217pt too wide) in paragraph at lines 9--9

Subtracting, we see 456.70625 - 455.24408 = 1.46217.

QED.


In other words, make your images be 453.543288bp and they will fit.
Though if I were you, I would stick to 453.5 and sacrifice the extra
.04bp to avoid errors from possible rounding somewhere along the line.


To check in another way, I also ran with @loggingall and looked at the
resulting output.  The line in question is:

.\hbox(38.1425+0.0)x455.24408
..\pdfrefximage(38.1425+0.0)x456.70625
..\penalty 10000
..\glue(\parfillskip) 0.0 plus 1.0fil
..\glue(\rightskip) 0.0

There is no glue there making the line overfull.  It's all due to the
image.

Best,
karl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]