I am preparing a document, which uses pgfplots, for submission. I externalized figures etc. successfully. Though, now I'm facing a serious problem: On the target system the tikzexternal.sty file may not be used (not even if I supply it). So, I tried to inline it in my .tex file. This results in the following error:
) (./tikzexternal.sty
! Missing number, treated as zero.
<to be read again>
@
l.24 \toksdef\t@
tikzexternal@tmpa=0
A number should have been here; I inserted `0'.
However, in tikzexternal.sty there is a comment, that inlining the code is in principle possible. I'd like to know what I'm doing wrong or how to modify the tikzexternal code to make it work.
Here is an MWE, assuming that external figures have been generated:
\documentclass[]{article}
\usepackage{graphicx}
%\usepackage{pgfplots}
%\usepgfplotslibrary{external}
%\tikzexternalize[mode=list and make]
%\usepackage{tikzexternal} % <--- WORKS!!
\input{tikzexternal.sty} % <--- FAILS!!
\tikzexternalize
\begin{document}
\begin{figure}[h]
\begin{tikzpicture}
\begin{axis}[width=\columnwidth]
\addplot[dashed,very thick,color=gray]{sin(x)}; \label{tikz:test_1};
\end{axis}
\end{tikzpicture}
\caption[labelInTOC]{ \ref{tikz:test_1}}
\label{fig:test}
\end{figure}
\end{document}
\inputline with\makeatletter ... \makeatother. See http://tex.stackexchange.com/q/8351/86 for more details. – Andrew Stacey Nov 06 '12 at 16:21\includegraphicsin place. They would even convert yourpdffiles toeps. Hard to accept it but it's the way it goes with them. I would really recommend you to keep the modern way to yourself and comply with their standards. – percusse Nov 06 '12 at 16:47