0

I have an org document which I export to several different formats:

  • Markdown
  • PDF
  • HTML
  • ODT

I need to include an image (the logo of the company) in the cover front page, before OR after the title of the document in all the exported formats, especially in the ODT since the readers could be people with MS Word.

My directory tree is something like this:

├── Document.org
├── Document.odt
├── Document.md
├── Document.pdf
├── Document.html
├── images
│   ├── logo.png
│   ├── image1.png
│   ├── image2.png

The current command I include (which is not working) is:

#+title: @@odt:<draw:image xlink:href="./images/logo.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>@@ [Projec Name] A title here

Te title is shown, but not the image.

I need the solution for ODT exported files, not only PDF or md.

Extra question: Is there a way to include a small header image to all pages, or a water mark image in all pages?

  • I think this is more a question of how to do these things in the exported format. Org mode allows you to specify style files for each exporter (e.g. with #+LATEX_HEADER: for the LaTeX/PDF exporter, with #+ODT_STYLES_FILE: for the ODT exporter and with #+HTML_HEAD: and/or #+HTML_HEAD_EXTRA: for HTML export). But the contents of those style files are specific to the export format and thus outside the purview of this site. – NickD Nov 13 '20 at 15:38
  • But what is the syntax of those files or values? I've not found any example with #+ODT_STYLES_FILE – Johan Alexis Duque Cadena Nov 16 '20 at 18:09
  • It's in the manual. – NickD Nov 16 '20 at 18:18
  • @NickD no, it's not there, which parameter is supposed to be used in the style? Or where is going to be the image included? In the first page? In all pages? In second page? I came for an answer because in the manual I didn't find the info. – Johan Alexis Duque Cadena Dec 14 '20 at 9:25
  • As I said in my first comment, this is a question about ODF. The link shows you how to generate a style file, but modifying it to do what you want is NOT an Org mode matter or Emacs matter: it is an Open Office matter, and you need to ask your question on a forum that addresses that. In particular, I don't know how to do what you want (or else I would have answered the question) and the fact that nobody has come along to answer it shows you, I think, that you are asking the question in the wrong forum. – NickD Dec 14 '20 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.