summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-03-25 21:28:55 +0000
committerKarl Berry <karl@freefriends.org>2018-03-25 21:28:55 +0000
commit67a0d74b3ba80ada1c0ae1e1b3fc523bd0136699 (patch)
tree8c0f3bd63b4f10cbc26da1e5e8fe305286e8aa63 /Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
parentb0d484d66da70017e2f7617211629a579a3b6056 (diff)
lwarp (24mar18)
git-svn-id: svn://tug.org/texlive/trunk@47115 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty39
1 files changed, 30 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
index a16f15b61f8..36b250fd8b5 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
@@ -55,18 +55,39 @@
\endLWR@figcaption%
}
\RenewDocumentEnvironment{Btrivlist}{m o}
-{\begin{BlockClass}{Btrivlist}\tabular{#1}}
-{\endtabular\end{BlockClass}}
+{%
+ \begin{BlockClass}{Btrivlist}%
+ \tabular{#1}%
+}
+{%
+ \endtabular%
+ \end{BlockClass}%
+}
\AtBeginEnvironment{LWR@nestspan}{%
\RenewDocumentEnvironment{Btrivlist}{m o}{}{}%
-\RenewDocumentCommand{\LWR@origitem}{d()}{\LWRFB@origitem}%
}
\let\LWRFB@origitemizeitem\LWR@itemizeitem
\let\LWRFB@origdescitem\LWR@descitem
-\LetLtxMacro{\LWRFB@origitem}{\LWR@origitem}
-\RenewDocumentCommand{\LWR@itemizeitem}{d()}{\LWRFB@origitemizeitem}
-\RenewDocumentCommand{\LWR@descitem}{d()}{\LWRFB@origdescitem}
+\RenewDocumentCommand{\LWR@itemizeitem}{d()o}{%
+ \IfValueTF{#2}{%
+ \LWRFB@origitemizeitem[#2]%
+ }{%
+ \LWRFB@origitemizeitem%
+ }%
+}
+
+\RenewDocumentCommand{\LWR@descitem}{d()o}{%
+ \IfValueTF{#2}{%
+ \LWRFB@origdescitem[#2]~%
+ }{%
+ \LWRFB@origdescitem%
+ }%
+}
+\RenewDocumentCommand{\LWR@nestspanitem}{d()}{%
+\if@newlist\else{\LWR@htmltagc{br /}}\fi%
+\LWR@origitem%
+}
\renewenvironment{Bitemize}[1][]{\begin{itemize}}{\end{itemize}}
\renewenvironment{Benumerate}[1][]{\begin{enumerate}}{\end{enumerate}}
\renewenvironment{Bdescription}[1][]{\begin{description}}{\end{description}}
@@ -85,7 +106,7 @@
\def\endLandscape{}
\let\LWRFB@UseVerbatim\UseVerbatim
\renewcommand*{\UseVerbatim}[1]{%
-\LWR@atbeginverbatim{Verbatim}\unskip\LWR@origvspace*{-.5\baselineskip}%%
+\LWR@atbeginverbatim{3.5}{Verbatim}%
\LWRFB@UseVerbatim{#1}%
\LWR@afterendverbatim%
}
@@ -93,14 +114,14 @@
\let\LWRFB@LUseVerbatim\LUseVerbatim
\renewcommand*{\LUseVerbatim}[1]{%
-\LWR@atbeginverbatim{LVerbatim}%\unskip\LWR@origvspace*{-\baselineskip}%%
+\LWR@atbeginverbatim{3.5}{LVerbatim}%
\noindent%
\LWRFB@LUseVerbatim{#1}%
\LWR@afterendverbatim%
}
\def\@BUseVerbatim[#1]#2{%
-\LWR@atbeginverbatim{BVerbatim}\unskip\LWR@origvspace*{-.5\baselineskip}%%
+\LWR@atbeginverbatim{3.5}{BVerbatim}%
\LWRFB@UseVerbatim{#2}%
\LWR@afterendverbatim%
}