shiblon / latex-makefile

A Makefile for LaTeX - drop it in, type make, and magic happens.
Other
185 stars 30 forks source link

Direct SVG->PDF support #107

Closed shiblon closed 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 94

Both pdflatex and xelatex can include SVG images as PDFs, however, there seems to be
no reason to convert those SVGs to EPS first before converting to PDF, since inkscape
can convert directly to PDF. Patch is attached, but there is probably something I'm
missing, therefore only as a bug report, feel free to close it.

If this patch is not accepted, then some minor fixing should be done, since at least
convert-svg seems to have the equals sign in --export-eps on the wrong side of the
closing paren.

Reported by nikolai2@prokoschenko.de on 2010-08-16 21:17:06


shiblon commented 8 years ago
Is this, in fact, converting to EPS first for you?  This should only happen if the build
strategy is set to latex instead of pdflatex.  That's why the logic is in there to
either emit the ps or pdf flag.  The logic that your patch deletes is there for backward
compatibility, and shouldn't really be affecting your use of the makefile.  If it is,
then that's a bug and I need to fix it.

Reported by shiblon on 2010-09-07 19:56:12

shiblon commented 8 years ago
I don't know what was causing your version of the makefile to attempt to move through
eps first, but I can't reproduce it here.  Just the same, I wrapped the svg -> eps
code in an if block that should keep make from using it as an intermediate step when
pdf is the intended output.

r92405c50b8df has the fix.  Full makefile attached.

Reported by shiblon on 2011-01-04 15:53:28