summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/docshots
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-10-25 20:13:48 +0000
committerKarl Berry <karl@freefriends.org>2022-10-25 20:13:48 +0000
commite4d598c31f2635d2baf122c23c60531bd3d4b028 (patch)
tree16f293cbf02f7acc5d889261f66bd2bb9fc369f6 /Master/texmf-dist/tex/latex/docshots
parent674bfbf42250fb6f09bdd2b4f509cd53e178a821 (diff)
docshots (25oct22)
git-svn-id: svn://tug.org/texlive/trunk@64808 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/docshots')
-rw-r--r--Master/texmf-dist/tex/latex/docshots/docshots.sty14
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}%