Skip to content

Commit 04fc7fe

Browse files
committed
fix(titletoc): use \partname instead of hardcoded Part
Signed-off-by: Jonas Dujava <[email protected]>
1 parent d8ff6a9 commit 04fc7fe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

preamble/layout/titles.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
%% Part title (page) formatting
1919
\titleformat{\part}[display]
2020
{\thispagestyle{empty}\sffamily}
21-
{\LARGE Part~\Romanbar{\thepart}}
21+
{\LARGE \partname~\Romanbar{\thepart}}
2222
{0.2em}{\fontsize{30pt}{36pt}\selectfont\bfseries}
2323

2424
%%% Chapter title formatting

preamble/layout/toc.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747

4848
%% part entries in TOC are centered, bigger, and without page number
4949
\titlecontents{part}[2em]{\addvspace{3ex}\filcenter} % centered part title
50-
{\small Part~\thecontentslabel\\*[-0.2ex]\Large\bfseries}{\Large\bfseries}
50+
{\small \partname~\thecontentslabel\\*[-0.2ex]\Large\bfseries}{\Large\bfseries}
5151
{}[\addvspace{1.0ex}] % without page number
5252

0 commit comments

Comments
 (0)