Max Nikulin writes: > On 10/03/2024 09:08, Juan Manuel Macías wrote: >> I'm thinking about adding a new global attribute, `:export', that >> would granularly control whether or not to export the object and how to >> export it. > > 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*" )) @strong{formatting} or even: @strong{@@latex:\latex{}: @@@@html:HTML: @@ formatting} As defined, it is exported to LaTeX and HTML with all the formatting, but only the content is exported to odt. The rest are not exported. Maybe an "rest" option could be added, to avoid verbosity: :export "latex+ html+ rest*" (the complete format is exported to LaTeX and html and only the content to the rest). However, I think that exporting this object to 'format-agnostic' backends, such as plain text, would have to be implemented in a way that always exports the content. > Earlier I raised this issue during discussion of @@:...@@ syntax extension: > Max Nikulin. Re: Org-syntax: Intra-word markup. Fri, 28 Jan 2022 > 21:52:17 +0700. > https://list.orgmode.org/868df76e-69e0-1d14-ae8a-13b746982...@gmail.com > > Another case for backend predicates is whether it should be applicable > to derived backends or just to explicitly specified ones. I don't have a definite opinion. Maybe it would be nice to also take into account derived backends... -- Juan Manuel Macías -- Composición tipográfica, tratamiento de datos, diseño editorial y ortotipografía