From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [bug] Latex export of lists (was Re: Problem with BEGIN_SRC export-as-latex and FORTRAN code) Date: Wed, 22 Jun 2011 09:43:48 +0100 Message-ID: <871uymfe7v.fsf@ucl.ac.uk> References: <87aadbyzmg.fsf@ucl.ac.uk> <87aadb5a8f.fsf@ucl.ac.uk> <87r56mrip6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZJ2R-0004QE-OW for emacs-orgmode@gnu.org; Wed, 22 Jun 2011 04:43:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZJ2Q-0006ed-Ne for emacs-orgmode@gnu.org; Wed, 22 Jun 2011 04:43:55 -0400 Received: from vscane-a2.ucl.ac.uk ([144.82.108.42]:33993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZJ2Q-0006eL-JU for emacs-orgmode@gnu.org; Wed, 22 Jun 2011 04:43:54 -0400 In-Reply-To: <87r56mrip6.fsf@gmail.com> (Nicolas Goaziou's message of "Tue, 21 Jun 2011 23:13:57 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Papior Andersen Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Eric S Fraga writes: > >> Very true. I missed this. Given the indentation, the listing should >> indeed belong to the enumeration item. >> >> Nicolas? > > If I export this: > > ----- > * Test > 1. Try and use =org-export-as-latex=, it will produce error segment. > #+BEGIN_SRC C > MODULE m_global_precision > IMPLICIT NONE > INTEGER, PARAMETER :: SP = SELECTED_REAL_KIND(6,30) > END MODULE m_global_precision > #+END_SRC > ----- > > I get this: > > #+begin_src latex > \section{Test} > \label{sec-1} > > > \begin{enumerate} > \item Try and use \texttt{org-export-as-latex}, it will produce error segment. > \lstset{language=C} > \begin{lstlisting} > MODULE m_global_precision > IMPLICIT NONE > INTEGER, PARAMETER :: SP = SELECTED_REAL_KIND(6,30) > END MODULE m_global_precision > \end{lstlisting} > \end{enumerate} > #+end_src > > It looks ok, or am I missing something? > > Regards, Nicolas, It does look okay but that's not what I get; same input, I get: --8<---------------cut here---------------start------------->8--- \section{Test} \label{sec-1} \begin{enumerate} \item Try and use \verb=org-export-as-latex=, it will produce error segment. \end{enumerate} \lstset{language=C} \begin{lstlisting} MODULE m_global_precision IMPLICIT NONE INTEGER, PARAMETER :: SP = SELECTED_REAL_KIND(6,30) END MODULE m_global_precision \end{lstlisting} ORG-LIST-END-MARKER \end{document} --8<---------------cut here---------------end--------------->8--- I guess I have some variable set that you do not or vice versa. For instance, I have org-list-end-marker set to 'both. Are there any variable settings you need to know to figure out why my behaviour is different? I'm at git head. Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.418.ge860.dirty)