summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty68
1 files changed, 47 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
index 203d04dc6a0..6583d40db0f 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty
@@ -77,9 +77,9 @@
\csgpreto{Beqnarray*}{\boolfalse{LWR@numbereqnarray}}
\renewcommand{\GenericCaption}[1]{%
-\LWR@figcaption%
-\LWR@isolate{#1}%
-\endLWR@figcaption%
+ \LWR@figcaption%
+ \LWR@isolate{#1}%
+ \endLWR@figcaption%
}
\RenewDocumentEnvironment{Btrivlist}{m o}
{%
@@ -93,7 +93,7 @@
\LWR@startpars%
}
\AtBeginEnvironment{LWR@nestspan}{%
-\RenewDocumentEnvironment{Btrivlist}{m o}{}{}%
+ \RenewDocumentEnvironment{Btrivlist}{m o}{}{}%
}
\let\LWRFB@origitemizeitem\LWR@itemizeitem
\let\LWRFB@origdescitem\LWR@descitem
@@ -114,14 +114,40 @@
}%
}
\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}}
+ \if@newlist\else{
+ \LWR@htmltagc{br /}%
+ \LWR@orignewline%
+ }\fi%
+ \LWR@origitem%
+}
+\renewenvironment{Bitemize}[1][]
+ {%
+ \LWR@spanwarnformat{Bitemize}%
+ \booltrue{LWR@starting@fancybox}%
+ \begin{itemize}%
+ \boolfalse{LWR@starting@fancybox}%
+ }
+ {\end{itemize}}
+
+\renewenvironment{Benumerate}[1][]
+ {%
+ \LWR@spanwarnformat{Benumerate}%
+ \booltrue{LWR@starting@fancybox}%
+ \begin{enumerate}%
+ \boolfalse{LWR@starting@fancybox}%
+ }
+ {\end{enumerate}}
+
+\renewenvironment{Bdescription}[1][]
+ {%
+ \LWR@spanwarnformat{Bdescription}%
+ \booltrue{LWR@starting@fancybox}%
+ \begin{description}%
+ \boolfalse{LWR@starting@fancybox}%
+ }
+ {\end{description}}
\RenewDocumentCommand{\boxput}{s d() m m}{%
-\IfBooleanTF{#1}{#3\quad#4}{#4\quad#3}%
+ \IfBooleanTF{#1}{#3\quad#4}{#4\quad#3}%
}
\RenewDocumentCommand{\fancyput}{s d() m}{}
\RenewDocumentCommand{\thisfancyput}{s d() m}{}
@@ -135,24 +161,24 @@
\def\endLandscape{}
\let\LWRFB@UseVerbatim\UseVerbatim
\renewcommand*{\UseVerbatim}[1]{%
-\LWR@atbeginverbatim{Verbatim}%
-\LWRFB@UseVerbatim{#1}%
-\LWR@afterendverbatim%
+ \LWR@atbeginverbatim{Verbatim}%
+ \LWRFB@UseVerbatim{#1}%
+ \LWR@afterendverbatim%
}
\let\LWRFB@LUseVerbatim\LUseVerbatim
\renewcommand*{\LUseVerbatim}[1]{%
-\LWR@atbeginverbatim{LVerbatim}%
-\noindent%
-\LWRFB@LUseVerbatim{#1}%
-\LWR@afterendverbatim%
+ \LWR@atbeginverbatim{LVerbatim}%
+ \noindent%
+ \LWRFB@LUseVerbatim{#1}%
+ \LWR@afterendverbatim%
}
\def\@BUseVerbatim[#1]#2{%
-\LWR@atbeginverbatim{BVerbatim}%
-\LWRFB@UseVerbatim{#2}%
-\LWR@afterendverbatim%
+ \LWR@atbeginverbatim{BVerbatim}%
+ \LWRFB@UseVerbatim{#2}%
+ \LWR@afterendverbatim%
}
\endinput
%%