commit 0430d223c7af3f7388772b9b896d2a23f10505c7
parent 30d5975a3bde6de3538b7ef4cd902a2316f6c576
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date: Sat, 6 May 2023 20:47:38 -0300
update the block quotes style: fix footer inside block quote
before this commit if you made a footnote inside quoted text the footer
wasn't being renderer properly, the text overlapped the borders.
Diffstat:
M | style.tex | | | 36 | ++++++++++++++++++++++++++++-------- |
1 file changed, 28 insertions(+), 8 deletions(-)
diff --git a/style.tex b/style.tex
@@ -167,14 +167,34 @@ BoldFont = *-Bold,
% nicer chemical figures
\usepackage{chemfig}
-% style block quotes
-\usepackage{framed}
-\usepackage{tcolorbox}
-\let\oldquote=\quote
-\let\endoldquote=\endquote
-\renewenvironment{quote}{\begin{tcolorbox}[top=1em, bottom=1em, left=-1.5em, right=-1.5em]\begin{oldquote}}{\end{oldquote}\end{tcolorbox}}
-% end style block quotes
-
+% change style of quote, see also https://tex.stackexchange.com/a/436253/114857
+\usepackage[most]{tcolorbox}
+
+
+\definecolor{linequote}{RGB}{224,215,188}
+\definecolor{bordercolor}{RGB}{221,221,221}
+% \definecolor{backquote}{RGB}{249,245,233}
+\definecolor{backquote}{RGB}{230,230,230}
+
+% change left border: https://tex.stackexchange.com/a/475716/114857
+% change left margin: https://tex.stackexchange.com/a/457936/114857
+\newtcolorbox{myquote}[1][]{%
+ enhanced,
+ breakable,
+ size=minimal,
+ left=12pt,
+ top=12pt,
+ bottom=12pt,
+ right=12pt,
+ boxrule=1pt,
+ sharp corners=all,
+ colback=backquote,
+ colframe=black,
+ #1}
+
+% redefine quote environment to use the myquote environment, see
+% https://tex.stackexchange.com/a/337587/114857
+\renewenvironment{quote}{\begin{myquote}}{\end{myquote}}
\usepackage{nicefrac,xfrac}
\setlength\footskip{25pt}