From 9370dccac9e30a542377fac55beaef252d2f4490 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Sun, 7 Feb 2021 12:19:22 +0100 Subject: [PATCH 1/2] Move Latex style setup into conf.py --- docs/conf.py | 13 +++++++++++++ docs/intro/philosophy.rst | 16 ---------------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e4d0f3f86..55e2161b0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -282,6 +282,19 @@ 'papersize': 'a4paper', 'pointsize': '11pt', 'figure_align': 'H', + 'sphinxsetup': r""" +VerbatimColor={named}{OldLace},% +TitleColor={named}{DarkGoldenrod},% +hintBorderColor={named}{LightCoral},% +attentionborder=3pt,% +attentionBorderColor={named}{Crimson},% +attentionBgColor={named}{FloralWhite},% +noteborder=2pt,% +noteBorderColor={named}{Orange},% +cautionborder=3pt,% +cautionBorderColor={named}{Cyan},% +cautionBgColor={named}{LightCyan}% +""", 'maketitle': r""" \begin{titlepage} \raggedleft diff --git a/docs/intro/philosophy.rst b/docs/intro/philosophy.rst index 1202afe00..e74da40d5 100644 --- a/docs/intro/philosophy.rst +++ b/docs/intro/philosophy.rst @@ -3,22 +3,6 @@ A brief overview of DataLad --------------------------- -.. raw:: latex - - \begingroup - \sphinxsetup{% - VerbatimColor={named}{OldLace}, - TitleColor={named}{DarkGoldenrod}, - hintBorderColor={named}{LightCoral}, - attentionborder=3pt, - attentionBorderColor={named}{Crimson}, - attentionBgColor={named}{FloralWhite}, - noteborder=2pt, - noteBorderColor={named}{Orange}, - cautionborder=3pt, - cautionBorderColor={named}{Cyan}, - cautionBgColor={named}{LightCyan}} - There can be numerous reasons why you ended up with this handbook in front of you -- We do not know who you are, or why you are here. You could have any background, any amount of previous experience with From d8d1ca79e3eb4f8cf916164be672a9ddcca7730a Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Sun, 7 Feb 2021 13:05:16 +0100 Subject: [PATCH 2/2] Remove frames from code blocks in PDF, and change highlight color This change is highly subjective, but I think it looks better without the vertical lines. Especially in code blocks the go across a page break. --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 55e2161b0..16063f2c7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -283,7 +283,9 @@ 'pointsize': '11pt', 'figure_align': 'H', 'sphinxsetup': r""" -VerbatimColor={named}{OldLace},% +verbatimwithframe=false,% +VerbatimColor={rgb}{1,1,1},% +VerbatimHighlightColor={named}{OldLace},% TitleColor={named}{DarkGoldenrod},% hintBorderColor={named}{LightCoral},% attentionborder=3pt,%