1

In emacs, is it possible to configure an "org" file to have different exporting behaviors depending on the output format?

For example: I'd like to export equations as itself for LaTeX, but as images (I believe it is achieved with the option tex:imagemagick) when exporting to HTML.

Dox
  • 497

1 Answers1

1

If the behavior you want can somehow be implemented by code added to the heading of the output file, you have various tags to work with like #+LATEX_HEADER, #+LATEX_CLASS_OPTIONS or #+HTML_HEAD (depending on the version of org-mode). Check the general org-mode documentation for more details.

If that's not good enough, and you need to roll your own back-end, see the Org Export Documentation.

Many other potentially useful suggestions can be found over at these related questions:

Brian Z
  • 1,168