emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Edgar Lux <edgarlux@mailfence.com>
To: Ihor Radchenko <yantar92@posteo.net>
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 15:54:31 +0200 (CEST)	[thread overview]
Message-ID: <1762260462.99976.1691848471661@ichabod.co-bxl> (raw)
In-Reply-To: <87msyw34e6.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1407 bytes --]

Thanks!!!

Regarding the typo, it does not show here. But in the info buffer, the =(see *note...= becomes (see see ...).

See (:P) attachment

On Aug 12, 2023 at 1:07 PM, Ihor Radchenko <yantar92@posteo.net> wrote: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>

-- 
Sent with https://mailfence.com  
Secure and private email

[-- Attachment #2: File Attachment: scr.png --]
[-- Type: image/png, Size: 13584 bytes --]

  reply	other threads:[~2023-08-12 13:55 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
2023-08-12 13:54   ` Edgar Lux [this message]
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=1762260462.99976.1691848471661@ichabod.co-bxl \
    --to=edgarlux@mailfence.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /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).