Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add beamer support #35

Open
opensource-philosophy opened this issue Aug 19, 2022 · 3 comments
Open

Add beamer support #35

opensource-philosophy opened this issue Aug 19, 2022 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@opensource-philosophy
Copy link

opensource-philosophy commented Aug 19, 2022

Exporting to LaTeX using org-beamer does not work. This is because beamer as a backend is not provided for. This could easily be solved by changing lines like (equal backend 'latex) to (or (equal backend 'beamer) (equal backend 'latex)); it accounts for both LaTeX and beamer. Any chance you could make these changes? Your blocks are too great not to be used in org-beamer!

@alhassy
Copy link
Owner

alhassy commented Aug 20, 2022

I am fully aware of this and already have a proposal to address it: To make org-defblock rely on defmethod instead of defun so that backend support is not baked-in, as the current implementations do.

I have numerous other, private, proposals. Perhaps I should place them publicly and ask for help to make them come true.

Unfortunately, with 2 kids and a full time job, and not being an active user of org-special-block-extras, this is not something I can direct immediate energy towards.

However, I'm happy to accept PRs and to help guide on making the changes, if you or someone else wants to champion this change.

@alhassy alhassy added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 20, 2022
@opensource-philosophy
Copy link
Author

First of all: Please don't stress yourself out with this - family is more important than some strings of letters!

I am afraid I do not know anything about defmethod and have not dived into your code too much. Anyway, I think there is an easy way to account for derived backends, namely using the predicate org-export-derived-backend-p. Luckily, it returns non-nil both if BACKEND is derived from one of BACKENDS and if BACKEND is one of BACKENDS. That is, specifically, both

(org-export-derived-backend-p 'beamer 'latex)

and

(org-export-derived-backend-p 'latex 'latex)

return non-nil. It should also solve issue #35. Unfortunately, I do not have much time either. But if I found some, would you accept a PR with these changes?

As to the private proposols: Please, do make them public! I can very well imagine that a Reddit post would suffice to make some of them true.

@alhassy
Copy link
Owner

alhassy commented Jul 21, 2023

Hey @opensource-philosophy,

Your blocks are too great not to be used in org-beamer!

That's kind to hear; thanks!

First of all: Please don't stress yourself out with this - family is more important than some strings of letters!

That was really nice to read; thank-you ❤️

[Musa] this is not something I can direct immediate energy towards.

It's been about a year since the issue was opened, and I think it's close to being resolved.

Please see http://alhassy.com/org-special-block-extras/#Dispatch-on-backend-open-for-extensibility

In particular, if there is a specific block you'd like to use with beamer then we can produce a MVP to make that happen ---on your machine using the latest "open for extensibility" defblock method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants