summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/docshots/docshots.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-10 20:22:21 +0000
committerKarl Berry <karl@freefriends.org>2022-11-10 20:22:21 +0000
commit7f94dd88b995283814387ca983c4cbd435772707 (patch)
tree000b726f869eb1214b42c6cc262d4842912a132e /Master/texmf-dist/tex/latex/docshots/docshots.sty
parent7cb25d7fe89465ed8e77165b04740601f1437449 (diff)
docshots (10nov22)
git-svn-id: svn://tug.org/texlive/trunk@64986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/docshots/docshots.sty')
-rw-r--r--Master/texmf-dist/tex/latex/docshots/docshots.sty22
1 files changed, 18 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/docshots/docshots.sty b/Master/texmf-dist/tex/latex/docshots/docshots.sty
index 56f47c48ec3..8d77d73edcf 100644
--- a/Master/texmf-dist/tex/latex/docshots/docshots.sty
+++ b/Master/texmf-dist/tex/latex/docshots/docshots.sty
@@ -31,7 +31,11 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{docshots}
-[2022-10-26 0.2.0 TeX Samples Next to Their PDF Snapshots in DTX]
+[2022-11-10 0.3.0 TeX Samples Next to Their PDF Snapshots in DTX]
+
+
+
+
@@ -182,17 +186,21 @@
\begin{minipage}[t]{\docshots@right}%
\vspace{0pt}%
\ifdefined\docshots@lstinputlisting%
- \lstinputlisting{\docshots@tmpdir/\jobname/\hash.tex}%
+ \expandafter\lstinputlisting\expandafter[\docshots@opts]
+ {\docshots@tmpdir/\jobname/\hash.tex}%
\else\ifdefined\docshots@inputminted%
- \inputminted{\docshots@inputminted}
+ \expandafter\inputminted\expandafter[\docshots@opts]
+ {\docshots@inputminted}
{\docshots@tmpdir/\jobname/\hash.tex}%
\else%
- \VerbatimInput{\docshots@tmpdir/\jobname/\hash.tex}%
+ \expandafter\VerbatimInput\expandafter[\docshots@opts]
+ {\docshots@tmpdir/\jobname/\hash.tex}%
\fi\fi%
\vspace{0pt}%
\end{minipage}%
\par%
\endgroup%
+ \docshotOptions{}%
}\makeatother
\makeatletter\newcommand\docshotPrerequisite[1]{
@@ -208,6 +216,12 @@
'\docshots@tmpdir/\jobname/after.sh' created^^J}%
}\makeatother
+\makeatletter
+\gdef\docshots@opts{}
+\newcommand\docshotOptions[1]{%
+ \gdef\docshots@opts{#1}%
+}\makeatother
+
\endinput