diff options
author | Karl Berry <karl@freefriends.org> | 2020-01-02 22:06:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-01-02 22:06:59 +0000 |
commit | a643657f90f559e2f2059e2e70de89be3e249023 (patch) | |
tree | 608b8bc6618c6991548470b36c02622a138b08a5 /Master/texmf-dist/tex | |
parent | 25d9822dc58e483a0a87d427219a5ea95995a36d (diff) |
epigraph (2jan20)
git-svn-id: svn://tug.org/texlive/trunk@53298 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/epigraph/epigraph.sty | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/epigraph/epigraph.sty b/Master/texmf-dist/tex/latex/epigraph/epigraph.sty index 57f0a71154a..f403da44319 100644 --- a/Master/texmf-dist/tex/latex/epigraph/epigraph.sty +++ b/Master/texmf-dist/tex/latex/epigraph/epigraph.sty @@ -23,7 +23,8 @@ %% ----------------------------------------------------------------- %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{epigraph}[2009/09/02 v1.5c typesetting epigraphs] +\ProvidesPackage{epigraph}[2020/01/02 v1.5e typesetting epigraphs] +\RequirePackage{nextpage} \newlength{\beforeepigraphskip} \setlength{\beforeepigraphskip}{.5\baselineskip} \newlength{\afterepigraphskip} @@ -33,6 +34,8 @@ \newlength{\epigraphrule} \setlength{\epigraphrule}{.4\p@} \newcommand{\epigraphsize}{\small} +\newif\ifepigraphnoindent +\newcommand\epigraphnoindent{\epigraphnoindenttrue} \newcommand{\epigraphflush}{flushright} \newcommand{\textflush}{flushleft} \newcommand{\sourceflush}{flushright} @@ -57,11 +60,21 @@ \newcommand{\@episource}[1]{% \begin{minipage}{\epigraphwidth}\begin{\sourceflush} #1\end{\sourceflush} \end{minipage}} -\newcommand{\epigraph}[2]{\vspace{\beforeepigraphskip} - {\epigraphsize\begin{\epigraphflush}\begin{minipage}{\epigraphwidth} - \@epitext{#1}\\ \@episource{#2} - \end{minipage}\end{\epigraphflush} - \vspace{\afterepigraphskip}}} +\newcommand{\epigraph}[2]{% + \vspace{\beforeepigraphskip} + \vbox{% + \epigraphsize + \begin{\epigraphflush} + \begin{minipage}{\epigraphwidth} + \@epitext{#1}\\ + \@episource{#2}% + \end{minipage}% + \end{\epigraphflush}% + }% + \nointerlineskip + \vspace*{\afterepigraphskip}% + \ifepigraphnoindent\@afterheading\fi +} \newcommand{\qitem}[2]{{\raggedright\item \begin{minipage}{\epigraphwidth} \@epitext{#1}\\ \@episource{#2} \end{minipage}}} @@ -75,10 +88,8 @@ \leftmargin\z@ \rightmargin\z@ \let\makelabel\qitemlabel}}% {\endlist\end{minipage}\end{\epigraphflush} - \vspace{\afterepigraphskip}} -\providecommand{\cleartoevenpage}[1][\@empty]{% - \clearpage% - \ifodd\c@page\hbox{}#1\clearpage\fi} + \vspace{\afterepigraphskip}% +} \newcommand{\dropchapter}[1]{% \let\@epichapapp\@chapapp \renewcommand{\@chapapp}{\vspace*{#1}\@epichapapp}} |