Skip to content
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
Closed

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

matteosecli opened this issue Feb 4, 2018 · 1 comment

Comments

@matteosecli
Copy link
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
Copy link
Owner

Indeed; fixed now; thanks for the report!

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

No branches or pull requests

3 participants