* How should I handle babel configuration of exports & results in Dslide?
@ 2024-05-27 9:29 Psionic K
2024-05-27 14:51 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Psionic K @ 2024-05-27 9:29 UTC (permalink / raw)
To: emacs-orgmode
Because live presentations are a bit different from exporting
documents, I'm not always sure how options should apply. I'm not an
expert on many of these options and am not sure what will feel
consistent for users.
For context, a user wants :exports results or :exports none to hide
the babel block / results. Issue is here:
https://github.com/positron-solutions/dslide/issues/1 Is their idea
consistent with the expectations and usages elsewhere?
To implement options from the Dslide configuration, how can I
explicitly change babel block behavior from an Elisp program?
What function is best for cleaning up results of a single block? I'm
using `org-babel-remove-result'. Whenever the babel args are :results
replace, I am clearing them on that block both at the start fo the
slide and when going backwards. Should this behavior interact with
:exports?
As you can see, feedback will be helpful in reconciling my
understanding of the docs versus users actual expectations and common
usage patterns.
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How should I handle babel configuration of exports & results in Dslide?
2024-05-27 9:29 How should I handle babel configuration of exports & results in Dslide? Psionic K
@ 2024-05-27 14:51 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-05-27 14:51 UTC (permalink / raw)
To: Psionic K; +Cc: emacs-orgmode
Psionic K <psionik@positron.solutions> writes:
> Because live presentations are a bit different from exporting
> documents, I'm not always sure how options should apply. I'm not an
> expert on many of these options and am not sure what will feel
> consistent for users.
>
> For context, a user wants :exports results or :exports none to hide
> the babel block / results. Issue is here:
> https://github.com/positron-solutions/dslide/issues/1 Is their idea
> consistent with the expectations and usages elsewhere?
In some way, presentation can be viewed as export - if you only display
things selectively. So, :exports header argument may indeed be used.
Or you can use a custom header argument...
> To implement options from the Dslide configuration, how can I
> explicitly change babel block behavior from an Elisp program?
> What function is best for cleaning up results of a single block? I'm
> using `org-babel-remove-result'. Whenever the babel args are :results
> replace, I am clearing them on that block both at the start fo the
> slide and when going backwards. Should this behavior interact with
> :exports?
For example, you can use ox-org exporter.
Or you can pass PARAMS argument to `org-babel-execute-src-block' to
override :results header argument value.
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-27 14:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27 9:29 How should I handle babel configuration of exports & results in Dslide? Psionic K
2024-05-27 14:51 ` Ihor Radchenko
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).