gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

add number of page to the table of contents

Open piranna opened this issue 12 years ago • 19 comments

When adding the table of contents on the PDF, it's being shown only the title of the chapters and sections and links to them, but it's not shown the page number. Add it so when printing the PDF is possible to know what's the page to look for.

piranna avatar Nov 23 '14 20:11 piranna

How could I be able to add this feature myself? For the on-screen PDF view this is not a bad sense although there are the in-document links, too...

piranna avatar Mar 07 '15 13:03 piranna

This is an actual problem because when the PDF is printed the links of course won't work, so a setting in the config. file to choose to show the page number would be nice.

The data is there, by changing the html of the compiled summary one could add a tag containing the page number and with CSS move it to the side.

I could try to do that but I don't have much time and don't really know where this part is handled in the codebase.

fazo96 avatar Jun 03 '15 17:06 fazo96

A similar problem happens with the links, that should be added as foot notes.

piranna avatar Jun 03 '15 19:06 piranna

1+ this is absolutely needed for print.

bweir avatar Mar 02 '16 06:03 bweir

Has anyone found a solution to this ? Are you using gitbook 2.6.7 ?

borisschapira avatar Mar 18 '16 13:03 borisschapira

Are you using gitbook 2.6.7 ?

Yes, I'm always using the latest one, and this bug is still there :-(

piranna avatar Mar 18 '16 13:03 piranna

Any update on this? My thesis director has dictated that it's mandatory I must have this on the thesis... :-/

piranna avatar Apr 03 '16 23:04 piranna

It's hard to imagine that this feature isn't already there. I've never seen a table of contents in my life that didn't have page numbering. =(

bweir avatar Apr 04 '16 00:04 bweir

I want to prepare my book for print but it doesn't make much sense to print without page numbers in the toc

ChappIO avatar Jun 28 '16 06:06 ChappIO

Has anyone found a workaround or plugin for that?

bronestly avatar Jul 25 '16 10:07 bronestly

Not me. Maybe if we make enough noise someone involved in the project will provide the official stance on this!

bweir avatar Jul 25 '16 10:07 bweir

+1!

yeasy avatar Aug 06 '16 04:08 yeasy

This issue was opened on Nov 23, 2014, is there any progress?

I really need this. Without it Gitbook is no longer an option.

If anyone has any pointers on how/where this can be fixed, please share so I can have a look and maybe help fix it.

rabevers avatar Aug 15 '16 11:08 rabevers

Just want to add a bump. This would be REALLY USEFUL!

gdbooks avatar Sep 29 '16 21:09 gdbooks

This one is extremely high on my wish list too. lwchkg has been able to do so by changing the pdf generation from calibre to wkhtmltopdf.

I got it working but it took some effort, Take a look at. https://github.com/GitbookIO/gitbook/issues/1223 and https://github.com/GitbookIO/gitbook/issues/1470

rabevers avatar Sep 29 '16 21:09 rabevers

Great work!

yeasy avatar Sep 30 '16 02:09 yeasy

+1

qgeissmann avatar Jul 30 '17 15:07 qgeissmann

过了这么多年了,gitbook还是没解决这个问题,为什么首页的目录页码不对,而且标题也不是自定义的。

daniellauyu avatar Aug 09 '18 14:08 daniellauyu

I need this too, please consider to implement. Thanks developers.

manhnt9 avatar Jan 08 '19 10:01 manhnt9