From e6e06e15ff0b96d99d85655fb395e17693a980bd Mon Sep 17 00:00:00 2001 From: Dominik Becker Date: Thu, 15 Apr 2021 13:18:23 +0200 Subject: [PATCH] #52 better design for quote environment --- config.tex | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config.tex b/config.tex index 36e3144..f265f37 100644 --- a/config.tex +++ b/config.tex @@ -81,6 +81,9 @@ % Für die Befehle \toprule, \midrule und \bottomrule, z.B. in Tabellen \usepackage{booktabs} +\usepackage[table]{xcolor} +\definecolor{tableshadow}{RGB}{240,240,240} + % Erlaubt die Benutzung von Farben \usepackage{color} @@ -229,3 +232,18 @@ % Pandoc Integration \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} + +% schickere \quotes +\usepackage{framed} +\renewenvironment{quote}{ + \FrameSep3pt + \def\FrameCommand{% + \hspace{12pt} % defaults to font size + {\color{black}\vrule width \heavyrulewidth}% + {\color{tableshadow}\vrule width 3pt}% + \colorbox{tableshadow}% + } + \vspace{-.25\topsep} + \MakeFramed{\advance\hsize-\width\FrameRestore} +} +{\endMakeFramed \vspace{-.75\topsep}}