You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
805 B

% comment out to define
%\def\CompileTikZFigures{}
\documentclass{article}
\usepackage{xspace}
\usepackage{tikz}
\ifx\CompileTikZFigures\undefined
\usetikzlibrary{external}
\tikzexternalize[prefix=pics/tikz/]
\fi
\usepackage{todonotes}
\ifx\CompileTikZFigures\undefined
\makeatletter
\renewcommand{\todo}[2][]{%
\tikzexternaldisable%
\@bsphack\@todo[#1]{#2}\@esphack\ignorespaces%
\tikzexternalenable%
\xspace%
}
\makeatother
\else
\makeatletter
\renewcommand{\todo}[2][]{%
\@bsphack\@todo[#1]{#2}\@esphack\ignorespaces\xspace%
}
\makeatother
\fi
\begin{document}
Example by Marek Rjelka.
\verb+\CompileTikZFigures+ is
\ifx\CompileTikZFigures\undefined%
un%
\fi%
defined.
\bigskip
Here goes some\todo{a comment} text.
\end{document}