From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Problem with BEGIN_SRC export-as-latex and FORTRAN code Date: Tue, 21 Jun 2011 09:51:50 -0700 Message-ID: <877h8fkqjy.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ5LA-0006rE-1k for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 14:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ5L8-0002M4-42 for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 14:06:19 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:48675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ5L7-0002Ls-Om for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 14:06:17 -0400 Received: by pvc12 with SMTP id 12so18872pvc.0 for ; Tue, 21 Jun 2011 11:06:16 -0700 (PDT) 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 Hi Nick, I think the solution to your problem may be simply to update to the latest version of Org-mode, I get the following output when exporting your example to LaTeX. --8<---------------cut here---------------start------------->8--- \section{Test} \label{sec-1} \begin{enumerate} \item Try and use \texttt{org-export-as-latex}, it will produce error segment. \begin{verbatim} MODULE m_global_precision IMPLICIT NONE INTEGER, PARAMETER :: SP = SELECTED_REAL_KIND(6,30) END MODULE m_global_precision \end{verbatim} \end{enumerate} \section{Test2} \label{sec-2} \begin{enumerate} \item This will not fail as it is not in an enumerate environment. \end{enumerate} \begin{verbatim} MODULE m_global_precision IMPLICIT NONE INTEGER, PARAMETER :: SP = SELECTED_REAL_KIND(6,30) END MODULE m_global_precision \end{verbatim} --8<---------------cut here---------------end--------------->8--- I'm using Org-mode version 7.5 (release_7.5.414.g56de5) Best -- Eric Nick Papior Andersen writes: > Hi all > > I have attached a sample which produces a wrong output in my org-mode > installation. Both the output TeX file and the org file are attached. > > The wrong doing happens when i do "org-export-as-latex". The output tex file > has removed a certain string length (i counted 23) and inserted some from > the code below as a description in the item field (which it shouldn't do as > we are in an enumerate environment). > > I have version 7.01g, i have had troubles to install the newest 7.5 org-mode > version so i cant say if it does the same there. But i have searched the > changes list for export on latex source. It didn't seem to have had any > changes as far as this bug. > > I know that i probably shouldn't denote FORTRAN code as C code, but is that > internally differentiated? > > Kind regards Nick > -- Eric Schulte http://cs.unm.edu/~eschulte/