From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: babel comma escape with :wrap Date: Sat, 08 Feb 2020 09:18:27 +0100 Message-ID: <87pnepze3w.fsf@nicolasgoaziou.fr> References: <87imkhikym.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50700) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0LK7-000874-JL for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 03:18:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0LK6-0007aQ-Ms for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 03:18:43 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:40641) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j0LK6-0007Ze-H8 for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 03:18:42 -0500 In-Reply-To: <87imkhikym.fsf@gmail.com> (Matt Huszagh's message of "Fri, 07 Feb 2020 23:42:25 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Matt Huszagh Cc: "emacs-orgmode@gnu.org" Hello, Matt Huszagh 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