03-11-2013, 02:44 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: none
|
bibliography entries from LyX
Hi there,
I'm not particularly good at CSS or XHTML, have the following problem: I export my book with LyX to XHTML. Bibliography labels show as [number] entry by means of :before :after inside the class spec: <style type="text/css"> div.bibtexentry { margin-left: 2em; text-indent: -2em; } span.bibtexlabel:before{ content: "["; } span.bibtexlabel:after{ content: "] "; } </style> <span class='bibtexlabel'>1</span><span>entry</span> However, when Calibre imports this, it seems to ignore the span class, as the entries are <span>1</span><span>entry</span> and so show as numberentry not really good looking. Is there anything I can do so Calibre gets the correct formatting for these labels? Yes, I can pre-process the XHTML, that is my last resort. Any ideas ? BTW, hello everyone, I'm new ;^) |
03-12-2013, 12:25 AM | #2 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Post a full example and I'll take a look. But note that you really should not rely on "bore, :after and content, their support in book readers is likely to be very spotty, not to mention, completely absent in all formats other than epub.
|
Advert | |
|
03-13-2013, 09:47 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: none
|
Hi Kovid,
attached is a small fragment with some references, the XHTML (packed by Calibre into a zip) and the EPUB output from Calibre Thanks for your advice, I'll see with the LyX guys if I can remove those tags and output something more ebook friendly |
03-14-2013, 01:58 PM | #4 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'll look at it in a few days, my todo list is backing up a bit at the moment.
|
03-21-2013, 05:08 AM | #5 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Fix will be in next release.
|
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bibliography Conversion Issues - ePub to Mobi | Daaf | Conversion | 2 | 02-26-2012 04:02 PM |
Creating a Bibliography - .doc or .txt | BTooze | Amazon Kindle | 2 | 10-13-2010 11:47 AM |
Lyx -> Calibre -> Kindle graphics | shorero | Calibre | 0 | 06-05-2010 08:40 PM |
Making PDFs for the iliad using LaTeX (with LyX) | Antartica | iRex | 17 | 05-20-2010 01:35 PM |