Skip to content

Commit 3179dc1

Browse files
committed
fix British English figure and table captions
1 parent c08cde9 commit 3179dc1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/source/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@
265265

266266
# Additional stuff for the LaTeX preamble.
267267
'preamble': preamble + r'''
268+
\addto\captionsbritish{\renewcommand{\figurename}{Figure\@{} }}
269+
\def\fnum@figure{\figurename\thefigure{}}
270+
271+
\addto\captionsbritish{\renewcommand{\tablename}{Table }}
272+
\def\fnum@table{\tablename\thetable{}}
273+
268274
\usepackage[margin=10pt,font=small,labelfont=bf]{caption}
269275
\setcounter{MaxMatrixCols}{20}
270276
\usepackage{tcolorbox}
@@ -391,7 +397,6 @@
391397

392398
numfig = True
393399

394-
395400
# Example configuration for intersphinx: refer to the Python standard library.
396401
intersphinx_mapping = {
397402
'python': ('https://docs.python.org/3/', None),

0 commit comments

Comments
 (0)