I figured it out:
(setq org-latex-custom-lang-environments
'((python "pyconsole")))
And of course \usepackage{pythontex} somewhere.
This is really nice. Now the Org buffer behaves as before, but the
exported LaTeX has the python code appear as if it were run right there
in an interacti
Hi Chuck,
On 2014-05-08 at 12:17, Charles Berry wrote:
>> I'd like the python code blocks to behave just as they do now, but if I
>> have set (setq org-latex-listings 'pythontex) instead of (setq
>> org-latex-listings 'minted), then instead of wrapping python code blocks
>> with:
>>
>> \begin{mi
Ken Mankoff gmail.com> writes:
>
>
> I'd like to add support for PythonTeX to Org Babel
> https://github.com/gpoore/pythontex
>
> The motivation is that PythonTeX is a better literate environment than
> just Org + Babel, because it can print results inline just like an
> interactive Python se
I'd like to add support for PythonTeX to Org Babel
https://github.com/gpoore/pythontex
The motivation is that PythonTeX is a better literate environment than
just Org + Babel, because it can print results inline just like an
interactive Python session, instead of all the code followed by all the