shiblon / latex-makefile

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

tikz terminal support for gnuplot #188

Open shiblon opened 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 175

Is there a ability to use the tikz terminal for gnuplot graphics.

So if there is a \input{graphics/sinus.tex} in latex source, but only graphics/sinus.gpi
exists, it will run gnuplot with "terminal tikz color solid" (or without "color solid"
for GRAY=1).

It could also be included for _show-graphics command, with "terminal tikz standalone".

Reported by Mariaki.Benedikt.V on 2014-05-11 13:53:13

shiblon commented 8 years ago
Sry that I set the type as Defect.. it actually isn't.. I don't know how to change.

As extension you could do the same for dia.

The commands that have to be run are:
dia -e <file>.tex -t pgf-tex <file>.dia
sed "s/\\\$/\$/g" -i <file>.tex
sed "s/\\ensuremath{\\backslash}/\\/g" -i <file>.dia

The sed commands are there, because dia doesn't want to interpret math-code as it,
not like described in documentation.

Reported by Mariaki.Benedikt.V on 2014-05-17 12:22:43

shiblon commented 8 years ago
This is interesting, but there is usually a problem with tex-generated graphics, in
that tex simply can't build successfully unless they are already there. The makefile
determines its dependency information from latex itself.

This has been sort of worked around in an ugly way in the past, but it will never be
clean and nice (auto-building from .gpi reliably) because it can't get all of the dependencies
in one go without the files already existing.

What you can do is fiddle around with the dependency rules in your own Makefile.ini
file, which will get included automatically. If you happen to get something working
reliably that I haven't thought of, that is a great way to get a patch together, or
at least to give me something concrete to work with (especially important now that
I'm not using latex as much as I used to, and therefore can't be as confident that
my patches work for everyone).

Reported by shiblon on 2014-05-19 12:36:13