From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] Latex export of lists (was Re: Problem with BEGIN_SRC export-as-latex and FORTRAN code) Date: Tue, 21 Jun 2011 23:13:57 +0200 Message-ID: <87r56mrip6.fsf@gmail.com> References: <87aadbyzmg.fsf@ucl.ac.uk> <87aadb5a8f.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ8Gr-0004RM-Ea for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 17:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ8Go-0002Gy-Qq for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 17:14:05 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:55706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ8Go-0002Gc-Ac for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 17:14:02 -0400 Received: by wwi18 with SMTP id 18so659651wwi.0 for ; Tue, 21 Jun 2011 14:14:00 -0700 (PDT) In-Reply-To: <87aadb5a8f.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 21 Jun 2011 19:07:44 +0100") 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 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 Goaziou