diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-alltt.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-alltt.sty | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-alltt.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-alltt.sty index 3c51b816d43..e1ebe5b93fb 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-alltt.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-alltt.sty @@ -18,13 +18,24 @@ \LWR@ProvidesPackagePass{alltt}[1997/06/16] \AfterEndPreamble{ \LWR@traceinfo{Patching alltt.} + \AtBeginEnvironment{alltt}{% -\LWR@forcenewpage -\LWR@atbeginverbatim{3}{alltt}% + \ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% + {}% + {% + \LWR@forcenewpage + \LWR@atbeginverbatim{alltt}% + }% } + \AfterEndEnvironment{alltt}{% - \LWR@afterendverbatim{2}% + \ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% + {}% + {% + \LWR@afterendverbatim% + }% } + } \endinput %% |