0

It seems the @@latex: @@ and @@odt: @@ does not work for lists or paragraphs with blank lines. For instance

@@odt:
  - Xyzzy!

  - Nothing happens
@@

is exported to latex.

How can I have some paragraphs exported only by one backend?

2

The @@backend: @@ construct doesn't work with newlines. I think you can do something like this to get a selective export only for a particular backend, in this case html. I am not sure if you can also get other non-html formatting in this.

#+BEGIN_EXPORT html
conditional

multi

line

paragraph
#+END_EXPORT
  • Interesting but the text is formatted as a code block – Alfred M. Dec 4 '18 at 15:44
  • good point. I have edited the answer with an export block instead. – John Kitchin Dec 4 '18 at 17:29
  • Is it possible to have a #+INCLUDE: "./xxx.org" in the export block? My attempt do not result as expected (#+BEGIN_EXPORT is typesetted and the include not taken into account, whatever the export mode). – Alfred M. Sep 24 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.