diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/docshots/docshots.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/docshots/docshots.sty | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/docshots/docshots.sty b/Master/texmf-dist/tex/latex/docshots/docshots.sty index f9f9c6225e5..10016c493da 100644 --- a/Master/texmf-dist/tex/latex/docshots/docshots.sty +++ b/Master/texmf-dist/tex/latex/docshots/docshots.sty @@ -31,8 +31,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{docshots} -[2022-10-18 0.0.4 TeX Samples Next to Their PDF Snapshots in DTX] - +[2022-10-25 0.0.5 TeX Samples Next to Their PDF Snapshots in DTX] @@ -64,14 +63,13 @@ \RequirePackage{xcolor} \RequirePackage{graphicx} \RequirePackage{tikz} -\usetikzlibrary{shadows.blur} \RequirePackage{pgfopts} +\def\docshots@log{} \pgfkeys{ /docshots/.cd, dtx/.store in=\docshots@dtx, - log/.store in=\docshots@log, - log/.default=, + log/.code=\def\docshots@log{log}, lstinputlisting/.store in=\docshots@lstinputlisting, inputminted/.store in=\docshots@inputminted, tmpdir/.store in=\docshots@tmpdir, @@ -94,7 +92,7 @@ left/.default=.3\linewidth, right/.store in=\docshots@right, right/.default=.55\linewidth, - tmpdir,pdflatex,gs,pdfcrop,margin,hspace,left,right,runs,log + tmpdir,pdflatex,gs,pdfcrop,margin,hspace,left,right,runs } \ProcessPgfOptions{/docshots} @@ -137,7 +135,7 @@ {}}}% \iexec[\docshots@log,quiet]{rm -f \docshots@tmpdir/\jobname/after.sh} \IfFileExists{\docshots@tmpdir/\jobname/\hash.crop.pdf} - {\message{docshots: on't pdfcrop, the PDF already exists + {\message{docshots: won't pdfcrop, the PDF already exists (\docshots@tmpdir/\jobname/\hash.crop.pdf)^^J}} {\iexec[\docshots@log,quiet]{\docshots@pdfcrop\space --margins \docshots@margin\space @@ -156,7 +154,7 @@ \begingroup% \par% \tikz[baseline=(a.north)] - \node (a) [draw=gray] + \node (a) [draw=gray,inner sep=0] {\includegraphics[width=\docshots@left] {\docshots@tmpdir/\jobname/\hash.crop.pdf}};% \hspace{\docshots@hspace}% |