texlive[54851] Master: epigraph-keys (23apr20)

commits+karl at tug.org commits+karl at tug.org
Thu Apr 23 23:05:50 CEST 2020


Revision: 54851
          http://tug.org/svn/texlive?view=revision&revision=54851
Author:   karl
Date:     2020-04-23 23:05:50 +0200 (Thu, 23 Apr 2020)
Log Message:
-----------
epigraph-keys (23apr20)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/epigraph-keys/
    trunk/Master/texmf-dist/doc/latex/epigraph-keys/README
    trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.pdf
    trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.tex
    trunk/Master/texmf-dist/tex/latex/epigraph-keys/
    trunk/Master/texmf-dist/tex/latex/epigraph-keys/epigraph-keys.sty
    trunk/Master/tlpkg/tlpsrc/epigraph-keys.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/epigraph-keys/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/epigraph-keys/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/epigraph-keys/README	2020-04-23 21:05:50 UTC (rev 54851)
@@ -0,0 +1,19 @@
+Epigraph keys
+v1.0
+22 April 2020
+
+Authors: 
+Ben McKay
+
+Maintainer: 
+Ben McKay
+
+E-mail: 
+b.mckay at ucc.ie
+
+Licence: 
+Released under the LaTeX Project Public License v1.3c or later.
+See http://www.latex-project.org/lppl.txt
+
+The epigraph-keys package lays out epigraphs: quotations across a page, usually to open or close a chapter.
+It is intended as a simple replacement for the more sophisticated epigraphs package.


Property changes on: trunk/Master/texmf-dist/doc/latex/epigraph-keys/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.pdf	2020-04-23 21:05:10 UTC (rev 54850)
+++ trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.pdf	2020-04-23 21:05:50 UTC (rev 54851)

