diff options
author | Karl Berry <karl@freefriends.org> | 2015-07-10 22:39:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-07-10 22:39:17 +0000 |
commit | bc97ea7e20f6794c2511d83772db826a4d9cb5d9 (patch) | |
tree | ce8a465b33a24a12694bb422674beba236d8f225 /Master/texmf-dist/doc/latex/todonotes/examples/externalize.tex | |
parent | 8284b99c6fa05747925445552dcb2852f3b8201f (diff) |
todonotes (10jul15)
git-svn-id: svn://tug.org/texlive/trunk@37829 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/todonotes/examples/externalize.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/todonotes/examples/externalize.tex | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/todonotes/examples/externalize.tex b/Master/texmf-dist/doc/latex/todonotes/examples/externalize.tex new file mode 100644 index 00000000000..3d6776cb764 --- /dev/null +++ b/Master/texmf-dist/doc/latex/todonotes/examples/externalize.tex @@ -0,0 +1,43 @@ +% 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} |