I am trying to add an indent on both side of the text. The indent shows on Scrivener but not on Kindle.
I’ve tried both with and without “Preserve Formatting”
How can I add a right indent that shows on Kindle (and PDF)?
Thanks
I am trying to add an indent on both side of the text. The indent shows on Scrivener but not on Kindle.
I’ve tried both with and without “Preserve Formatting”
How can I add a right indent that shows on Kindle (and PDF)?
Thanks
Pretty much the case that you lose control of margins on Kindle. The devices give the user control over presentation issues.
Have you thought of removing your left and right indents, centring those lines, putting a line-feed, as opposed to an end-of-paragraph, at the end of the first two lines, and then putting “Preserve formatting” over those three lines? Would that not do what you want?
Mr X
Right indents are stripped out when converting to HTML (the core text engine converter does this, all well beneath Scrivener’s level of operation, so Preserve Formatting does nothing), which is what e-books use. The main problem with them is that the way right indent markers work in a word processor are not at all like how they work in HTML and CSS, and going from one method to the other isn’t a precise science.
Excuse the late message but the forum doesn’t email me when someone reply.
Amber thanks. Actually I’ve seen many authors adding a right margin. They have a publisher (i.e. Chris Guillabeau) so maybe they use a different software.
Not sure what you mean
To clarify, CSS has multiple forms of right “indent” control. It is not a matter of the target technology lacking the capability, it is a problem of the mathematics and practicality of converting from a fixed-width page layout oriented form of left-edge ruler calculation as opposed to a dynamically resizing box model that insets from the nearest box edge. One is designed to craft a look with a predictable text block onto sheets of wood pulp all cut to precisely the same size, the other has to adjust depending upon whether you are reading the e-book on a tiny phone screen or a 27" monitor at home, with a 9pt Helvetica or a 48pt Georgia.
If you want to add an indent yourself, that’s no problem. ePub files can be loaded up in an editor like Sigil or Calibre and freely modified. We’re going to be making this easier in the future, as right now HTML classes are defined sequentially, meaning you can’t build a predictable custom stylesheet that you drop into the book after compiling. You can for now locate the class being used for your quotations and adjust the CSS files to include some padding-right or margin-right calls. If all of the quotations use identical formatting, then their CSS block should be unique and identical from one .css file to the next. Thus a global search and replace for the original CSS block in entirety and replacing it with the one that has an indent should do the trick rather simply.
I don’t know what that particular publisher uses, but that’s probably all they are doing (though they probably have automation to produce the ePub starter shell with a much more logical internal construction that what you get from Apple/Qt RTF->HTML converters).
P.S. You can subscribe to a topic via the link in the blue bar at the bottom of the thread, or you can automatically subscribe to every topic you post in by setting Notify me upon replies by default in the User Control Panel, under “Board Preferences”, “Edit posting defaults”.