0

I work with org-reveal for presentations and export to LaTeX based PDF for handouts.

I use SVG for the graphs in the reveal-presentation for better scaling and I want those to be ignored when exporting to LaTeX-PDF. Instead a PDF should be used. There are also some slides I want to have in the presentation but are not necessary for the handout.

Is there a way to exclude parts of the tree from export, e.g., :noexport:, based on the export filetype?

2
  • Are the graphs pre-made and already available in SVG and PDF format? Or are the graphs supposed to be produced when you are exporting the file?
    – NickD
    May 6, 2021 at 19:22
  • They are already pre-made and are only loaded into the the export. May 7, 2021 at 6:24

1 Answer 1

0

Since the graphs are pre-made, you can use export blocks to include the appropriate version for the appropriate export (IIRC, ox-reveal defines an exporter that's derived from HTML, hence the html tag in the block below):

#+BEGIN_EXPORT html
[[file:/path/to/img.svg][An SVG image]]
#+END_EXPORT

#+BEGIN_EXPORT latex
[[file:/path/to/img.pdf][A PDF image]]
#+END_EXPORT

A bit ugly and repetitive, but it can be automated in the longer run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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