diff options
author | Karl Berry <karl@freefriends.org> | 2018-04-01 22:24:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-04-01 22:24:04 +0000 |
commit | ac8d62d1767ddaee38fb7d8d0afc5ae70233f806 (patch) | |
tree | d75db9d11068090dd417fe1c20240176cac31ab2 /Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty | |
parent | fe9ffbe7cd9288728c5aa469cdb3ee173f90c69d (diff) |
lwarp (2apr18)
git-svn-id: svn://tug.org/texlive/trunk@47225 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty index ea8d9318c10..b83c7293347 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty @@ -18,18 +18,33 @@ \RequirePackage{xcolor}% for \convertcolorspec \LWR@ProvidesPackagePass{fancyvrb} -\begin{warpHTML} - \fvset{frame=none}% - -\renewcommand{\VerbatimFootnotes}{ -\PackageError{lwarp} -{Verbatim footnotes are not yet supported by lwarp.} -{This may be improved some day.} -} - \AfterEndPreamble{ -\LWR@traceinfo{Patching Verbatim.} +\LWR@traceinfo{Patching fancyvrb.} +\def\VerbatimFootnotes{% +\let\@footnotetext\V@footnotetext% +\let\footnote\V@footnote% +\let\LWR@footnotetext\V@footnotetext% lwarp +} +\def\V@@footnotetext{% +\LWR@traceinfo{V@footnotetext}% +\global\setbox\LWR@footnotes=\vbox\bgroup% + \unvbox\LWR@footnotes% + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark% + }% @currentlabel + \renewrobustcmd{\textsuperscript}[1]{\LWR@htmlspan{sup}{##1}}% + \ifthenelse{% + \boolean{LWR@doingstartpars} \AND% + \cnttest{\value{LWR@lateximagedepth}}{=}{0}% + }% + {}% + {\LWR@htmltagc{\LWR@tagregularparagraph}}% + \@makefntext{}% + \bgroup% + \aftergroup{\V@@@footnotetext}% + \ignorespaces% +}% \preto\FVB@Verbatim{\LWR@forcenewpage} \preto\FVB@LVerbatim{\LWR@forcenewpage} \def\FV@BeginListFrame@Single{% @@ -217,7 +232,6 @@ solid \LWR@origpound\LWR@tempcolor ; % } % \AfterEndPreamble -\end{warpHTML} \endinput %% %% End of file `lwarp-fancyvrb.sty'. |