From: Jambunathan K <kjambunathan@gmail.com>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: don't show author and date on odt export?
Date: Fri, 30 Aug 2013 15:49:35 +0530 [thread overview]
Message-ID: <8761unbhvs.fsf@gmail.com> (raw)
In-Reply-To: <CAN_Dec_kDZDUu5H5hmqNKT_c2Fs-qsSNQPxf=d=4xaP9HaMG0A@mail.gmail.com> (Matt Price's message of "Mon, 26 Aug 2013 17:05:56 -0400")
Matt Price <moptop99@gmail.com> writes:
> On Mon, Aug 26, 2013 at 2:49 PM, Matt Price <moptop99@gmail.com> wrote:
>
>> I'm trying to figure out how best to tell org not to display my name
>> and the date at the top of the page when it exports document.
>> Currently, it seems I can do htis by setting
>>
>> #+OPTIONS: author:nil date:nil
>>
>> However, this also removes the relevant info from the file metadata.
>> I would prefer to somehow change the export template so that these
>> lines aren't produced. Anyone know if that's possible? Would I have
>> to modify ox-odt.el directly -- and is that hard to do? It looks like
>> the relevant lines in that file are around 1488-1541. I'm a little
>> loathe to modify the code directly though, as I like to just git pull
>> from the master branch...
>
> I realize I also don't quite understand how to preformat the header
> and footer of each page. I feel like this should be possible, as at
> least some footer info is generated by default (page number in centre
> of footer). But despite some inspection of both ox-odt.el and the
> styles.xml and content.xml of my exported document, I can't figure out
> how the content of the footer is determined.
With a page style applied, click on the footer, insert a pagenumber
field and save the document. The resulting changes will be stored in
the styles.xml under
Do you see text:page-number down below?
<office:master-styles>
<style:master-page style:name="Standard" style:page-layout-name="Mpm1">
<style:footer>
<text:p text:style-name="MP1"><text:page-number text:select-page="current">
</text:page-number></text:p>
</style:footer>
</style:master-page>
.................
</office:master-styles>
Use ODT_STYLES_FILE and the newly created ott file to pick up new
header/footer configuration.
> Thanks again!
> Matt
next prev parent reply other threads:[~2013-08-30 10:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 18:49 don't show author and date on odt export? Matt Price
2013-08-26 21:05 ` Matt Price
2013-08-30 10:19 ` Jambunathan K [this message]
2013-08-30 10:12 ` Jambunathan K
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8761unbhvs.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=moptop99@gmail.com \
/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 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).