From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: duplicated output in inline code block exports Date: Sat, 07 Jul 2018 12:59:32 +0200 Message-ID: <87wou7joq3.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbkwG-0006Kd-QN for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 06:59:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbkwC-0007E1-21 for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 06:59:40 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:33039) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fbkwB-0007DF-S0 for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 06:59:35 -0400 In-Reply-To: (Charles Berry's message of "Thu, 5 Jul 2018 19:14:31 +0000") 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: "Berry, Charles" Cc: William Denton , emacs-org Hello, "Berry, Charles" writes: >> On Jul 5, 2018, at 10:46 AM, William Denton wrote: >> >> Here's a very simple R command in an inline code block: >> >> # ----- >> What is 1 + 1? src_R{1+1} {{{results(=2=)}}} >> # ----- >> >> Exporting this to PDF we get: >> >> # ----- >> What is 1 + 1? 2 2 > > Or exporting to to latex > > What is 1 + 1? \texttt{2} \texttt{2} > > The results macro gets initialized by `org-macro-initialize-templates' > which is run run before babel, the macro returns `=2=', and babel does > not remove this when it adds the result again. Fixed. Thank you. > Also, shouldn't the docstring for `org-macro-initialize-templates' > mention that "n", "author", "email", "keyword", "results", and "title" > get set? Fixed. Thank you. Regards, -- Nicolas Goaziou