From 7165d69517e817d90f5badeabb7f64a46f0b6c1a Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 1 Mar 2019 16:34:43 +0100 Subject: [PATCH] doc: add figure caption top margin also rename Fig. to Figure and add colon between Figure and the text: (Figure X : Something) instead of (Fig. X Something) Still one space to many, but better than no colon or margin at all fixes #121 --- source/_static/css/theme_overrides.css | 6 ++++++ source/conf.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/source/_static/css/theme_overrides.css b/source/_static/css/theme_overrides.css index 3b7cf19..027694d 100644 --- a/source/_static/css/theme_overrides.css +++ b/source/_static/css/theme_overrides.css @@ -3,3 +3,9 @@ div.disclaimer { font-size: 10px; font-style: italic; } +div.figure p.caption { + padding-top: 0.8em; +} +span.caption-number:after { + content: ": "; + } diff --git a/source/conf.py b/source/conf.py index fd04be6..f8414db 100644 --- a/source/conf.py +++ b/source/conf.py @@ -97,6 +97,12 @@ todo_include_todos = True # Figure numbering numfig = True +numfig_format = { + 'figure': 'Figure %s', + 'table': 'Table %s', + 'code-block': 'Listing %s', + 'section': 'Section %s' +} # -- Autodoc options ------------------------------------------------------