tex4ebook
在目录中的每个部分/章节/节等前面添加额外的编号:
1. I First Part
1. 1 First Chapter of Part 1
1. 1.1 Header of Section 1
2. 1.2 Header of Section 2
2. 2 Second Chapter of Part 1
有没有办法可以防止第一个数字显示在目录中,以使其看起来与编译 pdf 一样,即:
I First Part
1 First Chapter of Part 1
1.1 Header of Section 1
1.2 Header of Section 2
2 Second Chapter of Part 1
以下是 MWE:
\documentclass[12pt]{book}
\begin{document}
\tableofcontents
\part{First Part}
\chapter{First Chapter of part 1}
\section{Header of Section 1}
Text within section 1.
\section{Header of Section 2}
Text within section 2.
\chapter{Second Chapter of part 1}
\part{Second Part}
\section{First Chapter of part 2}
Text within part 2.
\end{document}
和配置文件:
\Preamble{xhtml}
\begin{document}
\EndPreamble