From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: don't show author and date on odt export? Date: Fri, 30 Aug 2013 15:49:35 +0530 Message-ID: <8761unbhvs.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFLll-0007No-7n for emacs-orgmode@gnu.org; Fri, 30 Aug 2013 06:17:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFLlc-0003nJ-I6 for emacs-orgmode@gnu.org; Fri, 30 Aug 2013 06:17:33 -0400 Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]:39944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFLlc-0003nE-9m for emacs-orgmode@gnu.org; Fri, 30 Aug 2013 06:17:24 -0400 Received: by mail-pd0-f172.google.com with SMTP id z10so1684424pdj.17 for ; Fri, 30 Aug 2013 03:17:23 -0700 (PDT) In-Reply-To: (Matt Price's message of "Mon, 26 Aug 2013 17:05:56 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Org Mode Matt Price writes: > On Mon, Aug 26, 2013 at 2:49 PM, Matt Price 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? ................. Use ODT_STYLES_FILE and the newly created ott file to pick up new header/footer configuration. > Thanks again! > Matt