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

Numbering parts? #187

Open
rauschma opened this issue Jul 12, 2018 · 3 comments
Open

Numbering parts? #187

rauschma opened this issue Jul 12, 2018 · 3 comments
Milestone

Comments

@rauschma
Copy link

Is there a way to number parts in HTML via pandoc-crossref? LaTeX handles this properly for PDFs.

At the moment, pandoc-crossref numbers sections etc. like this:

1. First part
1.1. First chapter
1.2. Second chapter
1.2.1. A section
1.2.2. Another section
2. Second part
2.1. Third chapter

What you want for HTML:

I. First part
1. First chapter
2. Second chapter
2.1. A section
2.2. Another section
II. Second part
3. Third chapter

Notably:

  • Numbering of chapters is not restarted after a new part.
  • Part numbers don’t appear in chapter numbers and section numbers.
@lierdakil
Copy link
Owner

Perhaps with v0.4.0.0 (currently in alpha).

@lierdakil
Copy link
Owner

Nope. It could be, but I didn't get to it yet.

@lierdakil lierdakil added this to the v0.4 milestone Nov 24, 2018
@lierdakil
Copy link
Owner

A quick update, the latest commits on any-prefix branch allow for this with a bit of set-up. See https://github.com/lierdakil/pandoc-crossref/tree/any-prefix/test/m2m/numbering-parts for an example. Not released in any capacity at the time of writing, but if you want to try it out, find an automated build for commit ec33f99 (or later) on any-prefix branch (see README for more details). Fair warning though, LaTeX output on any-prefix branch is broken currently, and it might be a while 'till I fix it.

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

2 participants