From: Christian Moe <mail@christianmoe.com>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: odt export with 'header'
Date: Thu, 17 Oct 2013 16:26:48 +0200 [thread overview]
Message-ID: <m2bo2oezx3.fsf@uio.no> (raw)
In-Reply-To: <8738o1cb6h.fsf@med.uni-goettingen.de>
Hi,
Andreas Leha writes:
> I'd like to have a 'header' on the first page of a odt exported document
Here is a fiddly way to do it. There may be easier and/or more correct
ways. And perhaps the ODT exporter could use a preamble option like
the HTML exporter has. But this should work, more or less.
The trick is to put your header in an actual header in the style
template, a page header that will only be shown on the first page. This
works because header contents are included with the page style. So try
making a style template again:
1. Export your document and open in Open-/LibreOffice.
2. Modify the styles to your heart's content. Hint: You may want to
make the Title and Subtitle styles hidden (Modify Paragraph Style >
Font Effects tab > check Hidden). Or you may skip this step for now
and come back later.
3. Give the first page the page style OrgFirstPage.
4. Do Insert > Header > OrgFirstPage.
5. Put the content you want in the header,
inserting the appropriate fields:
#+begin_example
> ,----
> | Some fixed text here +------------------+
> | | [Insert>Picture] |
> | +------------------+
> |
> | Some fixed text
> | [Insert>Field>Author]
> | Some more fixed text
> |
> | [Insert>Field>Date]
> |
> | [Insert>Field>Title]
> | Some Subtitle
> |
> `----
#+end_example
6. Save the template.
7. Try exporting with the path to the template in ODT_STYLES_FILE.
(Actually, if you're going to include a logo or other picture, it
gets a little more involved. You will need to include both the path
to the template and the relative paths to "styles.xml" and the image
file inside it, as described in the manual.)
8. If you don't see your custom header in the exported document, you may
have to put the first page in OrgFirstPage style manually. (Not sure
how to make this happen automatically.)
9. Following the header, you will still have the usual preamble with
title, date, and if you haven't turned it off, the authorname. If you
have made the Title and Subtitle styles hidden (step 2 above), they
will be invisible in print. If not, you will need to delete them
manually.
Hope this helps?
Yours,
Christian
next prev parent reply other threads:[~2013-10-17 14:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 18:39 odt export with 'header' Andreas Leha
2013-10-17 14:26 ` Christian Moe [this message]
2013-10-23 9:23 ` Christian Moe
2013-10-23 12:14 ` Andreas Leha
2013-10-23 12:08 ` Andreas Leha
2013-10-23 12:50 ` Christian Moe
2013-10-23 14:00 ` Andreas Leha
2013-10-23 22:00 ` Andreas Leha
2013-10-24 8:47 ` Christian Moe
2013-10-24 9:19 ` Christian Moe
2013-10-24 10:42 ` Andreas Leha
2013-10-24 9:19 ` Andreas Leha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2bo2oezx3.fsf@uio.no \
--to=mail@christianmoe.com \
--cc=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.