Skip to content

[bug] Inconsistent chapter numbering in 'book' #941

@matteosecli

Description

@matteosecli

Take a typical 'book.cls' document structure, as the following MWE.tex:

\documentclass{book}
\usepackage[english]{babel}


\begin{document}


\frontmatter
\chapter{Preface}

\mainmatter
\chapter{First Chapter}

\appendix
\chapter{First Appendix}

\backmatter
% References


\end{document}

The result is that the chapters in the the frontmatter are not numbered, while the actual numbering starts in the mainmatter:

Preface
Chapter 1 - First Chapter
Appendix A - First Appendix

It seems that LaTeXML does not get it right. A simple conversion

latexmlc MWE.tex --verbose --format=html5 --destination=MWE.html

gives the following document structure:

Chapter 1 - Preface
Chapter 2 - First Chapter
Appendix A - First Appendix

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions