Debian Codegraph @

texmf-dist/doc/latex/epigraph-keys/epigraph-keys.tex

raw
1 \documentclass{article}
2 \title{The {\texttt{epigraph-keys}} package}
3 \author{Benjamin McKay}
4 \date{\today}
5 \usepackage[utf8]{inputenc}
6 \usepackage[T1]{fontenc}
7 \usepackage{lmodern}
8 \usepackage{fixmath}
9 \usepackage[mathscr]{eucal}
10 \usepackage[%
11 activate={true,nocompatibility},%
12 final,%
13 tracking=true,%
14 kerning=true,%
15 spacing=true,%
16 factor=1100,%
17 stretch=10,%
18 shrink=10]{microtype}
19 \microtypecontext{spacing=nonfrench}
20 \usepackage{siunitx}
21 \usepackage{epigraph-keys}
22 \usepackage{tcolorbox}
23 \usepackage{fancyvrb-ex}
24 \tcbuselibrary{listings}
25 \usepackage{xcolor}
26 \usepackage{booktabs}
27 \usepackage{colortbl}
28 \arrayrulecolor{gray!30}
29 \definecolor{outerrule}{gray}{0.8}
30 \usepackage{pgfornament}
31 \begin{document}
32 \maketitle
33 \tableofcontents
34 \abstract{The \texttt{epigraph-keys} package lays out epigraphs: quotations across a page, usually to open or close a chapter.
35 It is intended as a simple replacement for the more sophisticated \texttt{epigraphs} package.}
36 \section{Introduction}
37 \epigraph[author={Ludwig Wittgenstein}, source={Culture and Value}]{With my full philosophical rucksack I can only climb slowly up the mountain of mathematics.}
38 Load with \verb!\usepackage{epigraph-keys}!.
39 \begin{tcblisting}{title={Simple example}}
40 \epigraph[
41 author={Ludwig Wittgenstein},
42 source={Culture and Value}]
43 {With my full philosophical rucksack I can only
44 climb slowly up the mountain of mathematics.}
45 \end{tcblisting}
46 \begin{tcblisting}{title={Example with translation}}
47 \epigraph[
48 author={Paul Painlev\'e},
49 source={Analyse des travaux scientifiques},
50 translation={The shortest and easiest path
51 between any two facts about the real domain
52 passes through the complex domain.}]
53 {Entre deux v\'erit\'es du domaine r\'eel, le
54 chemin le plus facile et le plus court passe
55 bien souvent par le domaine complexe.}
56 \end{tcblisting}
57 \newpage
58 \section{Lots of epigraphs}
59 If you want to lay out a series of epigraphs, use an \verb!epigraphs! environment:
60 \begin{Example}[%
61 frame=single,%
62 framesep=3mm,%
63 framerule=2mm,%
64 rulecolor=\color{outerrule}]
65 \begin{epigraphs}
66 \qitem[
67 author={Hermann Weyl},
68 source={Invariants},
69 etc={Duke Mathematical Journal 5,
70 1939, 489--502}]
71 {In these days the angel of topology and the
72 devil of abstract algebra fight for the soul
73 of every individual discipline of
74 mathematics.}
75 \qitem[
76 author={Goethe},
77 source={Faust}]
78 {--- and so who are you, after all? \\
79 --- I am part of the power which forever
80 wills evil and forever works good.}
81 \qitem[
82 source={Quran},
83 etc={2:1/2:6-2:10 \emph{The Cow}}]
84 {This Book is not to be doubted.}
85 \end{epigraphs}
86 \end{Example}
87 \newpage
88 \section{Options}
89 \begin{tcblisting}{title={Options}}
90 \pgfkeys{
91 /epigraph,
92 after skip={1cm},
93 before skip={0mm},
94 author and source indent=2cm,
95 text indent=1cm,
96 width=\linewidth,
97 style={\large},
98 quote style={\itshape},
99 translation style={},
100 dash={\tikz[baseline=-.3em]
101 \node[inner sep=0pt]
102 {\pgfornament[width=1cm]{11}};}
103 }
104 \epigraph[
105 author={Goethe},
106 source={Faust}]
107 {\begin{enumerate}
108 \item[---]
109 and so who are you, after all?
110 \item[---]
111 I am part of the power which
112 forever wills evil and forever
113 works good.
114 \end{enumerate}}
115 \end{tcblisting}
116 \begin{tabular}{@{}>{\ttfamily}l>{}l>{\ttfamily}l<{}p{4.5cm}@{}}
117 \toprule
118 \multicolumn{1}{@{}l}{Option}&Type&\multicolumn{1}{l}{Default}&Significance\\
119 \cmidrule(r){1-1}\cmidrule(lr){2-2}\cmidrule(lr){3-3}\cmidrule(l){4-4}
120 author&text&&author's name\\
121 source&text&&source of quotation\\
122 etc&text&&additional information on the source or author of the quotation\\
123 after skip&length&\textbackslash{}baselineskip&vertical space below epigraph\\
124 before skip&length&0mm&vertical space above epigraph\\
125 author and source indent&length&1.5cm&Indentation before author's name and source of quotation\\
126 text indent&length&2cm&Indentation before quote\\
127 width&length&\textbackslash{}linewidth&width of the entire epigraph\\
128 style&macro&\textbackslash{}small&style of the entire epigraph\\
129 quote style&macro&\textbackslash{}itshape&style of the quotation part\\
130 translation style&macro&\{\}&style of the translation part\\
131 dash&macro&\verb!---!&Macro to set the slash before the author's name\\
132 \bottomrule
133 \end{tabular}
134 \end{document}