white on black title. Make page 1 show up in PDF sidebar

This commit is contained in:
Axel Kohlmeyer
2024-08-19 16:26:38 -04:00
parent 7b62f82428
commit 4c6beb548e
2 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,12 @@
LAMMPS Documentation (|version| version)
########################################
**About LAMMPS and this manual**
.. toctree::
:caption: About LAMMPS
****************************
About LAMMPS and this manual
****************************
LAMMPS stands for **L**\ arge-scale **A**\ tomic/**M**\ olecular
**M**\ assively **P**\ arallel **S**\ imulator.

View File

@ -301,6 +301,7 @@ latex_elements = {
'preamble': r'''
\usepackage{xcolor}
\setcounter{tocdepth}{2}
\setcounter{part}{-1}
\renewcommand{\sfdefault}{ptm} % Use Times New Roman font for \textrm
\renewcommand{\sfdefault}{phv} % Use Helvetica font for \textsf
\usepackage[columns=1]{idxlayout} % create index with only one column
@ -339,6 +340,7 @@ latex_elements = {
% Make ToC number fields wider to accommodate sections with >= 100 subsections
% or >= 10 subsections with >= 10 subsubsections
\makeatletter
% reset chapter counter for each part
\@addtoreset{chapter}{part}
\renewcommand*{\sphinxtableofcontentshook}{%
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{3.1em}}