Make quotes look better in pandoc template
This commit is contained in:
parent
ecb61c58ce
commit
ce5180dd95
1 changed files with 32 additions and 0 deletions
|
@ -348,6 +348,38 @@ $if(logo)$
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\usepackage{framed}
|
||||||
|
|
||||||
|
% \let\oldquote\quote
|
||||||
|
% \let\oldendquote\endquote
|
||||||
|
% \def\quote{\leftbar \oldquote}
|
||||||
|
% \def\endquote{\oldendquote\endleftbar}
|
||||||
|
|
||||||
|
\newlength{\leftbarwidth}
|
||||||
|
\setlength{\leftbarwidth}{5pt}
|
||||||
|
\newlength{\leftbarsep}
|
||||||
|
\setlength{\leftbarsep}{2pt}
|
||||||
|
|
||||||
|
\newcommand*{\leftbarcolorcmd}{\color{leftbarcolor}}% as a command to be more flexible
|
||||||
|
\colorlet{leftbarcolor}{gray}
|
||||||
|
|
||||||
|
\renewenvironment{leftbar}{%
|
||||||
|
\def\FrameCommand{{\leftbarcolorcmd{\vrule width \leftbarwidth\relax\hspace {\leftbarsep}}}}%
|
||||||
|
\MakeFramed {\advance \hsize -\width \FrameRestore }%
|
||||||
|
\noindent
|
||||||
|
}{%
|
||||||
|
\endMakeFramed
|
||||||
|
}
|
||||||
|
|
||||||
|
\renewenvironment{quote}
|
||||||
|
{\vspace{7pt} \leftbar\list{}{\rightmargin\leftmargin}%
|
||||||
|
\item\vspace{-5pt}\relax}
|
||||||
|
{\endlist\endleftbar}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
$if(title)$
|
$if(title)$
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue