On Mon, Apr 15, 2013 at 2:47 PM, Sebastien Vauban <wxhgmqzgw...@spammotel.com> wrote: > Dear Eric, > > Eric Schulte wrote: >> John Hendy <jw.he...@gmail.com> writes: >>> On Fri, Apr 12, 2013 at 5:24 PM, Eric Schulte <schulte.e...@gmail.com> >>> wrote: >>>> John Hendy <jw.he...@gmail.com> writes: >> >> Use :wrap org if your code block produces raw org. E.g., >> >> #+begin_src sh :results output :wrap org >> cat <<EOF >> | a | b | >> |---+---| >> | 1 | 2 | >> EOF >> #+end_src >> >> #+RESULTS: >> #+BEGIN_org >> | a | b | >> |---+---| >> | 1 | 2 | >> #+END_org > > Playing a bit with the above code, removing `:results output' to see what > would happen, I'm amazed by the results: > > #+begin_src sh :wrap org > cat <<EOF > | a | b | > |---+---| > | 1 | 2 | > EOF > #+end_src > > #+results: > #+BEGIN_org > | | | a | | | b | | > | | ---+--- | | | | | | > | | | 1 | | | 2 | | > #+END_org > > Is it expected?
Seems so: http://orgmode.org/worg/org-contrib/babel/header-args.html That's the example from that page and without adding =verbatim= to the list of =:results= args, it does that. As a similar inquiry to behavior, what is the expected output of simply: #+begin_results stuff #+end_results If I use :wrap with no arguments, I get blocks like that, and the same LaTeX error as I do for =:wrap org= (even though I know I shouldn't use that). Just curious what the use-case would be for :wrap with no args? ! LaTeX Error: Environment results undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.33 \begin{results} (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/wasysym/uwasy.fd) (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/base/ulasy.fd) (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/amsfonts/umsa.fd) (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/amsfonts/umsb.fd) ! LaTeX Error: \begin{document} ended by \end{results}. Best regards, John > > Best regards, > Seb > > -- > Sebastien Vauban > >