question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add page numbers on the TOC

See original GitHub issue

I believe it should be possible to do it in JavaScript once Paged.js process is completed using data-page-number attribute.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
djenckscommented, May 20, 2020

There’s now a “tutorial” how to do this: https://www.pagedjs.org/posts/2020-02-19-toc/

With our class names, this adds the page numbers:

.toc a::after,
.toc2 a::after {
  content: "p. " target-counter(attr(href), page);
  float: right;
}

I haven’t got Julie’s imitation leader to work yet.

0reactions
Mogzttercommented, Aug 27, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add page numbers and a table of contents to Word ...
The first thing everyone should add is a page number. In the 'Header & Footer' section of the Insert ribbon, click the Page...
Read more >
Page numbers and table of contents | Student's digital skills
To add page numbers to your document, select the Insert tab on the ribbon, find the Header & Footer group and select Page...
Read more >
How to Add Text to the Page Numbers in the Table of ...
1. Click the cursor on the page number to add text to. · 2. Type the text, such as “page” in the space...
Read more >
Instructions on formatting a document with page numbers ...
Put your cursor under the words "TABLE OF CONTENTS" that you typed. · Choose "insert" from the menu, and then choose "reference". ·...
Read more >
Page Numbering and Table of Contents using MS Word
Once in the header (or footer), click on “Page Numbers” to view the pull-down menu that provides the various choices for page numbering....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found