Skip to content

Add additional documentation for LaTeX PDFs#2806

Open
Songtech-0912 wants to merge 1 commit into
jupyter-book:mainfrom
Songtech-0912:addto-latex-docs
Open

Add additional documentation for LaTeX PDFs#2806
Songtech-0912 wants to merge 1 commit into
jupyter-book:mainfrom
Songtech-0912:addto-latex-docs

Conversation

@Songtech-0912
Copy link
Copy Markdown

This adds additional information regarding the table of contents structure of LaTeX PDF exports, fixing unexpected behavior where LaTeX pdfs show section numbers as "0.X.Y" in the table of contents. For more information, see myst-templates/plain_latex_book#4, where this PR came from.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 9, 2026

⚠️ No Changeset found

Latest commit: 50f0a22

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Apr 9, 2026
@schmoelder
Copy link
Copy Markdown

Very nice to see that this is being addressed. Thanks a lot!

For reference, these two issues seem to be related:

@cycomachead
Copy link
Copy Markdown

Thank you! This is very helpful for a book project I am working on!

Just musing... It would be great if we could find a way to them keep the regular toc and the PDF export ones in sync, but I've moved all this config to separate yaml files:

extends:
  - toc.yml
  - toc_pdf.yml
  - toc_pdf_alternates.yml

This will at least make diff'ing the list of files a little easier over time. :)

@agoose77
Copy link
Copy Markdown
Contributor

agoose77 commented May 1, 2026

Thank you! This is very helpful for a book project I am working on!

Just musing... It would be great if we could find a way to them keep the regular toc and the PDF export ones in sync, but I've moved all this config to separate yaml files:

extends:
  - toc.yml
  - toc_pdf.yml
  - toc_pdf_alternates.yml

This will at least make diff'ing the list of files a little easier over time. :)

I agree with this point — we would like to give this some design thought!

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants