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?

up vote 2 down vote accepted

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 at 15:44
  • good point. I have edited the answer with an export block instead. – John Kitchin Dec 4 at 17:29

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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