#81 Trouble Using Images with rst2pdf.py

closed-fixed
None
5
2009-09-07
2007-04-04
Jeff Rush
No

Using rst2pdf.py to convert a small document with an embedded image fails, with a few LaTeX error messages:

Package typearea, 2004/09/16 v2.9t LaTeX2e KOMA package
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-2002

Package typearea Warning: Bad DIV-value!
(typearea) You should decrease DIV, increase fontsize or
(typearea) change papersize.

A few of these:

! Illegal unit of measure (pt inserted).

<use storage-proxy.png>
Overfull \hbox (34.36905pt too wide) in paragraph at lines 166--167

It seems LaTeX does not degrade gracefully when things don't fit, unlike HTML which always finds a way.

Discussion

  • Jeff Rush
    Jeff Rush
    2007-04-04

    rst document, run log, two images used

     
    Attachments
  • Logged In: YES
    user_id=147070
    Originator: NO

    > ! Illegal unit of measure (pt inserted).

    this is an error, the typearea Warning is a warning.

    > <use storage-proxy.png>
    > Overfull \hbox (34.36905pt too wide) in paragraph at lines 166--167

    this means it is too wide

    > It seems LaTeX does not degrade gracefully when things don't fit, unlike
    > HTML which always finds a way.!

    sideway scrolling is harder on printouts ?

    could you publish a short sample somewhere, so i can have a closer look ?

     
    • assigned_to: nobody --> grubert
     
  • Jeff Rush
    Jeff Rush
    2007-04-04

    Logged In: YES
    user_id=56840
    Originator: YES

    There is an attachment to the bug report containing the rst document in question, along with the two images it includes and a sample run log. If you need more, just let me know.

     
  • Logged In: YES
    user_id=147070
    Originator: NO

    problemlist
    1. you want the image right aligned with text flowing around
    align=right does not tell this, it just happens to work
    so in html ?
    2. width=965,height=458 without units does not define much.
    i guess graphicx in pdfmode then uses pt. not that
    bad. 1pt=1/72in correct ? is this what you want
    the first one is 485 wide (measured in gv) this is
    965*0.5
    3. for printing eps or pdf files would be necessary, so i
    assume you want screenreadpdf ?

     
  • Günter Milde
    Günter Milde
    2009-09-07

    This is fixed in the SVN (upcoming 0.6 release)

     
  • Günter Milde
    Günter Milde
    2009-09-07

    • status: open --> open-fixed
     
  • Günter Milde
    Günter Milde
    2009-09-07

    • status: open-fixed --> closed-fixed