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
4
  • Interesting but the text is formatted as a code block
    – M. Toya
    Dec 4 '18 at 15:44
  • good point. I have edited the answer with an export block instead. 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).
    – M. Toya
    Sep 24 '19 at 15:16
  • This includes the content in the block when exported to HTML, but the content is interpreted as html code. Is it possible for the content to be in org-mode syntax and exported as usual to html code? There is some content I want to export to html, but not to latex.
    – darcamo
    Nov 2 '20 at 17:34

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.