[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] latex export of source code in lists
From: |
Andreas Leha |
Subject: |
[Orgmode] latex export of source code in lists |
Date: |
Thu, 09 Dec 2010 10:38:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Iceowl/1.0b1 Icedove/3.0.10 |
Hi all,
(how) can I have source code block in lists not breaking the latex
exported list?
Example:
* Test
1) this is the first item
#+srcname: code
#+begin_src R :tangle no :export code
print("some code")
#+end_src
which has some code
2) this is the second item
This results in
\section{Test}
\label{sec-1}
\begin{enumerate}
\item this is the first item
\end{enumerate}
\lstset{language=R}
\begin{lstlisting}
print("some code")
\end{lstlisting}
which has some code
\begin{enumerate}
\item this is the second item
\end{enumerate}
While I expect this:
\section{Test}
\label{sec-1}
\begin{enumerate}
\item this is the first item
\lstset{language=R}
\begin{lstlisting}
print("some code")
\end{lstlisting}
which has some code
\item this is the second item
\end{enumerate}
Thanks,
Andreas
smime.p7s
Description: S/MIME Cryptographic Signature
- [Orgmode] latex export of source code in lists,
Andreas Leha <=