From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 .../cachepic/tex/latex/cachepic/prcachepic.def       | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def

(limited to 'macros/latex/contrib/cachepic/tex/latex/cachepic/prcachepic.def')

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
-- 
cgit v1.2.3

