From: Ihor Radchenko <yantar92@posteo.net>
To: Edgar Lux <edgarlux@mailfence.com>
Cc: Emacs Orgmode <emacs-orgmode@gnu.org>
Subject: Re: how can I get the output of a =#+begin_src org= in the current buffer?
Date: Sat, 12 Aug 2023 11:07:45 +0000 [thread overview]
Message-ID: <87msyw34e6.fsf@localhost> (raw)
In-Reply-To: <1049610247.65669.1691837980727@fidget.co-bxl>
Edgar Lux <edgarlux@mailfence.com> writes:
> #+begin_src org
> #+latex_header: \usepackage{nil}
> #+end_src
>
> What I want is to get =#+latex_header: \usepackage{nil}= in the current buffer. The documentation (Org-info and the docstring of =org-babel-execute-src-block=) says that this command would
> #+begin_quote
> Insert the results of execution into the buffer
> #+end_quote
>
> Tips, advice? Thank you!
See https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-org.html
You need
#+begin_src org :results replace
#+latex_header: \usepackage{nil}
#+end_src
> - There is a typo in the info pages (parses as see see; remove see from below):
> (org) Results of Evaluation
> #+begin_quote
> The ‘file-desc’ header argument defines the description (see *note
> Link Format::) for the link
> #+end_quote
May you elaborate?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2023-08-12 11:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-12 10:59 how can I get the output of a =#+begin_src org= in the current buffer? Edgar Lux
2023-08-12 11:07 ` Ihor Radchenko [this message]
2023-08-12 13:54 ` Edgar Lux
2023-08-13 8:21 ` Ihor Radchenko
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=87msyw34e6.fsf@localhost \
--to=yantar92@posteo.net \
--cc=edgarlux@mailfence.com \
--cc=emacs-orgmode@gnu.org \
/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).