* Omitting title in odt-export
@ 2014-10-20 22:13 hack writer
2014-10-21 11:44 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: hack writer @ 2014-10-20 22:13 UTC (permalink / raw)
To: emacs-orgmode
Hi there,
I have problems omitting the OrgTitle from an exported odt-document. Through the following preamble in my .org-file I am able to omit most of the default title/author/etc. information at the beginning of the .odt-document:
#+ODT_STYLES_FILE: "/path/to/template.ott"
#+TITLE:
#+DATE:
#+AUTHOR:
#+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:nil c:nil creator:comment d:(not LOGBOOK) date:nil e:t
#+OPTIONS: email:nil f:t inline:t num:t p:nil pri:nil stat:t tags:t
#+OPTIONS: tasks:t tex:t timestamp:t toc:t todo:t |:t
#+CREATOR:
#+DESCRIPTION:
#+EXCLUDE_TAGS: noexport
#+KEYWORDS:
#+LANGUAGE: de
#+SELECT_TAGS: export
#+BEGIN_ODT
//
// .odt stuff in here
//
#+END_ODT
but there are still two empty paragraphs at the beginning of my file. When looking at the source code of the odt-file (content.xml) the empty paragraphs are
<text:p text:style-name="OrgTitle">
<text:title></text:title></text:p>
<text:p text:style-name="OrgTitle"/>
before my real text begins.
So how can I get rid of these empty paragraphs (I already tried things like title:nil but they didn't work)?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Omitting title in odt-export
2014-10-20 22:13 Omitting title in odt-export hack writer
@ 2014-10-21 11:44 ` Nick Dokos
2014-10-21 22:49 ` hack writer
0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2014-10-21 11:44 UTC (permalink / raw)
To: emacs-orgmode
hack writer <GNU@bookhacker.org> writes:
> I have problems omitting the OrgTitle from an exported
> odt-document. Through the following preamble in my .org-file I am able
> to omit most of the default title/author/etc. information at the
> beginning of the .odt-document:
>
> #+ODT_STYLES_FILE: "/path/to/template.ott"
>
> #+TITLE:
> #+DATE:
>
> #+AUTHOR:
>
> #+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline
> #+OPTIONS: author:nil c:nil creator:comment d:(not LOGBOOK) date:nil e:t
>
> #+OPTIONS: email:nil f:t inline:t num:t p:nil pri:nil stat:t tags:t
> #+OPTIONS: tasks:t tex:t timestamp:t toc:t todo:t |:t
>
> #+CREATOR:
> #+DESCRIPTION:
>
> #+EXCLUDE_TAGS: noexport
> #+KEYWORDS:
>
> #+LANGUAGE: de
> #+SELECT_TAGS: export
>
> #+BEGIN_ODT
> //
> // .odt stuff in here
> //
> #+END_ODT
>
> but there are still two empty paragraphs at the beginning of my file. When looking at the source code of the odt-file (content.xml) the empty paragraphs are
>
> <text:p text:style-name="OrgTitle">
> <text:title></text:title></text:p>
> <text:p text:style-name="OrgTitle"/>
>
> before my real text begins.
>
> So how can I get rid of these empty paragraphs (I already tried things like title:nil but they didn't work)?
>
You need to update your org to a version that includes the following
commit:
,----
| commit 91175a31ee73d10f61a57a290dd588fa484be1f2
| Author: Nicolas Goaziou <n.goaziou@gmail.com>
| Date: Fri Mar 28 10:08:56 2014 +0100
|
| ox-odt: Ignore blank titles
|
| * lisp/ox-odt.el (org-odt-template): Ignore blank titles.
`----
The current maint branch (from git, tarball or ELPA package) includes
it. So does the bleeding-edge master branch. But the version that came
with your emacs probably does not.
--
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Omitting title in odt-export
2014-10-21 11:44 ` Nick Dokos
@ 2014-10-21 22:49 ` hack writer
0 siblings, 0 replies; 3+ messages in thread
From: hack writer @ 2014-10-21 22:49 UTC (permalink / raw)
To: emacs-orgmode; +Cc: ndokos
Installed through ELPA. Works like a charm. Thank you very much!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-21 22:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 22:13 Omitting title in odt-export hack writer
2014-10-21 11:44 ` Nick Dokos
2014-10-21 22:49 ` hack writer
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).