From: Uwe Ziegenhagen <ziegenhagen@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Finer control over LaTeX export
Date: Tue, 31 Dec 2013 15:02:06 +0000 (UTC) [thread overview]
Message-ID: <loom.20131231T155755-692@post.gmane.org> (raw)
Hi everyone,
I have short parts of Python code in my org file:
#+begin_src python :results value
def foo(x):
if x>0:
return x+1
else:
return x-1
return foo(590)
#+end_src
#+RESULTS:
: 591
#+begin_src python :results value
return 1+1
#+end_src
#+RESULTS:
: 2
#+begin_src python :results output
print(1+2)
#+end_src
#+RESULTS:
: 3
These get exported to
\#+begin$_{\text{src}}$ python :results output
print(1+2+3+4+5+6+7+8+9+11)
\#+end$_{\text{src}}$ python
\begin{verbatim}
56
\end{verbatim}
\section{{\bfseries\sffamily TODO} Emacs Artikel zur Code-Evaluation}
\label{sec-18}
\begin{verbatim}
def foo(x):
if x>0:
return x+1
else:
return x-1
return foo(590)
\end{verbatim}
\begin{verbatim}
return 1+1
\end{verbatim}
\begin{verbatim}
print(1+2)
\end{verbatim}
How can I define how Org Mode is exporting these snippets?
The whole verbatim stuff is "okay", I'd like to replace that with the
listings package, but the
\#+begin$_{\text{src}}$ python :results output
print(1+2+3+4+5+6+7+8+9+11)
\#+end$_{\text{src}}$ python
requires amsmath just for the \text command, so this is also something I
want to change. Can anyone point me to the correct way of changing it.
Uwe
next reply other threads:[~2013-12-31 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-31 15:02 Uwe Ziegenhagen [this message]
2013-12-31 16:00 ` Finer control over LaTeX export Nicolas Goaziou
2013-12-31 16:38 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20131231T155755-692@post.gmane.org \
--to=ziegenhagen@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.