emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Error with :wrap org in babel and 8.0-pre
Date: Mon, 15 Apr 2013 16:38:42 -0500	[thread overview]
Message-ID: <CA+M2ft-qw3Y67PBx8ptXXoZZ+E57_XL621kyC0DCUT9R99P_og@mail.gmail.com> (raw)
In-Reply-To: <86bo9fmv84.fsf@somewhere.org>

On Mon, Apr 15, 2013 at 2:47 PM, Sebastien Vauban
<wxhgmqzgwmuf@spammotel.com> wrote:
> Dear Eric,
>
> Eric Schulte wrote:
>> John Hendy <jw.hendy@gmail.com> writes:
>>> On Fri, Apr 12, 2013 at 5:24 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
>>>> John Hendy <jw.hendy@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
>
>

      reply	other threads:[~2013-04-15 21:38 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11 22:45 Error with :wrap org in babel and 8.0-pre John Hendy
2013-04-12 22:24 ` Eric Schulte
2013-04-15 17:59   ` John Hendy
2013-04-15 18:12     ` Eric Schulte
2013-04-15 19:35       ` John Hendy
2013-04-15 19:48         ` Andreas Leha
2013-04-15 19:52           ` John Hendy
2013-04-15 19:56         ` Nicolas Goaziou
2013-04-15 20:05           ` John Hendy
2013-04-15 20:15             ` Nicolas Goaziou
2013-04-15 20:28               ` Eric Schulte
2013-04-15 20:51                 ` Sebastien Vauban
2013-04-15 21:29                   ` John Hendy
2013-04-15 21:44                     ` Sebastien Vauban
2013-04-15 21:51                       ` John Hendy
2013-04-15 21:24                 ` John Hendy
2013-04-15 21:42                   ` Sebastien Vauban
2013-04-15 22:38                   ` Eric Schulte
2013-04-15 22:48                     ` John Hendy
2013-04-15 23:27                       ` Eric Schulte
2013-04-15 23:56                         ` Thomas S. Dye
2013-04-16  2:37                           ` Eric Schulte
2013-04-16  7:58                         ` Sebastien Vauban
2013-04-16  8:23                         ` Christian Moe
2013-04-16 14:58                           ` John Hendy
2013-04-16 15:24                             ` Eric Schulte
2013-04-16 21:06                             ` Christian Moe
2013-04-15 20:09           ` Sebastien Vauban
2013-04-15 20:22             ` Nicolas Goaziou
2013-04-15 19:56         ` Eric Schulte
2013-04-15 19:47       ` Sebastien Vauban
2013-04-15 21:38         ` John Hendy [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft-qw3Y67PBx8ptXXoZZ+E57_XL621kyC0DCUT9R99P_og@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).