Nicolas Goaziou <[email protected]> writes:
> Hello,
>
> Eric S Fraga <[email protected]> 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)