Skip to content

Commit 615791d

Browse files
committed
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
1 parent d593831 commit 615791d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/source/_static/css/theme_overrides.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ div.disclaimer {
33
font-size: 10px;
44
font-style: italic;
55
}
6+
div.figure p.caption {
7+
padding-top: 0.8em;
8+
}
9+
span.caption-number:after {
10+
content: ": ";
11+
}

doc/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797

9898
# Figure numbering
9999
numfig = True
100+
numfig_format = {
101+
'figure': 'Figure %s',
102+
'table': 'Table %s',
103+
'code-block': 'Listing %s',
104+
'section': 'Section %s'
105+
}
100106

101107
# -- Autodoc options ------------------------------------------------------
102108

0 commit comments

Comments
 (0)