summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-21 20:51:47 +0000
committerKarl Berry <karl@freefriends.org>2022-11-21 20:51:47 +0000
commitd63330f036285d6cb4a0ac403eb640c27dc2e0f9 (patch)
tree69fb447044fa97c0573b826c84b8a218641b6fee
parent5ec2801a90c0497799b7ea7f02a76da3b444cc67 (diff)
docshots (20nov22)
git-svn-id: svn://tug.org/texlive/trunk@65072 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/docshots/docshots.pdfbin340307 -> 340651 bytes
-rw-r--r--Master/texmf-dist/source/latex/docshots/docshots.dtx9
-rw-r--r--Master/texmf-dist/tex/latex/docshots/docshots.sty4
3 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/docshots/docshots.pdf b/Master/texmf-dist/doc/latex/docshots/docshots.pdf
index 9b4f1afa94d..ab77d8bf308 100644
--- a/Master/texmf-dist/doc/latex/docshots/docshots.pdf
+++ b/Master/texmf-dist/doc/latex/docshots/docshots.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/docshots/docshots.dtx b/Master/texmf-dist/source/latex/docshots/docshots.dtx
index 0ba48b98de9..9163bc10a1f 100644
--- a/Master/texmf-dist/source/latex/docshots/docshots.dtx
+++ b/Master/texmf-dist/source/latex/docshots/docshots.dtx
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{docshots}
%<*package>
-[2022-11-10 0.3.0 TeX Samples Next to Their PDF Snapshots in DTX]
+[2022-11-20 0.3.1 TeX Samples Next to Their PDF Snapshots in DTX]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -366,7 +366,7 @@ Hello, world!
%</verb>
%\fi
-% \section{Fine-uning Options}
+% \section{Fine-tuning Options}
% \DescribeMacro{\docshotOptions}
% By default, we render the verbatim text using |\VerbatimInput| command with
@@ -556,9 +556,10 @@ Hello, world!
{\end{VerbatimOut}%
% \end{macrocode}
% If we are in |dtx| mode, leading percent characters must be removed:
+% \changes{0.3.1}{2022/11/20}{A bug fixed, now handling of leading percentage symbols is done right.}
% \begin{macrocode}
\ifdefined\docshots@dtx%
- \iexec[null]{perl -i -0777pe "s/(\\n|^)\\x{25} /\\1/g"
+ \iexec[null]{perl -i -0777pe "s/(\\n|^)\\x{25}\\s?/\\1/g"
\docshots@tmpdir/\jobname/verbatim.tex}%
\fi%
% \end{macrocode}
@@ -675,7 +676,7 @@ Hello, world!
% \end{macro}
% \begin{macro}{\docshotAfter}
-% Finally, we define |\docshotAfter| command:
+% Then, we define |\docshotAfter| command:
% \begin{macrocode}
\makeatletter\newcommand\docshotAfter[1]{
\iexec[\docshots@log,quiet]{/bin/echo -n '\detokenize{#1}'
diff --git a/Master/texmf-dist/tex/latex/docshots/docshots.sty b/Master/texmf-dist/tex/latex/docshots/docshots.sty
index 8d77d73edcf..bdffb3cb705 100644
--- a/Master/texmf-dist/tex/latex/docshots/docshots.sty
+++ b/Master/texmf-dist/tex/latex/docshots/docshots.sty
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{docshots}
-[2022-11-10 0.3.0 TeX Samples Next to Their PDF Snapshots in DTX]
+[2022-11-20 0.3.1 TeX Samples Next to Their PDF Snapshots in DTX]
@@ -122,7 +122,7 @@
{\docshots@tmpdir/\jobname/verbatim.tex}}
{\end{VerbatimOut}%
\ifdefined\docshots@dtx%
- \iexec[null]{perl -i -0777pe "s/(\\n|^)\\x{25} /\\1/g"
+ \iexec[null]{perl -i -0777pe "s/(\\n|^)\\x{25}\\s?/\\1/g"
\docshots@tmpdir/\jobname/verbatim.tex}%
\fi%
\def\hash{\docshots@mdfive{\docshots@tmpdir/\jobname/verbatim.tex}}%