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

Special blocks for .docx export #33

Open
Perangelot opened this issue Jun 8, 2022 · 6 comments
Open

Special blocks for .docx export #33

Perangelot opened this issue Jun 8, 2022 · 6 comments
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@Perangelot
Copy link

I am desperately trying to get special blocks to export to .docx, but it won't work. At first I thought I was missing the right backend, but then I came to realize the problem lays deeper. Even defining this custom block did not yield any result:

(org-defblock satz nil (name "" label "") "Custom block for the custom satz-environment in LaTeX."
(print "hello!"))

For all .tex and .html, it is replaced by "hello!" every time.

It seems to me that something is converting the block before the formatting function of org-special-blocks-extra comes into play. What could the reason for that be, and what could you do about it?

@MagicRB

This comment was marked as outdated.

@MagicRB

This comment was marked as outdated.

@MagicRB
Copy link

MagicRB commented Jun 10, 2022

ox-html doesnt trigger it explicitly

@Perangelot
Copy link
Author

I just evaluated the line and then exported again. This time, it worked. Why is "ox-html" relevant here? The conversion is done by pandoc.

@MagicRB
Copy link

MagicRB commented Jun 12, 2022

Becuase ox-html works for me but org-thtml which is a derived backend doesnt

@alhassy alhassy added bug Something isn't working enhancement New feature or request good first issue Good for newcomers labels Aug 20, 2022
@alhassy
Copy link
Owner

alhassy commented Jul 21, 2023

@Perangelot @MagicRB Could you please summarize what hook isn't being hit? How could we get it to be hit? Is just evaluating the code associated with that hook enough to make things work for .docx? If so, why don't we always run that code?

@alhassy alhassy added help wanted Extra attention is needed question Further information is requested labels Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants