![]() |
#1 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2021
Device: Kindle 2
|
Modifying Indent Sizes in TOC
How can we modify the size of the indent used in the unordered list the TOC creates?
I'm merging a series of 3 books (or volumes) into one. Each volume is divided into parts; each part into chapters. I'm using calibre 5.24 on ebooks I read with a Kindle 2, and the size of the indents knocks the names of the chapters farther to the right than I like. Surely someone's covered this before, but I've looked and not found it. So just point me in the correct direction to find the info and I'll be grateful. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
I'd use the editor for modifying the code.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
I like to use inline TOCs
There's inline_toc_styles.css in AppData\Roaming\calibre\resources\templates\inline _toc_styles.css That allows some customization Code:
li > ul {margin-bottom: 1em; } ul.level1 { padding-left: 0; font-weight: normal; font-size: 100%; margin-top: 1em; margin-left: 0; text-decoration: none; } ul.level2 { font-size: 100%; } ul.level3 { font-style: normal; } li { margin-top: 1em; list-style-type: none; } a { text-decoration: none; color: black; } a:hover { border-top-style: solid; border-bottom-style: solid; padding-bottom: 2px; padding-top: 1px; border-top-width: 2px; border-bottom-width: 2px; color: white; background-color: black; } h2 { page-break-before: always; page-break-after: avoid; text-indent: 0; text-align: center; margin-top: 0; margin-bottom: 1em; font-size: 2.5em; font-weight: bold; font-style: normal; font-family: sans-serif; } |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2021
Device: Kindle 2
|
Thanks, Phossler and sirtel, for the suggestions. I'll try them. I like in-line tables of contents too, however I use the TOC you reach with a button the most often. Especially when I'm deep into a multi-volume work. I use it to visualize the mental geography the author is laying out for readers.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Generated TOC Indent too big | qq67 | Conversion | 3 | 07-21-2014 01:24 PM |
Cover sizes vs. cover file sizes | writerkit | Calibre | 1 | 05-13-2013 10:32 PM |
Modifying Identifiers | Fabe | Sigil | 6 | 01-11-2012 07:46 AM |
Help modifying LRFTools | Demented | LRF | 0 | 08-30-2009 02:03 PM |
Modifying Headsets | iggypop | Lounge | 0 | 03-05-2007 05:31 PM |