I'm trying out pgfplots with gnuplot to generate the data. This works by having pgfplots write some stuff to an external file, run gnuplot on the file, and then use the generated data to plot the graph.
The problem I'm having is that I get different behaviour under xelatex as pdflatex or lualatex. In xelatex, the data file is littered with ^^I whereas in the other two formats these are tabs. It appears that the code ^^I is getting stored as a macro which then gets written out to the file, so possibly there's something funny going on with the ^^I syntax: xelatex is reading it literally. Indeed, when I do \show\pgfplots@TAB (the macro in question) then for pdflatex and lualatex then I get a literal tab whereas for xelatex I get ^^I.
So how do I get a tab in xelatex? And why isn't \gdef\pgfplots@TAB{^^I} working?
(The previous line in the code, by the way, is \catcode`\^^I=12 - I don't know if that has anything to do with it.)
-8bitoption certainly makes it work. I'll keep an eye out for side effects. Thanks! – Andrew Stacey Apr 02 '11 at 17:41contour gnuplotpart so somewhere there would be great). – Andrew Stacey Apr 17 '12 at 09:03xelatexand print a warning "You're using xelatex. If things don't appear how you expect, try running with the -8bit option." – Andrew Stacey Apr 17 '12 at 19:33mpgraphicspackage and run it withxelatexengin, which then the*.mpcode generated bympgraphicswill displayTabas^^I. The solution is exactly add-8bit:xelatex -8bit -shell-escape -synctex=1 -src-specials -interaction=nonstopmode $*. – user19832 Jul 13 '16 at 13:00;-)Do you really need-src-specials? – egreg Jul 13 '16 at 13:01-src-specialsin my xelatex compile command. – user19832 Jul 13 '16 at 13:31