For the following Org file:

  #+OPTIONS: H:0 toc:nil

  * Item 1
  ** Item 1a
  ** Item 1b
  * @@comment: comment for Item 2@@

  Item 2

  * Item 3

the relevant part of the pdflatex exported tex file (C-c C-e l p) is:


   \begin{enumerate}
   \item Item 1
   \label{sec:org182a564}
   \begin{enumerate}
   \item Item 1a
   \label{sec:org2c0f529}
   \item Item 1b
   \label{sec:org2180f8c}
   \end{enumerate}
   \item 
   \label{sec:org5fdd267}

   Item 2

   \item Item 3
   \label{sec:orged57fe1}
   \end{enumerate}

which is wrong: on the generated pdf file, there is no number before 'Item
2' while the numbers 2 and 3 are superimposed before 'Item 3'.

I thus learned that (if I understand correctly what I read) there should
not be a blank line after an \item, though it often does not create any
problem.  Here it seems tied to the presence of the enumerate list in 'Item
1' *and* the absence of blank line after the '\end{enumerate}' (inserting
one there saves the day.

Anyway, does the above Org file violate some Org rule?  If not, then I was
hoping there might be somme room for improvement in the export process,
like suppressing the blank line before 'Item 2'?

Regards.

PS: I realize that '@@comment' does not appear in the manual; this feels
wrong to me.  Was it removed?  It is still here, though:
https://orgmode.org/quickstart.html

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | [email protected]
5 rue René Descartes                 | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France     | bureau 110, ancien bât.

Reply via email to