![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2013
Device: Sony PRS-T2
|
epub → pdf conversion: remove a section
Dear all,
I am trying to master EPUB → PDF possibilities of Calibre and I hope that somebody can help me. Original epub contains the section "Notes" with the following contents: Code:
<body name="notes"> <title> <p>Примечания</p> </title> <section id="n_1"> <title> <p>1</p> </title> <p>Неофициальное название Лондонского Сити.</p> </section> </body> Code:
<a l:href="#n_1" type="note">[1]</a> Another question related to i18n of PDF output: when I enable "Add a printable Table of Contents at the end", Calibre generates a nice table of contents but with title "Table of Contents". How to customize it so the title reads "Оглавление"? In general I wonder where I can read more about HTML classes used for PDF conversion? Few (e.g. .calibre-pdf-toc) are mentioned in Printable Table of Contents but I think there are more. As far as I can see, HTMLZ does not use such (or similar) classes. Are they all documented somewhere? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,255
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use extra css
#n_1 { display: none } And the option nam,e Title for ToC in the PDF output section of the conversion dialog |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 922
Karma: 15576314
Join Date: Jan 2013
Location: Ely, Cambridgeshire, UK
Device: Kindle Oasis 3, Kindle Oasis 1
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 | ||
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2013
Device: Sony PRS-T2
|
Not very practical if I have 30 of them. And it did not work.
No way to render them at the bottom of the page? Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,255
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2013
Device: Sony PRS-T2
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,255
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works fine for me. As I said you are doing something wrong. Most likely you dont realize that re-converting a previously converted book uses the settings from the previous conversion over the global preferences. http://manual.calibre-ebook.com/conv...for-conversion
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2013
Device: Sony PRS-T2
|
You're right. It seems like I have missed that point – thanks for noting that. Indeed, there is an effect if I use CSS #n_1, #n_2, #n_3 { display: none; }. But I still see the section "Примечания" – I would like to hide it together with entry in TOC. I tried CSS body[name="notes"] { display: none; } but it didn't work out. What I did wrong?
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2013
Device: Sony PRS-T2
|
I think there is something wrong there. I have removed the books from the list – I believe the per-book conversion options should be removed. I have selected FB2 file(s) and pressed "Convert books → Bulk convert". "Notes" section is still there after conversion. kovidgoyal, could you please share the PDF file that you've got and CSS which you have applied?
|
![]() |
![]() |
![]() |
Tags |
epub css xpath |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) | SJC-Caron | ePub | 18 | 04-21-2016 11:10 AM |
PDF->EPUB only displays 'Front section' | bsmart | Conversion | 2 | 05-14-2011 05:44 AM |
epub to pdf conversion: blank page inserted before any section | Nicoo | Calibre | 0 | 12-06-2009 06:10 PM |
remove tabs at pdf conversion | automated | Calibre | 0 | 02-01-2009 02:45 AM |