yochju / latex-makefile

Automatically exported from code.google.com/p/latex-makefile
Other
0 stars 0 forks source link

tikz terminal support for gnuplot #175

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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".

Original issue reported on code.google.com by Mariaki....@googlemail.com on 11 May 2014 at 1:53

GoogleCodeExporter commented 9 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.

Original comment by Mariaki....@googlemail.com on 17 May 2014 at 12:22

GoogleCodeExporter commented 9 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).

Original comment by shiblon on 19 May 2014 at 12:36