Skip to content

Commit

Permalink
doc: add pdf bookmark with chapter number support
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Aug 19, 2024
1 parent 117895b commit 514047d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
'inputenc': '',
'babel': '',
'preamble': r'''
\usepackage{hyperref}
\usepackage{xeCJK}
\usepackage{indentfirst}
\setlength{\parindent}{2em}
Expand All @@ -145,6 +146,7 @@
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
''',
'extraclassoptions': ',bookmarksnumbered',
}

rst_prolog = """
Expand Down

0 comments on commit 514047d

Please sign in to comment.