I have an org file that I want to export to both latex and html.
The file contains a bibliography, so I want to make sure that my org-exporter processes it correctly for both export backends.
For Latex things are easy, all I have to do is add the following:
#+BEGIN_EXPORT latex
\printbibliography
#+END_EXPORT
For html, things are also simple. All I have to do is add the following:
bibliography:~/org/library.bib
The problem is that, when I export to latex, I get \bibliography{../../org/library}
written at the end of the file, which is unnecessary.
What I want, thus, is to wrap the call to bibliography within an IGNORE_LATEX
block. How can I achieve that?
# # What I would like to have:
#+IGNORE_LATEX
bibliography:~/org/library.bib
#+END_IGNORE
#+BEGIN_EXPORT html
first, but that was wrong. Using#+BEGIN_HTML
is the correct solution. In any case, is there a simple way of ignoring a particular backend? – dangom Mar 1 '17 at 8:55#+BEGIN_HTML
still inserts garbage into the latex output... – dangom Mar 1 '17 at 17:12