emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: William Denton <wtd@pobox.com>, emacs-org <emacs-orgmode@gnu.org>
Subject: Re: Bug: duplicated output in inline code block exports
Date: Sat, 07 Jul 2018 12:59:32 +0200	[thread overview]
Message-ID: <87wou7joq3.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <FAA4A554-559A-4AE4-A5AD-D38B96113AE1@ucsd.edu> (Charles Berry's message of "Thu, 5 Jul 2018 19:14:31 +0000")

Hello,

"Berry, Charles" <ccberry@ucsd.edu> writes:

>> On Jul 5, 2018, at 10:46 AM, William Denton <wtd@pobox.com> 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

      reply	other threads:[~2018-07-07 10:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05 17:46 Bug: duplicated output in inline code block exports William Denton
2018-07-05 19:14 ` Berry, Charles
2018-07-07 10:59   ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wou7joq3.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=wtd@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).