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 <nickpap...@gmail.com> 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/