summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/docshots/docshots.sty
diff options
context:
space:
mode:
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