shiblon / latex-makefile

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

Please add support for dia files #187

Closed shiblon closed 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 174

Having (native) support for .dia files would be really cool.

GNU dia can already export eps files:
%.eps: %.dia
  dia --filter=eps --export="$@" "$<"

Alternatively, one can just use inkscape to do the conversion, as shown in the attached
patch.

I guess the first solution would benefit more dia users, but I don't understand the
Makefile good enough to properly implement the .dia -> .eps -> .pdf steps.
Implementing this using inkscape was just just a matter of using copy/paste/replace
with the .svg rules.

Reported by johannes.zarl on 2014-01-27 14:25:52


shiblon commented 8 years ago
That's a beautiful patch. Sorry that you had to make so many edits everywhere. I was
dealing with versions of Make with broken macro specs when I first built this and haven't
updated it to be simpler in all that time. (Sometimes I'm afraid to touch things, too).

Anyway, I'm going to go ahead and apply this. I'll ping this bug when the new release
is up and you can take it for a spin.

Reported by shiblon on 2014-02-14 16:47:42

shiblon commented 8 years ago
OK, the changes are up at ra79acccadaf3 if you want to take a gander.

If you do download the source, just unpack it and run "build". That will create the
Makefile, which you can then just copy where you need it.

Reported by shiblon on 2014-02-14 16:51:29

shiblon commented 8 years ago
I took rev. ra79acccadaf3 for a spin with my LaTeX projects, and everything seems to
work as expected.

Thanks!

Reported by johannes.zarl on 2014-02-14 20:07:17