[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: babel comma escape with :wrap
From: |
Nicolas Goaziou |
Subject: |
Re: babel comma escape with :wrap |
Date: |
Sat, 08 Feb 2020 09:18:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
Matt Huszagh <address@hidden> 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