![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 317
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
line breaks in pdf TOC
I have converted an epub file to pdf with calibre's converter. The TOC on the end has some lengthy <h1> entries which are so long that they must wrap lines. The page number shows correctly on the second line. The line sometimes breaks at awkward places, even sometimes creates hyphens. I am searching for a method to break the line where I want it to break. I tried several things, but nothing seems to work, including editing of the nav.xhtml and toc.ncx and tweaking the 'edit the toc' feature. Of course, it is possible to truncate the <h1> but sometimes the great length makes good sense. For example: "This is the main Chapter Heading (it is about the following things)" Best regards, Pop
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
toc titles are plain text so you cannot control line breaking. The ebst you can do is try to substitute nonbreak spaces for spaces everywhere except where you want to allow breaks, but this may not work.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 317
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
Thanks for your reply. I did try substituting nonbreaking spaces for regular spaces, but the method does not work. Nonbreaking spaces are ignored as such and are treated as regular breaking spaces. To be sure, this is not in any way at all an important problem. I enjoy learning the ins-and-outs of things by tweaking them. Usually, I end up winning "2nd Runner Up" prize at the Tweak-a-thon. But it's a great way to learn. Best regards, Pop
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF to MOBI line breaks problem | kunkel321 | Conversion | 3 | 05-27-2016 05:28 PM |
Line breaks when converting to pdf | maffia | Conversion | 2 | 05-05-2015 03:27 AM |
PDF has random line breaks | bsabiston | Conversion | 1 | 09-20-2013 06:43 PM |
PDF italics yeilds line breaks | badgoodDeb | Conversion | 3 | 01-12-2012 05:51 PM |
Ignoring line breaks in pdf file | mike_bike_kite | Calibre | 0 | 06-14-2010 09:37 AM |