diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-09 21:07:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-09 21:07:26 +0000 |
commit | 15abeb17f0a788e84e7bce14d7db45309766c98f (patch) | |
tree | 46f725fadd62f3d69c97285988d1ea6919fef860 /Master/texmf-dist/tex/latex/docshots/docshots.sty | |
parent | 3a4b795a2eeca3df5712d4bb7d33437310c083dc (diff) |
docshots (9jan24)
git-svn-id: svn://tug.org/texlive/trunk@69357 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.sty | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/docshots/docshots.sty b/Master/texmf-dist/tex/latex/docshots/docshots.sty index 6a7dcb19d4d..6097af42e76 100644 --- a/Master/texmf-dist/tex/latex/docshots/docshots.sty +++ b/Master/texmf-dist/tex/latex/docshots/docshots.sty @@ -7,7 +7,7 @@ %% docshots.dtx (with options: `package') %% (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 @@ -31,7 +31,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{docshots} -[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] @@ -166,16 +166,22 @@ "\docshots@tmpdir/\jobname/\hash.pdf" "\docshots@tmpdir/\jobname/\hash.crop.pdf"}% \fi}% - \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 \begingroup% \par% \tikz[baseline=(a.north)] @@ -194,7 +200,7 @@ {\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}% |