Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-02-2022, 03:06 PM   #1
Pargeo
Member
Pargeo began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Dec 2022
Device: Apple iPad
TOC without line numbering?

Hello,

I use Sigil to fine tune epubs created from MS Word documents using Pages.
Normally I create an epub without cover and without TOC & embedded fonts and then add this in Sigil if needed.
The only thing I cannot achieve is to create an 'inline' TOC (i.e. a TOC that appears as a normal text in front / at the end of the book - not sure I've used a correct term) without line numbers.
The TOC accessible through a TOC button does not contain any numbers, but the former does contain them and I don't want them! How can I make Sigil not to insert them in its TOC, without using ol list-style-type: none code in the stylesheet (I may need an ol working properly in my book).
Pargeo is offline   Reply With Quote
Old 12-02-2022, 03:19 PM   #2
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 808
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
I don't know if I understand your problem correctly, but you probably want to use the
Tools > Table Of Contents > Create HTML from Table Of Contents menu.
BeckyEbook is offline   Reply With Quote
Advert
Old 12-02-2022, 03:31 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,341
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Pargeo View Post
Hello,

I use Sigil to fine tune epubs created from MS Word documents using Pages.
Normally I create an epub without cover and without TOC & embedded fonts and then add this in Sigil if needed.
The only thing I cannot achieve is to create an 'inline' TOC (i.e. a TOC that appears as a normal text in front / at the end of the book - not sure I've used a correct term) without line numbers.
The TOC accessible through a TOC button does not contain any numbers, but the former does contain them and I don't want them! How can I make Sigil not to insert them in its TOC, without using ol list-style-type: none code in the stylesheet (I may need an ol working properly in my book).
Sigil's default, empty Epub3 should show you how to style a NAV document (required by epub3 and also required by spec to be a list), so that the numbers are hidden.

Quote:
Originally Posted by Pargeo View Post
without using ol list-style-type: none code in the stylesheet (I may need an ol working properly in my book).
Using "list-style-type: none" is the proper way to do it. There's no reason that it would have to hide the numbers in every ordered list throughout your entire book. That's why Sigil's default is to create a sgc-nav.css file that is only linked to the NAV and not all xhtml files.

You could also inline "list-style-type: none" in the header of the NAV to limit its influence.

Last edited by DiapDealer; 12-02-2022 at 03:34 PM.
DiapDealer is offline   Reply With Quote
Old 12-02-2022, 05:22 PM   #4
Pargeo
Member
Pargeo began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Dec 2022
Device: Apple iPad
Quote:
Originally Posted by DiapDealer View Post
Sigil's default, empty Epub3 should show you how to style a NAV document (required by epub3 and also required by spec to be a list), so that the numbers are hidden.


Using "list-style-type: none" is the proper way to do it. There's no reason that it would have to hide the numbers in every ordered list throughout your entire book. That's why Sigil's default is to create a sgc-nav.css file that is only linked to the NAV and not all xhtml files.

You could also inline "list-style-type: none" in the header of the NAV to limit its influence.
The epubs generated by Pages’ converter don’t contain sgc-nav.css, they only contain one css and all files in it are linked with it. I guess this is not exactly correct. But I guess I can put that ol code in the Toc header.
Thanks a lot!
Pargeo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete an in-line TOC? emstvns Editor 2 03-25-2021 02:54 PM
line breaks in pdf TOC rjwse@aol.com Editor 2 01-29-2021 11:55 AM
Sigil TOC numbering issue ebookscovers Sigil 3 05-28-2019 04:16 PM
Line Numbering possible? James Jesse Editor 5 10-19-2018 01:27 PM


All times are GMT -4. The time now is 12:53 PM.


MobileRead.com is a privately owned, operated and funded community.