From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Gershman" Subject: Disable org-babel-inline-result-wrap per inline code? Date: Tue, 20 Sep 2016 23:07:56 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------C82C3B464C580A7243541220" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmahU-0002V0-7j for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 02:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmahP-0006Nu-FN for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 02:08:07 -0400 Received: from dagertech.net ([64.183.98.170]:47110 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmahP-0006NG-54 for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 02:08:03 -0400 Received: from [192.168.133.106] (unknown [192.168.176.200]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.dagertech.net (Postfix) with ESMTPSA id 66513A0252 for ; Tue, 20 Sep 2016 23:08:02 -0700 (PDT) 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.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------C82C3B464C580A7243541220 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Forgive my several questions/emails. I'm working on getting lecture notes ready for next week and thus am running into several questions with Org HTML Export. Unfortunately, my searches typically result in manual page hits, but my problems seem to be a-typical. So... Given the following line: * Date: src_perl[:results output :exports none]{print 2016;} The result '2016' is surrounded by '=' so that HTML export results in tags surrounding the '2016'. According to the manual section 14.5, 'org-babel-inline-result-wrap' defines how the results are wrapped. Executing a /(print /org-babel-inline-result-wrap), I get: {blank line} =%s= =%s= so I attempted the following: * Date: src_emacs-lisp[:exports none]{(setq org-babel-inline-result-wrap "")} src_perl[:results output :exports none]{print 2016;} src_emacs-lisp[:exports none]{(setq org-babel-inline-result-wrap "=%s=")} in the hopes of temporarily disabling the '=' wrapping. Sadly no luck. I don't want to globally, or even for the whole buffer turn off the '=%s='...just on a case-by-case basis. Any ideas? --dag P.S. In reality, 2016 will be replaced with a function call which takes an integer and converts it to a full blown date based on a starting point. Thus, the headlines will result in "Date: September 20, 2016" where each date is different based on the integer. This will allow me to set the starting date at the top of the .org file and all the date-based headlines can be computed. --------------C82C3B464C580A7243541220 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Forgive my several questions/emails.=C2=A0 I'm working on getting lec= ture notes ready for next week and thus am running into several questions with Org HTML Export.=C2=A0 Unfortunately, my searches typically resu= lt in manual page hits, but my problems seem to be a-typical.=C2=A0 So..= .

Given the following line:

* Date: src_perl[:results output :exports none]{print 2016;}

The result '2016' is surrounded by '=3D' so that HTML export results in <code></code> tags surrounding
the '2016'.=C2=A0

According to the manual section 14.5, 'org-babel-inline-result-wrap' defines how the results are wrapped.=C2=A0 Executing a (print = org-babel-inline-result-wrap), I get:

=C2=A0=C2=A0=C2=A0 {blank line}
=C2=A0=C2=A0=C2=A0 =3D%s=3D
=C2=A0=C2=A0=C2=A0 =3D%s=3D

so I attempted the following:

=C2=A0 * Date: src_emacs-lisp[:exports none]{(setq org-babel-inline-result-wrap "")} src_perl[:results output :exports none]{print 2016;} src_emacs-lisp[:exports none]{(setq org-babel-inline-result-wrap "=3D%s=3D")}

in the hopes of temporarily disabling the '=3D' wrapping.=C2=A0 Sadly= no luck.

I don't want to globally, or even for the whole buffer turn off the '=3D%s=3D'...just on a case-by-case basis.

Any ideas?

--dag

P.S.=C2=A0 In reality, 2016 will be replaced with a function call whi= ch takes an integer and converts it to a full blown date based on a starting point.=C2=A0 Thus, the headlines will result in "Date: Septe= mber 20, 2016" where each date is different based on the integer.=C2=A0 Th= is will allow me to set the starting date at the top of the .org file and all the date-based headlines can be computed.
--------------C82C3B464C580A7243541220--