remove dependency on epigraph. KOMA-script can do that already
authorTobias Pape <tobias@netshed.de>
Fri, 27 Dec 2013 15:02:22 +0000 (16:02 +0100)
committerTobias Pape <tobias@netshed.de>
Sat, 28 Dec 2013 00:23:41 +0000 (01:23 +0100)
src/applied-crypto-hardening.tex

index a899146..45d3112 100644 (file)
 \usepackage{listings}
 \usepackage{longtable}
 
-%% Epigraph patching
-\usepackage{epigraph}
-% \epigraphsize{\small}% Default
-\setlength\epigraphwidth{8cm}
-\setlength\epigraphrule{0pt}
-\usepackage{etoolbox}
-\providecommand{\epitextfont}{\itshape}
-\providecommand{\episourcefont}{}
-\makeatletter
-\patchcmd{\@epitext}{#1}{{\epitextfont #1}}{}{}
-\patchcmd{\@episource}{#1}{{\episourcefont --- #1}}{}{}
-\makeatother
+% Epigraph / dictum
+\renewcommand*{\dictumrule}{}
+\renewcommand*{\dictumauthorformat}[1]{--- #1}
+\newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
+\addtokomafont{dictumtext}{\itshape}
+\setkomafont{dictumauthor}{\normalfont}
+\renewcommand{\dictumwidth}{8cm}