Menu

#37 fig2dev: embedded jpg-images create spurios pages on ps/pdf export

closed
nobody
None
2019-10-30
2019-01-01
Juan
No

Hi,

I think there is a bug in xfig/fig2dev when exporting to "Combined PDF/LaTeX (both parts)". If fig contains pictures, some items are not shown in the exported pdf.

MACHINE/OS:
Linux 4.19.0-1-amd64 #1 SMP Debian 4.19.12-1 (2018-12-22) x86_64 GNU/Linux

VERSIONS:
transfig(fig2dev) Version 3.2.7a
pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian)

DESCRIPTION:
Both fig2dev and xfig generate a pdf with missing items from a fig file with pictures.
I attach a zip with several files to reproduce the error. It contains:
- example.tex (main tex file loading both a pdf_t and a tikz exported from a fig)
- example.pdf (pdf version of example.tex, generated with pdflatex)
- crono/crono.fig (fig file, including several image files)
- crono/crono.pdf,pdf_t (exported pdftex files, with missing items)
- crono/crono.tikz (exported tikz file. Warning: full paths will no longer be valid)
- crono/* (several included jpeg/png images)

1 Attachments

Related

Tickets: #108

Discussion

  • tkl

    tkl - 2019-01-02
    • summary: xfig/fig2dev: some items not exported to pdftex --> fig2dev: embedded jpg-images create spurios pages on ps/pdf export
     
  • tkl

    tkl - 2019-01-02

    Thanks for your report.
    The missing items are indeed shown, but on subsequent pages on the generated pdf. The problem converns embedded jpg-files. The issue has been fixed in the development version of fig2dev. Hence, the resolution is to build fig2dev from sources (click on "Download snapshot")

    $ unzip mcj-fig2dev-*
    $ cd mcj-fig2dev-*
    $ ./configure; make; make install
    

    Workarounds are:
    1. Convert the .jpg-images to another format, e.g., png
    for f in *jpg; do convert $f ${f%jpg}.png; done,
    2. Create an intermediate eps-file, delete all occurences of "showpage" in this file, and convert the eps to a pdf file,
    3. Create a stand-alone tex file for pict2e or tikz output, the former will not allow areas with pattern fills,

    $ fig2dev -L tikz -P crono.fig crono.tex
    $ {pdflatex|xelatex|lualatex} crono.tex
    

    The title of the ticket has been changed to reflect the actual issue. Sorry for the previous, incomplete post!

    Yours,
    Thomas

     

    Last edit: tkl 2019-01-02
  • tkl

    tkl - 2019-01-02
    • status: open --> pending
     
  • tkl

    tkl - 2019-10-30
    • status: pending --> closed
     
  • tkl

    tkl - 2019-10-30

    Fixed with release 3.2.7b.

     

Log in to post a comment.