New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
matteosecli opened this Issue Feb 4, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@matteosecli
Contributor

matteosecli commented Feb 4, 2018

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

@dginev dginev added this to the LaTeXML-0.8.3 milestone Feb 4, 2018

@brucemiller

This comment has been minimized.

Owner

brucemiller commented Feb 6, 2018

Indeed; fixed now; thanks for the report!

@brucemiller brucemiller closed this Feb 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment