summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cachepic/prcachepic.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/cachepic/prcachepic.def')
-rw-r--r--Master/texmf-dist/tex/latex/cachepic/prcachepic.def20
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cachepic/prcachepic.def b/Master/texmf-dist/tex/latex/cachepic/prcachepic.def
new file mode 100644
index 00000000000..533fd9dcb85
--- /dev/null
+++ b/Master/texmf-dist/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