aboutsummaryrefslogtreecommitdiff
path: root/tex/preamble-pgfplots.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/preamble-pgfplots.tex')
-rw-r--r--tex/preamble-pgfplots.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/tex/preamble-pgfplots.tex b/tex/preamble-pgfplots.tex
index c2a7f14..78937a7 100644
--- a/tex/preamble-pgfplots.tex
+++ b/tex/preamble-pgfplots.tex
@@ -37,8 +37,12 @@
%% figures. These numbers can be hard to manage and they will also depend
%% on order in the final PDF, so it will be very buggy to manage them.
\newcommand{\includetikz}[1]{%
+ \ifdefined\makepdf%
\tikzsetnextfilename{#1}%
\input{tex/#1.tex}%
+ \else
+ \includegraphics[width=\linewidth]{\bdir/tex/build/tikz/#1.pdf}
+ \fi
}