Thread
:
mktoc.pl: create table of contents in HTML file
View Single Post
03-03-2013, 11:14 AM
#
3
SBT
Fanatic
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Apropos toc's...
... a one-liner I find useful if I mess around with the NCX file. It renumbers the items in it if you've added/removed/moved items around:
Code:
awk 'BEGIN{n=1}{sub(/playOrder="[0-9]+"/,"playOrder=\""(n)"\"",$0) && n++ ;print}' toc.ncx
SBT
View Public Profile
Find More Posts by SBT
Track Posts by SBT via RSS