Page number in table of contents

Daniel Blomdahl's Avatar

Daniel Blomdahl

11 May, 2016 10:57 AM


Marked is awesome! Just was what I was looking for. BUT.. When it comes to the TOC it seems like that Marked falls a bit short, or it is very unclear in the documentation.

What I want to have is just the simple functionality where page numbers are shown next to the heading in the TOC.

1. First Section 1 ...........................1
2. Second Section ........................ 2
2.1 Sub Section ............................ 4

So the page numbers are aligned to the right.
And also have the ability to check "start page count after TOC". So that if I have a frontpage, then the TOC, that way, the "actual content" starts the page count.

  1. Support Staff 1 Posted by Brett on 11 May, 2016 03:02 PM

    Brett's Avatar


  2. 2 Posted by Daniel Blomdahl on 11 May, 2016 09:45 PM

    Daniel Blomdahl's Avatar

    Not quite sure how to respond to that.. ;)

  3. Support Staff 3 Posted by Brett on 12 May, 2016 03:56 AM

    Brett's Avatar

    That's definitely not the response I sent. Let me dig the original up and paste it :).

  4. Support Staff 4 Posted by Brett on 12 May, 2016 03:58 AM

    Brett's Avatar

    Original response:

    As I've mentioned in other threads, the current PDF system has no way of
    knowing what page any item occurs on. The most it can do is determine
    the current page being converted, not its contents. Thus, adjusting the
    page to start numbering after the first page would be possible, but
    adding page numbers to the TOC is not.

    This may change if I'm able to convert the PDF export from using the
    system print features to a more custom (and manually generated) process.

  5. 5 Posted by Daniel Blomdahl on 12 May, 2016 06:36 AM

    Daniel Blomdahl's Avatar

    Sorry for the duplicated question, after my quick search in the forum I did not find this answer.

    Thank you for replying so quick. Which file types can keep track of page number in the TOC? Would be nice to have that info in the focus..? Because if there is a file type that can handle it, well then I could just convert that type to pdf myself..?

  6. 6 Posted by Daniel Blomdahl on 12 May, 2016 06:38 AM

    Daniel Blomdahl's Avatar

    focus = docs
    (Mobile autocorrect..)

  7. Support Staff 7 Posted by Brett on 12 May, 2016 03:26 PM

    Brett's Avatar

    Paginated PDF is the only option that even has defined pages.



Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac