I'm working on converting my css from a browser based processor to prince, and I've run into some confusion.
When setting declarations on h elements (h1-h6) when planning to use baseline snapping, do you only set the font and line-height sizes, and ignore/remove top and bottom margins? Should line heights be set to exactly the font size, or should that also be larger like the p line height. (honestly, if something wrapped in say, a h2 isn't going to wrap to a second line, when using snap to baseline, it probably doesn't matter, but right now I have a few headings that will wrap)
Related question for images/figures, set left and right margins or padding, but leave top and bottom as 0 or undeclared/removed from the css?
Final (for now) baseline question. As I fine tune my layout, I'd like to visualize the baseline. I found a few old forum posts from before baseline snapping was implemented that uses a background image (apparently svg worked best) for doing this, is this still the best way, or is there now a switch in prince that I can set to generate such a visualization in my pdf?
(I'm working in linux, so no gui available to live preview)
When setting declarations on h elements (h1-h6) when planning to use baseline snapping, do you only set the font and line-height sizes, and ignore/remove top and bottom margins? Should line heights be set to exactly the font size, or should that also be larger like the p line height. (honestly, if something wrapped in say, a h2 isn't going to wrap to a second line, when using snap to baseline, it probably doesn't matter, but right now I have a few headings that will wrap)
Related question for images/figures, set left and right margins or padding, but leave top and bottom as 0 or undeclared/removed from the css?
Final (for now) baseline question. As I fine tune my layout, I'd like to visualize the baseline. I found a few old forum posts from before baseline snapping was implemented that uses a background image (apparently svg worked best) for doing this, is this still the best way, or is there now a switch in prince that I can set to generate such a visualization in my pdf?
(I'm working in linux, so no gui available to live preview)