summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def
Initial commit
Diffstat (limited to 'macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def')
-rw-r--r--macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def20
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def b/macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def
new file mode 100644
index 0000000000..533fd9dcb8
--- /dev/null
+++ b/macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def
@@ -0,0 +1,20 @@
+% cachepic option for Preview package
+% implements log output of cachpic specific info
+\ifPreview\else\expandafter\endinput\fi
+%\pr@loadcfg{prcachepic}
+\g@addto@macro\pr@ship@end{
+ \ifx\cachepic@name\@undefined
+ \else
+ \typeout{Preview: CachePic
+ \number\pr@snippet\space
+ \number\wd\pr@box\space
+ \number\ht\pr@box\space
+ \number\dp\pr@box\space
+ \cachepic@name}
+ \global\let\cachepic@name\@undefined
+ \fi
+ }
+\PreviewMacro[!!]{\cachepic}
+%\PreviewMacro[!]{\cacheinput}% defined through \cachepic
+\PreviewEnvironment[!]{cachepicture}
+\endinput