Menu

#24 equations to bitmap error

closed
None
5
2020-04-18
2011-10-25
Tommaso
No

Dear LaTex2RTF support team,

I am trying to convert a simple .tex file in a RTF file.

The text is properly converted. Also the equations are text-converted, but I need they are included in the RTF as bitmap. If I check "convert displayed equations to bitmap" and "convert inline equations to bitmap", for each equation LaTex2RTF creates a .tex file, then a .dvi file and a .eps file. The .dvi end .eps files look ok, if I open them. Nevertheless, I obtain the following error:

test.tex:77 Rendering '$\omega(t)$'
test.tex:77 {{ SaveEquationAsFile = .\l2r_0001.tex
test.tex:77
error=1 when converting .\l2r_0001
test.tex:77 PutLatexFile failed to convert '.\l2r_0001.tex' to '.\l2r_0001.png'

What is wrong? This is my configuration:

C:\Programmi\MiKTeX\miktex\bin\latex.exe

C:\Programmi\ImageMagick-6.7.3-Q8\convert.exe

C:\Programmi\gs\gs8.15\bin\gsdll32.dll

Thank you for your help in advance.

best regards

Tommaso Addabbo

Discussion

  • Tommaso

    Tommaso - 2011-10-25

    The compressed log file, please find 'error' in the text

     
  • Tommaso

    Tommaso - 2011-10-25

    I founf that the problem is due to ImageMagick conversion from eps to png:

    Operand stack:
    --nostringval-- --nostringval-- --nostringval--
    START 0 2588256 1252598 1476808 191920 true 1141 5 <3>
    END PROCS 0 2608352 1267249 1476808 193304 true 1140 5 <3>
    gs_std_e.ps 0 2608352 1269732 1476808 194688 true 1140 5 <6>
    gs_il1_e.ps 0 2608352 1271919 1476808 194688 true 1140 5 <9>
    END FONTDIR/ENCS 0 2608352 1272097 1476808 194688 true 1140 5 <15>
    END DEVS 0 2611856 1279129 1476808 194688 true 1140 5 <15>
    END STATD 0 2631952 1289601 1496904 199640 true 1140 5 <39>
    END GS_FONTS 0 2652048 1317147 1496904 199640 true 1141 5 <45>
    END BASIC COLOR 0 2672144 1327112 1496904 199640 true 1139 5 <48>
    END LEVEL 1 COLOR 0 2672144 1328844 1496904 199640 true 1139 5 <51>
    END IMAGE 0 2672144 1332150 1496904 199640 true 1139 5 <54>
    gs_btokn.ps 0 2672144 1335596 1496904 199640 true 998 4 <57>
    gs_dps1.ps 0 2672144 1336945 1496904 199640 true 998 4 <57>
    gs_dps2.ps 0 2672144 1338956 1496904 199640 true 998 4 <57>
    gs_type1.ps 16 2672144 1340486 1496904 199640 true 998 4 <57>
    While reading gs_lev2.ps:
    %%[ Error: invalidaccess; OffendingCommand: put ]%%
    START 835040 2746856 1409687 1496904 201896 true 1002 7 <92>
    END PROCS 835040 2766952 1424298 1496904 203280 true 1000 7 <92>
    gs_std_e.ps 835040 2766952 1427053 1496904 204664 true 1000 7 <95>
    gs_il1_e.ps 835040 2766952 1429240 1496904 204664 true 1000 7 <98>
    END FONTDIR/ENCS 835040 2766952 1429418 1496904 204664 true 1000 7 <104>
    END DEVS 835040 2770456 1436450 1496904 204664 true 1000 7 <104>
    END STATD 835040 2790552 1446938 1496904 206288 true 1000 7 <128>
    END GS_FONTS 835040 2810648 1474438 1496904 206288 true 1000 7 <134>
    END BASIC COLOR 835040 2830744 1484403 1496904 206288 true 998 7 <137>
    END LEVEL 1 COLOR 835040 2830744 1486135 1496904 206288 true 998 7 <140>
    END IMAGE 835040 2830744 1489465 1496904 206288 true 998 7 <143>
    gs_btokn.ps 835040 2830744 1492911 1496904 206288 true 998 7 <146>
    gs_dps1.ps 835040 2830744 1494260 1496904 206288 true 998 7 <146>
    gs_dps2.ps 835040 2830744 1496271 1496904 206288 true 998 7 <146>
    gs_type1.ps 835056 2830744 1497801 1496904 206288 true 998 7 <146>
    While reading gs_lev2.ps:
    %%[ Error: invalidaccess; OffendingCommand: put ]%%
    latex2png: error: convert (ImageMagick) failed to translate l2r_0005.eps to l2r_
    0005.png
    Unrecoverable error: rangecheck in .setuserparams

    HOW TO FIX THIS?!?!? The eps file is good, I can open it vith ghost view...

     
  • Wilfried Hennings

    Hello Tommaso!
    First of all, the level of detail of your problem report is above average ;-)
    I don't see anything wrong with your configuration.
    I also successfully tested the current version (6.7.3-2) of ImageMagick.
    As you write that the dvi and eps files are created, the latex2png script and LaTeX are called properly. But then the conversion from eps to png fails. That means, either ImageMagick's convert is not found, or convert cannot properly call Ghostscript.
    Please check whether you downloaded and installed the latest version of latex2rtf (latex2rtf-2.1.1beta7_win.exe), and update your Ghostscript installation to the recent version (9.04).
    If that doesn't help, contact me by e-mail, I will then send you a special version of some files which will produce a more detailed debugging logging.

     
  • Wilfried Hennings

    ... I just saw your addition from 2011-10-25 15:40:11.
    Please send me the problematic l2r_0001.* files for checking.

     
  • Wilfried Hennings

    closed due to long inactivity

     
  • Obum Ezeanosike

    Obum Ezeanosike - 2020-04-17

    Hello all

    I am trying to convert a simple .tex file in a RTF file.
    The text is properly converted. But I get this error message where there are tables or pictures or graphs

    [Sorry. Ignored \begin{stlog} ... \end{stlog}]

    Figure 1:
    [Sorry. Ignored \begin{stlog} ... \end{stlog}]

    I will appreciate assistance.
    Thank you
    Obum

     
    • Wilfried Hennings

      1. PLEASE do not append YOUR question to an already closed case!!!
      2. PLEASE read the instructions carefully. Support requests will NOT be answered. Use the mailing list instead.
       
  • Obum Ezeanosike

    Obum Ezeanosike - 2020-04-17

    Hello all
    Another error message within the script is
    latex2png: error: convert (ImageMagick) failed to translate l2r_0004.eps to l2r_0004.png
    Thank you
    Obum

     

Log in to post a comment.