Skip to content

Commit 01c11b0

Browse files
committed
Add more space for the citations labels in HTML outputs
The citations labels of the bibliography are badly aligned for the html and singlehtml output formats (see issue #128). Add a custom CSS and use it to adjust the margin. We visually tailor the setting for citations labels of 8 characters maximum, which corresponds to the LaTeX formatter's setting. Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
1 parent 41a5816 commit 01c11b0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/_static/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* We need a bit more space for our citations labels. */
2+
div.citation > p {
3+
margin-left: 7em;
4+
}

source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
# Add any paths that contain custom static files (such as style sheets) here,
100100
# relative to this directory. They are copied after the builtin static files,
101101
# so a file named "default.css" will overwrite the builtin "default.css".
102-
# html_static_path = ['_static']
102+
html_static_path = ['_static']
103103

104104

105105
# -- Options for HTMLHelp output ------------------------------------------

0 commit comments

Comments
 (0)