emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I get the output of a =#+begin_src org= in the current buffe


From: Ihor Radchenko
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

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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]