Am 2019-12-10 um 16:53 schrieb Denis Maier
: Perhaps this is a silly question (excuse my ignorance about the topic): what if you want to add some stylistic touches to your ebooks, such as initials? Or Non-breaking spaces? How about adding, say, a text box with a different background and a smaller font?
Or fine control page numbering, headers, footnotes, ligatures, or the spacing between paragraphs, or center a separator as above? Do you need to modify the generated CSS for that, or would ConTeXt (or Pandoc) allow you to take care of (some of) those things?
Nicola
For Pandoc: Some things can be tweaked with pandoc, but for anything that is a bit more advanced you'll probably need a custom CSS. For special content you can use spans and divs. In your custom CSS you can define how those elements should be rendered. Sounds pretty similar to what Hans wrote in his response. Probably the main questions are if you prefer to work with pandoc markdown or with ConTeXt sources, and if you need additional output formats.
The problem is that custom CSS must be tuned for every single ePub reader (app or device), it’s like the browser wars. Most readers interprete only a strange subset of CSS2, it’s completely unreliable in my (limited) experience. Have a look at https://wiki.contextgarden.net/ePub WRT ePub ot of ConTeXt, also at the old docs; unfortunately I never finished writing these pages, but I must review my ePub workflow soon-ish. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD