tex4ebook TOC にサブセクションを含めるにはどうすればいいですか?

tex4ebook TOC にサブセクションを含めるにはどうすればいいですか?

この MWE は TOC のサブセクションを適切に表示しますが、tex4ebook -l main.texTOC を含む epub を作成すると、セクションと同じ深さしか表示されません。サブセクションを含めるにはどうすればよいですか?

\documentclass{memoir}

\begin{document}

\tableofcontents

\chapter{Chapter 1}
\section{Section 1.1}
\subsection{Subsection 1.1.1}
\subsection{Subsection 1.1.2}
\section{Section 1.2}
\subsection{Subsection 1.2.1}

\chapter{Chapter 2}
\section{Section 2.1}
\subsection{Subsection 2.1.1}
\subsection{Subsection 2.1.2}
\section{Section 2.2}
\subsection{Subsection 2.2.1}
\subsection{Subsection 2.2.2}

\end{document}

ここに画像の説明を入力してください

答え1

これは、TOC にも含まれない Memoir の動作と一致しています\subsections。次の設定ファイルで要求できます。

\Preamble{xhtml}
\Configure{tableofcontents*}{chapter,section,subsection}
\begin{document}
\EndPreamble

この設定は、 にリストされるセクション コマンドの種類をリストします\tableofcontents。セクションのスター付きバージョンを含める場合は、likeなどのプレフィックスを使用しますlikesection

結果の TOC は次のようになります。

ここに画像の説明を入力してください

サブセクション番号は Memoir によって TOC メタデータに保存されないため、含まれていないことに注意してください。

関連情報