texlive[64808] Master/texmf-dist: docshots (25oct22)

commits+karl at tug.org commits+karl at tug.org
Tue Oct 25 22:13:48 CEST 2022


Revision: 64808
          http://tug.org/svn/texlive?view=revision&revision=64808
Author:   karl
Date:     2022-10-25 22:13:48 +0200 (Tue, 25 Oct 2022)
Log Message:
-----------
docshots (25oct22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/docshots/DEPENDS.txt
    trunk/Master/texmf-dist/doc/latex/docshots/docshots.pdf
    trunk/Master/texmf-dist/source/latex/docshots/docshots.dtx
    trunk/Master/texmf-dist/tex/latex/docshots/docshots.sty

Modified: trunk/Master/texmf-dist/doc/latex/docshots/DEPENDS.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/docshots/DEPENDS.txt	2022-10-25 20:13:34 UTC (rev 64807)
+++ trunk/Master/texmf-dist/doc/latex/docshots/DEPENDS.txt	2022-10-25 20:13:48 UTC (rev 64808)
@@ -2,7 +2,6 @@
 hard fancyvrb
 hard pdfcrop
 hard pgf
-hard pgf-blur
 hard pgfopts
 hard listings
 hard minted
\ No newline at end of file

Modified: trunk/Master/texmf-dist/doc/latex/docshots/docshots.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/docshots/docshots.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/docshots/docshots.dtx	2022-10-25 20:13:34 UTC (rev 64807)
+++ trunk/Master/texmf-dist/source/latex/docshots/docshots.dtx	2022-10-25 20:13:48 UTC (rev 64808)
@@ -50,7 +50,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{docshots}
 %<*package>
-[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]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -128,9 +128,13 @@
 % \begin{docshot}
 % \documentclass{article}
 % \usepackage{tikz}
+% \usetikzlibrary{backgrounds}
 % \pagestyle{empty}
 % \begin{document}
-% \begin{tikzpicture}
+% \begin{tikzpicture}[
+%   show background rectangle,
+%   background rectangle/.style=
+%     {draw=none,fill=gray!20}]
 % \node [circle,draw] (v0) {$v_0$};
 % \node [circle,draw=orange,thick,
 %   below right of=v0] (v1) {$v_1$};
@@ -355,6 +359,7 @@
 % \section{Prerequisites}
 
 % \DescribeMacro{\docshotPrerequisite}
+% \changes{0.0.3}{2022/10/14}{The command is added to enable copying of supplementary files into docshots snippets processing directory.}
 % If you need some files to be present next to the |.tex| snippet while
 % it's rendered by |pdflatex|, you can use |\docshotPrerequisite| with
 % a single mandatory argument. The argument is the name of a file you need
@@ -429,9 +434,8 @@
 % \StopEventually{}
 
 % \section{Implementation}
+% \changes{0.0.1}{2022/10/09}{Initial version}
 
-% \changes{v0.0.1}{2022/10/09}{Initial version}
-
 % First, we include a few packages:
 %    \begin{macrocode}
 \RequirePackage{iexec}
@@ -439,17 +443,18 @@
 \RequirePackage{xcolor}
 \RequirePackage{graphicx}
 \RequirePackage{tikz}
-\usetikzlibrary{shadows.blur}
 %    \end{macrocode}
 
 % Then, we process package options:
+% \changes{0.0.4}{2022/10/18}{Package options "lstinputlisting" and "inputminted" introduced to enable printing of verbatim text either via listings or minted packages.}
+% \changes{0.0.5}{2022/10/24}{Package option "log" added, which enables detailed logging via exec. By default, there is no logging at all.}
 %    \begin{macrocode}
 \RequirePackage{pgfopts}
+\def\docshots at log{}
 \pgfkeys{
   /docshots/.cd,
   dtx/.store in=\docshots at dtx,
-  log/.store in=\docshots at log,
-  log/.default=,
+  log/.code=\def\docshots at log{log},
   lstinputlisting/.store in=\docshots at lstinputlisting,
   inputminted/.store in=\docshots at inputminted,
   tmpdir/.store in=\docshots at tmpdir,
@@ -472,7 +477,7 @@
   left/.default=.3\linewidth,
   right/.store in=\docshots at 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}
 %    \end{macrocode}
@@ -549,7 +554,7 @@
 % Otherwise, we ask |pdfcrop| to crop the PDF:
 %    \begin{macrocode}
   \IfFileExists{\docshots at tmpdir/\jobname/\hash.crop.pdf}
-    {\message{docshots: on't pdfcrop, the PDF already exists
+    {\message{docshots: won't pdfcrop, the PDF already exists
       (\docshots at tmpdir/\jobname/\hash.crop.pdf)^^J}}
     {\iexec[\docshots at log,quiet]{\docshots at pdfcrop\space
       --margins \docshots at margin\space
@@ -574,7 +579,7 @@
   \begingroup%
   \par%
   \tikz[baseline=(a.north)]
-    \node (a) [draw=gray]
+    \node (a) [draw=gray,inner sep=0]
     {\includegraphics[width=\docshots at left]
       {\docshots at tmpdir/\jobname/\hash.crop.pdf}};%
   \hspace{\docshots at hspace}%

Modified: trunk/Master/texmf-dist/tex/latex/docshots/docshots.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/docshots/docshots.sty	2022-10-25 20:13:34 UTC (rev 64807)
+++ trunk/Master/texmf-dist/tex/latex/docshots/docshots.sty	2022-10-25 20:13:48 UTC (rev 64808)
@@ -31,7 +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]
 
 
 
@@ -58,20 +58,18 @@
 
 
 
-
 \RequirePackage{iexec}
 \RequirePackage{fancyvrb}
 \RequirePackage{xcolor}
 \RequirePackage{graphicx}
 \RequirePackage{tikz}
-\usetikzlibrary{shadows.blur}
 
 \RequirePackage{pgfopts}
+\def\docshots at log{}
 \pgfkeys{
   /docshots/.cd,
   dtx/.store in=\docshots at dtx,
-  log/.store in=\docshots at log,
-  log/.default=,
+  log/.code=\def\docshots at log{log},
   lstinputlisting/.store in=\docshots at lstinputlisting,
   inputminted/.store in=\docshots at inputminted,
   tmpdir/.store in=\docshots at tmpdir,
@@ -94,7 +92,7 @@
   left/.default=.3\linewidth,
   right/.store in=\docshots at 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 at log,quiet]{rm -f \docshots at tmpdir/\jobname/after.sh}
   \IfFileExists{\docshots at tmpdir/\jobname/\hash.crop.pdf}
-    {\message{docshots: on't pdfcrop, the PDF already exists
+    {\message{docshots: won't pdfcrop, the PDF already exists
       (\docshots at tmpdir/\jobname/\hash.crop.pdf)^^J}}
     {\iexec[\docshots at log,quiet]{\docshots at pdfcrop\space
       --margins \docshots at 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 at left]
       {\docshots at tmpdir/\jobname/\hash.crop.pdf}};%
   \hspace{\docshots at hspace}%



More information about the tex-live-commits mailing list.