bugtex4ht - Bugs: bug #371, TikZ externalization and PDF images

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #371: TikZ externalization and PDF images

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Mon Oct 16 15:52:24 2017  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun Oct 22 02:29:36 2017, comment #2:

committed graphicx.4ht html4.4ht usepackage.4ht to TL (r45571). Thanks.

Karl Berry <karl>
Project Administrator
Wed Oct 18 13:26:46 2017, comment #1:

Here are modified usepackage.4ht and html4.4ht files, if anybody want to test them. I had to zip the html4.4ht, because it is too large.

(file #288, file #289)

Michal Hoftich <michal_h21>
Project Member
Mon Oct 16 15:52:24 2017, original submission:

I've added support for TikZ externalization and for PDF image inclusion.

The externalization supports means that TikZ will not try to externalize the images with tex4ht compilation, saved images will be used instead. So it is necessary to compile the document using (pdf|lua|xe)latex first, with -shell-escape option. The externalized images will be included as PDF.

This is connected with the second new feature, which is PDF image support. PDF images will be converted to some supported format, I've added support for SVG support as default. Inkscape is used for the conversion. New configuration, PdfConvert have been added. It has two arguments, first is the image format which should be used, the second is a command used for conversion.

This is the default configuration:

\Configure{PdfConvert}{svg}{"inkscape -z -f '\Gin@base.pdf' -l '\Gin@base.\a:PdfConvert'"}

I think we can add more configurations and use the command line options for choosing among them.

The main reason to use the externalization instead of the default TikZ support for tex4ht, is that it has better support for text nodes and more TikZ features. And also the compilation speed should be better.

Michal Hoftich <michal_h21>
Project Member


Attached Files
file #288:  usepackage.4ht added by michal_h21 (3kB - application/octet-stream)
file #289:  html4.zip added by michal_h21 (129kB - application/zip)
file #287:  sample.tex added by michal_h21 (1kB - text/x-tex)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    4 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Oct 22 02:29:36 2017karlOpen/ClosedOpen=>Closed
    Wed Oct 18 13:26:46 2017michal_h21Attached File-=>Added usepackage.4ht, #288
      Attached File-=>Added html4.zip, #289
    Mon Oct 16 15:52:24 2017michal_h21Attached File-=>Added sample.tex, #287
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray