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

Wrong position of TOC in PDF outline when using ":toc: macro" #1361

Closed
alexandre-frey opened this issue Oct 31, 2019 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@alexandre-frey
Copy link

  • define ":toc: macro" to manually control the location of the toc
  • place the toc at the end of the document with "toc::[]"
  • convert to PDF using asciidoctor-pdf 1.5.0-beta.7
  • look at generated PDF outline: the TOC still appears after the title rather than at the end of the document

image

reproducer:
example.zip

@mojavelinux
Copy link
Member

Good catch! It certainly makes sense that the outline would reflect the location of the table of contents in the document. I hadn't thought of that.

@mojavelinux mojavelinux self-assigned this Nov 8, 2019
@mojavelinux mojavelinux added the bug label Nov 8, 2019
@mojavelinux mojavelinux added this to the v1.5.0 milestone Nov 8, 2019
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Nov 10, 2019
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Nov 10, 2019
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Nov 10, 2019
@mojavelinux mojavelinux modified the milestones: v1.5.0, v1.5.0.beta.8 Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants