From 15abeb17f0a788e84e7bce14d7db45309766c98f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 9 Jan 2024 21:07:26 +0000
Subject: docshots (9jan24)

git-svn-id: svn://tug.org/texlive/trunk@69357 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/source/latex/docshots/docshots.dtx  | 24 ++++++++++++++--------
 1 file changed, 15 insertions(+), 9 deletions(-)

(limited to 'Master/texmf-dist/source/latex/docshots/docshots.dtx')

diff --git a/Master/texmf-dist/source/latex/docshots/docshots.dtx b/Master/texmf-dist/source/latex/docshots/docshots.dtx
index 438938f8709..393f867408d 100644
--- a/Master/texmf-dist/source/latex/docshots/docshots.dtx
+++ b/Master/texmf-dist/source/latex/docshots/docshots.dtx
@@ -1,7 +1,7 @@
 % \iffalse meta-comment
 % (The MIT License)
 %
-% Copyright (c) 2021-2022 Yegor Bugayenko
+% Copyright (c) 2021-2024 Yegor Bugayenko
 %
 % Permission is hereby granted, free of charge, to any person obtaining a copy
 % of this software and associated documentation files (the 'Software'), to deal
@@ -50,7 +50,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{docshots}
 %<*package>
-[2022-11-29 0.4.0 TeX Samples Next to Their PDF Snapshots in DTX]
+[2024-01-09 0.4.1 TeX Samples Next to Their PDF Snapshots in DTX]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -623,16 +623,22 @@ Hello, world!
 %    \end{macrocode}
 % We configure |fancyvrb|:
 %    \begin{macrocode}
-  \fvset{numbers=left,numbersep=3pt}%
-  \fvset{frame=leftline,framerule=.2pt,rulecolor=\color{gray}}%
-  \fvset{samepage=true}%
-  \fvset{baselinestretch=1}%
+  \def\docshots@xopts{
+    numbers=left,numbersep=3pt,
+    frame=leftline,framerule=.2pt,rulecolor=\color{gray},
+    samepage=true,
+    commandchars=none,
+    baselinestretch=1
+  }%
   \ifdefined\docshots@small%
-    \fvset{fontsize=\small}%
+    \edef\docshots@xopts{\unexpanded\expandafter{\docshots@xopts},fontsize=\small}%
   \fi%
   \ifdefined\docshots@tiny%
-    \fvset{fontsize=\scriptsize}%
+    \edef\docshots@xopts{\unexpanded\expandafter{\docshots@xopts},fontsize=\scriptsize}%
   \fi%
+  \ifdefined\docshots@opts
+    \edef\docshots@xopts{\unexpanded\expandafter{\docshots@xopts},\docshots@opts}
+  \fi
 %    \end{macrocode}
 % Finally, we render the two-column content:
 %    \begin{macrocode}
@@ -654,7 +660,7 @@ Hello, world!
         {\docshots@inputminted}
         {\docshots@tmpdir/\jobname/\hash.tex}%
     \else%
-      \expandafter\VerbatimInput\expandafter[\docshots@opts]
+      \expandafter\VerbatimInput\expandafter[\docshots@xopts]
         {\docshots@tmpdir/\jobname/\hash.tex}%
     \fi\fi%
     \vspace{0pt}%
-- 
cgit v1.2.3

