emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Should comments break paragraphs?


From: Andreas Leha
Subject: Re: [O] Should comments break paragraphs?
Date: Tue, 16 Jul 2013 10:19:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Rainer M Krug <address@hidden> writes:

> Nicolas Goaziou <address@hidden> writes:
>
>> Hello,
>>
>> Rainer M Krug <address@hidden> writes:
>>
>>> I see comments as "entities which do not have any impact on the final
>>> product". 
>>>
>>> If you regard the org file as the final product, then I
>>> completely agree (I use org mainly for literate programming, and I don't
>>> use any comments unless in linger code blocks, but that is not in
>>> org). But if I use org for writing e.g. presentations in beamer, I might 
>>> want
>>> to add comments which should not be on the product (slides, article,
>>> handout, ...) but which contain info in the org file.
>>>
>>> So we are talking different levels here.
>>
>> Comments do not alter the final product: they are ignored during export.
>> But there are places where you cannot have comments, at all. If we look
>> at the following example, similar to OP's:
>>
>>   Some text
>>   # comment
>>   Some other text
>>
>> comment do not split the paragraph: there were two paragraphs since the
>> beginning (but still no spoon). It's only disturbing if you think
>> comments can be inserted within paragraphs, which is not the case.
>
> I think I see what you mean: if the comment would not be there, the text
> would look as follow:
>
> ,----
> | Some text
> | 
> | Some other text
> `----
>
> for the exporter. So the comment here
>
> ,----
> | Some text
> | # comment
> | Some other text
> `----
>
> is ignored, but not the empty line resulting - is this correct? I think
> the confusion is that comments in org are between comment lines and
> inline comments in this regard. 
>

In that case, I guess some confusion might come from LaTeX, for example,
where also the newline is ignored by the comment, s.t. in LaTeX 
,----
| Some text
| % comment
| Some other text
`----
is interpreted as
,----
| Some text
| Some other text
`----

[...]

IMO, there is no 'feature' in the 'paragraph breaking' comments in
org.  But I understand that it is quite hard to change that behaviour.


Regards,
Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]