emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* adding a header and/or footer when exporting to odt
@ 2021-10-01  7:00 Uwe Brauer
  2021-10-01  9:03 ` Christian Moe
  2021-10-01  9:33 ` Eric S Fraga
  0 siblings, 2 replies; 6+ messages in thread
From: Uwe Brauer @ 2021-10-01  7:00 UTC (permalink / raw)
  To: emacs-orgmode


Hi

Is it possible to have a header and footer in all pages when exporting to odt? I presume I have to use a odt style I create with Libreoffice/Openoffice?

Thanks

Uwe Brauer 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: adding a header and/or footer when exporting to odt
  2021-10-01  7:00 adding a header and/or footer when exporting to odt Uwe Brauer
@ 2021-10-01  9:03 ` Christian Moe
  2021-10-01  9:16   ` Uwe Brauer
  2021-10-01 12:48   ` Uwe Brauer
  2021-10-01  9:33 ` Eric S Fraga
  1 sibling, 2 replies; 6+ messages in thread
From: Christian Moe @ 2021-10-01  9:03 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode



Uwe Brauer writes:

> Hi
>
> Is it possible to have a header and footer in all pages when exporting to odt? I presume I have to use a odt style I create with Libreoffice/Openoffice?
>
> Thanks
>
> Uwe Brauer

Yes, that's it. Just export your document, add the header you want (and
do whatever else you want to do with the style), save it as
"my-document-styles.odt" or whatever, and add the header

#+ODT_STYLES_FILE: "my-document-styles.odt"

To reuse a template for several documents with variable header content,
you can use LibreOffice's Insert > Field for Author, Title, Date etc.

With images, etc. it gets a bit more involved.

See the Org manual, Advanced topics in ODT export: Working with
OpenDocument style files.

Yours,
Christian




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: adding a header and/or footer when exporting to odt
  2021-10-01  9:03 ` Christian Moe
@ 2021-10-01  9:16   ` Uwe Brauer
  2021-10-01 12:48   ` Uwe Brauer
  1 sibling, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2021-10-01  9:16 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

>>> "CM" == Christian Moe <mail@christianmoe.com> writes:

> Uwe Brauer writes:

>> Hi
>> 
>> Is it possible to have a header and footer in all pages when
>> exporting to odt? I presume I have to use a odt style I create with
>> Libreoffice/Openoffice?
>> 
>> Thanks
>> 
>> Uwe Brauer

> Yes, that's it. Just export your document, add the header you want (and
> do whatever else you want to do with the style), save it as
> "my-document-styles.odt" or whatever, and add the header

> #+ODT_STYLES_FILE: "my-document-styles.odt"

Thanks very much


> To reuse a template for several documents with variable header content,
> you can use LibreOffice's Insert > Field for Author, Title, Date etc.

For the moment rather not, but it is good to know what it exists.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: adding a header and/or footer when exporting to odt
  2021-10-01  7:00 adding a header and/or footer when exporting to odt Uwe Brauer
  2021-10-01  9:03 ` Christian Moe
@ 2021-10-01  9:33 ` Eric S Fraga
  1 sibling, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2021-10-01  9:33 UTC (permalink / raw)
  To: emacs-orgmode

On Friday,  1 Oct 2021 at 09:00, Uwe Brauer wrote:
> Is it possible to have a header and footer in all pages when exporting
> to odt? I presume I have to use a odt style I create with
> Libreoffice/Openoffice?

Check out the info manual: (org) ODT specific export settings

This may give you what you are looking for with respect to style files
for export?

-- 
: Eric S Fraga via Emacs 28.0.50, Org 9.5-g9a4a24
: Latest paper written in org: https://arxiv.org/abs/2106.05096


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: adding a header and/or footer when exporting to odt
  2021-10-01  9:03 ` Christian Moe
  2021-10-01  9:16   ` Uwe Brauer
@ 2021-10-01 12:48   ` Uwe Brauer
  2021-10-02 13:59     ` Christian Moe
  1 sibling, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2021-10-01 12:48 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

>>> "CM" == Christian Moe <mail@christianmoe.com> writes:

> Uwe Brauer writes:

>> Hi
>> 
>> Is it possible to have a header and footer in all pages when
>> exporting to odt? I presume I have to use a odt style I create with
>> Libreoffice/Openoffice?
>> 
>> Thanks
>> 
>> Uwe Brauer

> Yes, that's it. Just export your document, add the header you want (and
> do whatever else you want to do with the style), save it as
> "my-document-styles.odt" or whatever, and add the header

Shouldn't that be my-documents-styles.ott ???




[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: adding a header and/or footer when exporting to odt
  2021-10-01 12:48   ` Uwe Brauer
@ 2021-10-02 13:59     ` Christian Moe
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Moe @ 2021-10-02 13:59 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode


Uwe Brauer writes:

>>>> "CM" == Christian Moe <mail@christianmoe.com> writes:
>
>> Uwe Brauer writes:
>
>>> Hi
>>> 
>>> Is it possible to have a header and footer in all pages when
>>> exporting to odt? I presume I have to use a odt style I create with
>>> Libreoffice/Openoffice?
>>> 
>>> Thanks
>>> 
>>> Uwe Brauer
>
>> Yes, that's it. Just export your document, add the header you want (and
>> do whatever else you want to do with the style), save it as
>> "my-document-styles.odt" or whatever, and add the header
>
> Shouldn't that be my-documents-styles.ott ???

It could be, if you like, but it works just as well as .odt. Org just
needs to grab a styles.xml from somewhere.

Yours,
Christian


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-02 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01  7:00 adding a header and/or footer when exporting to odt Uwe Brauer
2021-10-01  9:03 ` Christian Moe
2021-10-01  9:16   ` Uwe Brauer
2021-10-01 12:48   ` Uwe Brauer
2021-10-02 13:59     ` Christian Moe
2021-10-01  9:33 ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).