From ec46063fc63de6ebabb9179ed9bdc01eb514abc0 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 14 Jan 2019 08:39:55 +0000 Subject: [PATCH] Works on blockquote styling --- pandoc/templates/fellowship.latex | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/pandoc/templates/fellowship.latex b/pandoc/templates/fellowship.latex index 7cb01474..8e285592 100644 --- a/pandoc/templates/fellowship.latex +++ b/pandoc/templates/fellowship.latex @@ -421,10 +421,30 @@ $endif$ \usepackage{framed} -\let\oldquote\quote -\let\oldendquote\endquote -\def\quote{\leftbar \oldquote} -\def\endquote{\oldendquote\endleftbar} +% \let\oldquote\quote +% \let\oldendquote\endquote +% \def\quote{\leftbar \oldquote} +% \def\endquote{\oldendquote\endleftbar} + +\newlength{\leftbarwidth} +\setlength{\leftbarwidth}{3pt} +\newlength{\leftbarsep} +\setlength{\leftbarsep}{5pt} + +\newcommand*{\leftbarcolorcmd}{\color{leftbarcolor}}% as a command to be more flexible +\colorlet{leftbarcolor}{fplgreen} + +\renewenvironment{leftbar}{% + \def\FrameCommand{{\leftbarcolorcmd{\vrule width \leftbarwidth\relax\hspace {\leftbarsep}}}}% + \MakeFramed {\advance \hsize -\width \FrameRestore }% +}{% + \endMakeFramed +} + +\renewenvironment{quote} +{\vspace{7pt} \leftbar\list{}{\rightmargin\leftmargin}% +\item\vspace{-5pt}\relax} + {\endlist\endleftbar} \begin{document}