From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Matt Huszagh <huszaghmatt@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: babel comma escape with :wrap
Date: Sat, 08 Feb 2020 09:18:27 +0100 [thread overview]
Message-ID: <87pnepze3w.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87imkhikym.fsf@gmail.com> (Matt Huszagh's message of "Fri, 07 Feb 2020 23:42:25 -0800")
Hello,
Matt Huszagh <huszaghmatt@gmail.com> writes:
> There appears to be no way to disable the comma escape when using :wrap
> for a babel source block.
>
> I'm essentially trying to replicate this example from the manual
>
> #+NAME: attr_wrap
> #+BEGIN_SRC sh :var data="" :var width="\\textwidth" :results output
>
> echo "#+ATTR_LATEX: :width $width"
> echo "$data"
> #+END_SRC
>
> #+HEADER: :file /tmp/it.png
> #+BEGIN_SRC dot :post attr_wrap(width="5cm", data=*this*) :results drawer
>
> digraph{
> a -> b;
> b -> c;
> c -> a;
> }
> #+end_src
>
> #+RESULTS:
> :RESULTS:
> #+ATTR_LATEX :width 5cm
> [[file:/tmp/it.png]]
> :END:
>
> But, my result type is a link not a drawer (which are mutually
> exclusive). So, to get the same wrapping effect, I need to use the :wrap
> argument. However, the comma escape negates attr_wrap's effect with this
> code
Could you clarify what you obtain, and what is wrong with it?
Thank you!
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2020-02-08 8:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-08 7:42 babel comma escape with :wrap Matt Huszagh
2020-02-08 8:18 ` Nicolas Goaziou [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pnepze3w.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=huszaghmatt@gmail.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 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.