M-x replace-regexp RET ^ RET your text RET
will add "your text" to the start of every line of an emacs buffer, but how could I do the same to the start of every org-mode paragraph instead, i.e., a text block separated by a hard return?
Yesterday, from this post, I added this
#+HTML_HEAD: <style>p { margin-top: 0px; margin-bottom: 0px; text-indent: 2em; } </style>
to my org-mode buffer for export to html to achieve the "literary style" of paragraphs. However, the text-indent: 2em;
part is interfering with something deep in my ox-tufte, so I suppose I need to just add @@html:      @@
"manually" to the start of every paragraph block as a Plan B ... unless somebody has a better idea...
p
it is putting that 2em in front of everything -- images, footnotes, etc. That might be uncorrectable. Unless there is a way to specify the containing code, i.e., the actual textp
is inside a<div class="outline-text-3" id="text-org7f16d57">
, i.e., numberedoutline-text-#
..<class>
or#<id>
. Google forCSS selectors
.So try adding.outline-text-3 { text-indent: 2em; }
to your CSS file. Untested and most probably wrong - I'm no expert in these things, but that's what I would try first.