diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-epigraph.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-epigraph.sty | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-epigraph.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-epigraph.sty index a1378fd3f2c..df4cd6d0f67 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-epigraph.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-epigraph.sty @@ -20,7 +20,7 @@ \LWR@ProvidesPackageDrop{epigraph} -\newcommand{\qitem}[2] +\DeclareDocumentCommand{\qitem}{m m} { \begin{BlockClass}{qitem} #1 @@ -32,22 +32,29 @@ \end{BlockClass} } -\newcommand{\epigraph}[2] +\DeclareDocumentCommand{\epigraph}{m m} { \begin{LWR@BlockClassWP}{text-align:right}{}{epigraph} \qitem{#1}{#2} \end{LWR@BlockClassWP} } -\newenvironment*{epigraphs} +\DeclareDocumentEnvironment{epigraphs}{} {\LWR@BlockClassWP{text-align:right}{}{epigraph}} {\endLWR@BlockClassWP} +\newenvironment*{flushepinormal}{}{} +\@ifclassloaded{memoir}{ +\setlength{\epigraphwidth}{.5\linewidth} +\renewcommand{\textflush}{flushepinormal} +\renewcommand{\epigraphhead}[2][0]{#2} +\renewcommand{\dropchapter}[1]{} +\renewcommand*{\undodrop}{} +}{% not memoir \newlength{\epigraphwidth} \setlength{\epigraphwidth}{.5\linewidth} -\newenvironment*{flushepinormal}{}{} -\newcommand{\textflush}[1]{flushepinormal} -\newcommand{\epigraphflush}[1]{flushright} -\newcommand{\sourceflush}[1]{flushright} +\newcommand{\textflush}{flushepinormal} +\newcommand{\epigraphflush}{flushright} +\newcommand{\sourceflush}{flushright} \newcommand*{\epigraphsize}{\small} \newlength{\epigraphrule} \newlength{\beforeepigraphskip} @@ -55,6 +62,9 @@ \newcommand{\epigraphhead}[2][0]{#2} \newcommand{\dropchapter}[1]{} \newcommand*{\undodrop}{} +}% not memoir + +\let\cleartoevenpage\relax% also in nextpage \newcommand{\cleartoevenpage}[1][]{} \endinput %% |