[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Org-mode: toggle between source block and its results
From: |
Jonas Damm |
Subject: |
Re: Org-mode: toggle between source block and its results |
Date: |
Thu, 09 Feb 2023 08:02:39 +0100 |
User-agent: |
mu4e 1.8.10; emacs 28.2.50 |
Thanks,
I modified it, as you suggested.
Nothing changed though. What is to be expected excactly? Should the
source block be collapsed, directly after opening the file?
This is what I tried:
#+STARTUP: hideblocks
#+TITLE: Gitarre und Rhythmus
Willkommen!
#+begin_src emacs-lisp :exports results
(message "hello")
#+end_src
#+RESULTS:
: hello
* Rhythmus Notation
** Mehr Beispiele
Jean Louis <bugs@gnu.support> writes:
> [1. text/plain]
> * Jonas Damm <emails@jonas-damm.de> [2023-02-08 11:10]:
>> Yes indeed.
>> I guess there is no way.
>
> There is way, do not give up too early.
>
> You basically want to show the exported picture, right? But not the
> source block?
>
> I cannot handle lilypond, but I can handle emacs-lisp code block, see
> below, and try doing same for lilypond, observe ":exports results"
>
> [2. text/x-org]
> #+BEGIN_SRC emacs-lisp :exports results
> (message "Hello")
> #+END_SRC
>
> [3. text/plain]
> #+RESULTS:
> : Hello
>
> Because you only had this:
>
> #+begin_src lilypond :file notes.png
>
> but how about this:
>
> #+begin_src lilypond :file notes.png :exports results
>
> so try it with that line, as I can't try it, I am missing packages
> that you may have.
Re: Org-mode: toggle between source block and its results, Jean Louis, 2023/02/07