On 11/03/2024 20:59, Juan Manuel Macías wrote:

I have a bit different expectations in respect to export predicates.
It should be possible to express that some content should be exported
by all backend except the given list. The use case is fallback for
backends not covered by export snippets:

     @@latex:\textbf{\LaTeX() formatting}@@@@html:<strong>HTML
     formatting</strong>@@@[...]{*for other backends}

I think that in your example (if I understand the intentions correctly)
it would not even be necessary to use export snippets:

#+options: inline-special-block-aliases:(("strong" :latex-command textbf
:html-tag strong :export "latex+ html+ odt*" ))

Your example uses a closed list of backends while "not (html or latex)" may be applicable to ascii, rst, some wiki dialects, etc. Backend-specific markup may be more complex and content of fallback option may be different from text used in export snippets. Perhaps I shouldn't give so simple example.

Side note: I expect that the new object will be more convenient than export snippets in most cases.

:export "latex+ html+ rest*"

"rest" might be a valid backend name.



Reply via email to