|
From: Daniel J S. <dan...@ie...> - 2016-06-29 02:19:56
|
On 06/28/2016 08:06 PM, Mojca Miklavec wrote: > On 28 June 2016 at 23:38, Daniel J Sebald wrote: >> Does anyone familiar with Tikz/pgf know why the output from pdflatex >> terminal or "lua tikz" terminal should not work with the normal "latex" >> command line processing as opposed to requiring "pdflatex"? >> >> https://sourceforge.net/p/gnuplot/bugs/1822/ > > The "plot sin(x)" as opposed to "test" works for me. I would suspect > fill patterns, but there might of course be any other reason for the > failure. That sounds slightly different from what I'm experiencing (and should be fixed, as I think the TikZ shouldn't have too much trouble with patterns, judging from how extensive the manual is). It sounds like you are at least able to get the TikZ code to work with "latex". I'm not getting that far. The PostScript files that "latex" is generating from TikZ/PGF targeted code is missing the definition "pgfo". That definition is in the file /usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-dvips.def >> If there is a good reason, should we put in the output LaTeX/TeX code >> some type of error message that complains when compiled without pdflatex? > > That would be a very bad idea in my opinion. > > First of all please note that many graphics (like "plot sin(x)") work > even when compiled via dvi->ps route. There's probably just something > wrong with pattern fill or one of those special features which might > just as well be a bug in TikZ (using pdflatex makes a lot more sense > nowadays than going through dvi, so I doubt that special features in > TikZ really get any extensive testing in the old workflow). > > The other problem is that it is very tricky if not impossible to > determine the engine being used. People could use dvipdfmx instead of > dvips to process the files, or XeTeX, LuaTeX, upTeX or any other > exotic workflow. How exactly would you decide when to break the > compilation and when not? Right, I suppose that is what Chapter 10 of the TikZ/PGF manual addresses. The manual does suggest that dvips should work, by somehow including the pgfsys-dvips.def file. (It contains PostScript definitions required for dvips.) But I can't seem to include those definitions no matter what I include or redefine in the TikZ-targeted LaTeX code. On what system are you running "latex", and what version? I have sebald@ ~ $ latex --version pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) kpathsea version 6.1.1 Thanks, Dan |