|
From: | Maxim Nikulin |
Subject: | Re: Comments break up a paragraph when writing one-setence-per-line |
Date: | Wed, 21 Jul 2021 21:48:37 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 19/07/2021 21:03, Eric S Fraga wrote:
On Friday, 16 Jul 2021 at 12:06, William Denton wrote:People who write one-sentence-per-line, have you had this problem, and if so how did you handle it?If I will be exporting to LaTeX, I do the following: --8<---------------cut here---------------start------------->8--- One sentence is here. #+latex: % a sentence that has been commented out. The third sentence is here and should be in the same paragraph as the first. --8<---------------cut here---------------end--------------->8--- The LaTeX directive is a LaTeX comment (% at the start) and so replaces what would otherwise be a blank line causing a new paragraph to start. It may not be pretty but it works just fine.
It is at least fragile. HTML export results in separate paragraphs: <p> One sentence is here. </p> <p>The third sentence is here and should be in the same paragraph as the first.</p>
https://orgmode.org/worg/dev/org-syntax.html#Paragraphs > Empty lines and other elements end paragraphs.I am unsure, but "#+latex:" probably belongs to "Keywords" that are elements, so it should end a paragraph. If such interpretation is correct than either LaTeX exporter has a bug or syntax description should be justified.
[Prev in Thread] | Current Thread | [Next in Thread] |