[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: duplicated output in inline code block exports
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: duplicated output in inline code block exports |
Date: |
Sat, 07 Jul 2018 12:59:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
"Berry, Charles" <address@hidden> writes:
>> On Jul 5, 2018, at 10:46 AM, William Denton <address@hidden> 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