Property changes on: trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.tex	2020-04-23 21:05:50 UTC (rev 54851)
@@ -0,0 +1,134 @@
+\documentclass{article}
+\title{The {\texttt{epigraph-keys}} package}
+\author{Benjamin McKay}
+\date{\today}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage{fixmath}
+\usepackage[mathscr]{eucal}
+\usepackage[%
+activate={true,nocompatibility},%
+final,%
+tracking=true,%
+kerning=true,%
+spacing=true,%
+factor=1100,%
+stretch=10,%
+shrink=10]{microtype}
+\microtypecontext{spacing=nonfrench}
+\usepackage{siunitx}
+\usepackage{epigraph-keys}
+\usepackage{tcolorbox}
+\usepackage{fancyvrb-ex}
+\tcbuselibrary{listings}
+\usepackage{xcolor}
+\usepackage{booktabs}
+\usepackage{colortbl}
+\arrayrulecolor{gray!30}
+\definecolor{outerrule}{gray}{0.8}
+\usepackage{pgfornament}
+\begin{document}
+\maketitle
+\tableofcontents
+\abstract{The \texttt{epigraph-keys} package lays out epigraphs: quotations across a page, usually to open or close a chapter.
+It is intended as a simple replacement for the more sophisticated \texttt{epigraphs} package.}
+\section{Introduction}
+\epigraph[author={Ludwig Wittgenstein}, source={Culture and Value}]{With my full philosophical rucksack I can only climb slowly up the mountain of mathematics.}
+Load with \verb!\usepackage{epigraph-keys}!.
+\begin{tcblisting}{title={Simple example}}
+\epigraph[
+	author={Ludwig Wittgenstein},
+	source={Culture and Value}]
+	{With my full philosophical rucksack I can only 
+	climb slowly up the mountain of mathematics.}
+\end{tcblisting}
+\begin{tcblisting}{title={Example with translation}}
+\epigraph[
+	author={Paul Painlev\'e},
+	source={Analyse des travaux scientifiques}, 
+	translation={The shortest and easiest path 
+	between any two facts about the real domain 
+	passes through the complex domain.}]
+	{Entre deux v\'erit\'es du domaine r\'eel, le
+	chemin le plus facile et le plus court passe 
+	bien souvent par le domaine complexe.}
+\end{tcblisting}
+\newpage
+\section{Lots of epigraphs}
+If you want to lay out a series of epigraphs, use an \verb!epigraphs! environment:
+\begin{Example}[%
+frame=single,%
+framesep=3mm,%
+framerule=2mm,%
+rulecolor=\color{outerrule}]
+\begin{epigraphs}
+	\qitem[
+		author={Hermann Weyl},
+		source={Invariants},
+		etc={Duke Mathematical Journal 5, 
+			1939, 489--502}]
+		{In these days the angel of topology and the 
+		devil of abstract algebra fight for the soul 
+		of every individual discipline of 
+		mathematics.}
+	\qitem[
+		author={Goethe}, 
+		source={Faust}]
+		{--- and so who are you, after all? \\
+		--- I am part of the power which forever 
+		wills evil and forever works good.} 
+	\qitem[
+		source={Quran}, 
+		etc={2:1/2:6-2:10 \emph{The Cow}}]
+		{This Book is not to be doubted.}
+\end{epigraphs}
+\end{Example}
+\newpage
+\section{Options}
+\begin{tcblisting}{title={Options}}
+\pgfkeys{
+	/epigraph,
+		after skip={1cm},
+		before skip={0mm},
+		author and source indent=2cm,
+		text indent=1cm,
+		width=\linewidth,
+		style={\large},
+		quote style={\itshape},
+		translation style={},
+		dash={\tikz[baseline=-.3em]
+			\node[inner sep=0pt]
+			{\pgfornament[width=1cm]{11}};}
+}
+\epigraph[
+	author={Goethe}, 
+	source={Faust}]
+	{\begin{enumerate}
+		\item[---] 
+			and so who are you, after all?
+		\item[---] 
+			I am part of the power which 
+			forever wills evil and forever 
+			works good.
+	\end{enumerate}} 
+\end{tcblisting}
+\begin{tabular}{@{}>{\ttfamily}l>{}l>{\ttfamily}l<{}p{4.5cm}@{}}
+\toprule
+\multicolumn{1}{@{}l}{Option}&Type&\multicolumn{1}{l}{Default}&Significance\\
+\cmidrule(r){1-1}\cmidrule(lr){2-2}\cmidrule(lr){3-3}\cmidrule(l){4-4}
+author&text&&author's name\\
+source&text&&source of quotation\\
+etc&text&&additional information on the source or author of the quotation\\
+after skip&length&\textbackslash{}baselineskip&vertical space below epigraph\\
+before skip&length&0mm&vertical space above epigraph\\
+author and source indent&length&1.5cm&Indentation before author's name and source of quotation\\
+text indent&length&2cm&Indentation before quote\\
+width&length&\textbackslash{}linewidth&width of the entire epigraph\\
+style&macro&\textbackslash{}small&style of the entire epigraph\\
+quote style&macro&\textbackslash{}itshape&style of the quotation part\\
+translation style&macro&\{\}&style of the translation part\\
+dash&macro&\verb!---!&Macro to set the slash before the author's name\\
+\bottomrule
+\end{tabular}
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/epigraph-keys/epigraph-keys.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/epigraph-keys/epigraph-keys.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/epigraph-keys/epigraph-keys.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/epigraph-keys/epigraph-keys.sty	2020-04-23 21:05:50 UTC (rev 54851)
@@ -0,0 +1,145 @@
+% Benjamin McKay 
+% b.mckay at ucc.ie
+% see epigraph-keys.pdf or epigraph-keys.tex for more information.
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{epigraph-keys}[2020/04/22 v1.0 Epigraphs using key values]
+\RequirePackage{enumitem}
+\RequirePackage{pgfkeys}
+\RequirePackage{conditionals}
+\RequirePackage{microtype}
+
+\ProcessOptions\relax
+
+\makeatletter
+{\catcode`\!=8 % funny catcode so ! will be a delimiter
+ \catcode`\Q=3 % funny catcode so Q will be a delimiter
+\long\gdef\given#1{88\fi\Ifbl at nk#1QQQ\empty!}
+\long\gdef\blank#1{88\fi\Ifbl at nk#1QQ..!}% if null or spaces
+\long\gdef\nil#1{\IfN at Ught#1* {#1}!}% if null
+\long\gdef\IfN at Ught#1 #2!{\blank{#2}}
+\long\gdef\Ifbl at nk#1#2Q#3!{\ifx#3}% same as above
+}
+\makeatother
+
+% The expression \if\expblank{...} x \else y \if gives x when ... expands out to be blank space.
+\def\expblank{\expandafter\blank\expandafter}
+\def\expgiven{\expandafter\given\expandafter}
+\def\expnil{\expandafter\nil\expandafter}
+\def\beforeepigraphskip{0pt}
+\def\afterepigraphskip{\baselineskip}
+\def\epigraphtextindent{2cm}
+\def\epigraphauthorsourceindent{1.5cm}
+\def\epigraphtextwidth{\linewidth}
+\def\epigraphstyle{\small}
+\def\epigraphdash{---}
+\def\epigraphquotefont{\itshape}
+\def\epigraphtranslationfont{}
+
+\pgfkeys{
+	/epigraph/.is family, 
+	/epigraph,
+	default/.style = {
+		author = {}, 
+		source = {}, 
+		etc = {}, 
+		translation = {},
+		},
+	author/.store in = \epigraphauthor,
+	source/.store in = \epigraphsource,
+	etc/.store in = \epigraphetc,
+	translation/.store in = \epigraphtranslation,
+	before skip/.store in = \beforeepigraphskip,
+	before skip/.default = 0pt,
+	after skip/.store in = \afterepigraphskip,
+	after skip/.default = \baselineskip,
+	text indent/.store in = \epigraphtextindent,
+	text indent/.default = 2cm,
+	author and source indent/.store in = \epigraphauthorsourceindent,
+	author and source indent/.default = 1.5cm,
+	width/.store in = \epigraphtextwidth,
+	width/.default = \linewidth,
+	style/.store in = \epigraphstyle,
+	style/.default = \small,
+	dash/.store in = \epigraphdash,
+	dash/.default = ---,
+	quote style/.store in = \epigraphquotefont,
+	quote style/.default = {},
+	translation style/.store in = \epigraphtranslationfont,
+	translation style/.default = {},
+}
+
+\ifdefined\epigraph\else\xdef\epigraph{}\fi
+\renewcommand{\epigraph}[2][]{
+	\pgfkeys{/epigraph,default,#1}
+	\epigraphstyle\vspace{\beforeepigraphskip}
+	\begin{enumerate}[leftmargin=\epigraphtextindent]
+		\item[]
+		{%%
+		\epigraphquotefont{}%
+		\begin{minipage}{\epigraphtextwidth}%
+			#2%
+		\end{minipage}%
+		}%%
+		\if\expblank{\epigraphtranslation}
+		\else
+  			\item[]
+			{%
+			\epigraphtranslationfont%
+			{%%%%
+			\begin{minipage}{\epigraphtextwidth}%
+				\epigraphtranslation%
+			\end{minipage}
+			}%%%%
+			}%
+		\fi
+		\if\expblank{\epigraphauthor}
+			\if\expblank{\epigraphsource}
+				\if\expblank{\epigraphetc}
+				\else\epigraphetc
+				\fi
+			\else
+				\begin{enumerate}[leftmargin=\epigraphauthorsourceindent]%
+					\item[\epigraphdash]%
+					{%%
+					\smallerSmallCapsTracking{}\textsc{\epigraphsource}
+					}%%
+					\if\expblank{\epigraphetc}%
+					\else{}, \epigraphetc
+					\fi
+				\end{enumerate}
+			\fi
+		\else
+			\begin{enumerate}[leftmargin=\epigraphauthorsourceindent]%
+				\item[\epigraphdash] \epigraphauthor \\
+				\if\expblank{\epigraphsource}%
+					\if\expblank{\epigraphetc}%
+					\else\epigraphetc%
+					\fi%
+				\else%
+					\begingroup
+      				\smallerSmallCapsTracking{}\textsc{\epigraphsource}%
+					\endgroup
+			      	\if\expblank{\epigraphetc}%
+			      	\else%
+			      		\begingroup%
+			      		, \epigraphetc
+			      		\endgroup
+      				\fi
+				\fi
+			\end{enumerate}
+		\fi
+	\end{enumerate}
+	\vspace{\afterepigraphskip}
+	\par\noindent
+}
+
+\newcommand{\smallerSmallCapsTracking}%
+{%
+\SetTracking{encoding={*}, shape=sc}{20}%
+}%
+
+\ifdefined\epigraphs\else\xdef\epigraphs{}\fi
+\renewenvironment{epigraphs}{\begin{enumerate}}{\end{enumerate}}
+\ifdefined\qitem\else\xdef\qitem{}\fi
+\renewcommand{\qitem}[2][]{\item[]\epigraph[#1]{#2}}
+


Property changes on: trunk/Master/texmf-dist/tex/latex/epigraph-keys/epigraph-keys.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2020-04-23 21:05:10 UTC (rev 54850)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2020-04-23 21:05:50 UTC (rev 54851)
@@ -268,7 +268,7 @@
     endnotes endnotes-hy endnotesj endofproofwd
     engpron engrec engtlc enigma enotez
     enumitem enumitem-zref envbig environ envlab
-    epigrafica epigram epigraph epiolmec eplain
+    epigrafica epigram epigraph epigraph-keys epiolmec eplain
     epsdice epsf epsf-dvipdfmx epsincl epslatex-fr
     epspdfconversion epstopdf epstopdf-pkg
     eqell eqexpl eqlist eqnalign eqname eqnarray eqnnumwarn eqparbox

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2020-04-23 21:05:10 UTC (rev 54850)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2020-04-23 21:05:50 UTC (rev 54851)
@@ -382,6 +382,7 @@
 depend environ
 depend envlab
 depend epigraph
+depend epigraph-keys
 depend epiolmec
 depend eqell
 depend eqlist

Added: trunk/Master/tlpkg/tlpsrc/epigraph-keys.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.