"Jacob S. Gordon" <[email protected]> writes:

> On 2026-01-30 04:46, Christian Moe wrote:
>> [email protected] writes:
>>> 1. Item 1
>>>    (a) Item 1a
>>>    (b) Item 1b
>>> 2.
>>>    Item 2
>>> 3. Item 3
>> 
>> Yes, my misunderstanding; I thought that was what you wanted.
>
> Woops, mine too.  I thought the bug was referring to overlapping &
> misplaced list labels, not the joining of subsequent lines to the
> title.
>
>> But I would also expect the same behavior without a blank line after
>> the headline, really, since it is only the text *on* a headline that
>> is part of a headline. So I'm not really sure why the trick that is
>> convenient here -- exporting the next line joined with the numbered
>> list item -- works in LateX export at all. It can cause surprises
>> with regard to punctuation, and it doesn't work in the other
>> backends
>
>> This has surely been discussed somewhere before, and the LaTeX
>> behavior perhaps [should be?] documented, since headlines beyond the
>> first three outline levels are exported to LaTeX as lists.
>
> +1

I think that the problem here is

\item
Some text

being treated by latex as
\item Some text

while

\item

Some text

no so.

If we add something after \item (\relax?), in the spirit of your
examples with non-breaking space, we should get the expected behavior.

In

*
Some text

We *should not* have \item Some text

Alan, why not simply using

* @@comment:...@@ Some text?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to