Re: [O] Finer control over LaTeX export

2013-12-31 Thread Nick Dokos
Uwe Ziegenhagen writes: > 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 > > > How can I define how Org Mode is exporting these snippet

Re: [O] Finer control over LaTeX export

2013-12-31 Thread Nicolas Goaziou
Hello, Uwe Ziegenhagen writes: [...] > 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 This is wrong. You ended your block with #+end_src python but it should be #+end_src > The whole verbatim stuff

[O] Finer control over LaTeX export

2013-12-31 Thread Uwe Ziegenhagen
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 :r