From: Bastien <bzg@gnu.org>
To: Brady Trainor <algebrat@uw.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] No title in org-export-as-odt
Date: Wed, 16 Apr 2014 16:38:49 +0200 [thread overview]
Message-ID: <87ioq9z0bs.fsf@bzg.ath.cx> (raw)
In-Reply-To: <loom.20140328T065958-200@post.gmane.org> (Brady Trainor's message of "Fri, 28 Mar 2014 06:05:32 +0000 (UTC)")
Hi Brady,
Brady Trainor <algebrat@uw.edu> writes:
> I wanted to return to this and attempt it, here is my first patch ever:
Thanks,
> diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
> index da2ca3f..8c7f0fe 100644
> --- a/lisp/ox-odt.el
> +++ b/lisp/ox-odt.el
> @@ -1491,7 +1491,7 @@ original parsed data. INFO is a plist holding export
> options."
> (goto-char (match-beginning 0))
>
> ;; Preamble - Title, Author, Date etc.
> - (insert
> + (ignore
> (let* ((title (org-export-data (plist-get info :title) info))
> (author (and (plist-get info :with-author)
> (let ((auth (plist-get info :author)))
The way not to insert a title is simply to add an empty title like this:
#+TITLE:
Otherwise, Org falls back on the file name.
> I installed a fresh version of org-mode from Elpa or Melpa before doing
> this. (I am just now looking a little into the maint branch.)
>
> In the long-long run, when I go to insert the code, I wonder why we don't
> make removing the title an option in ox.el.
This could be done with a new `org-export-with-title' option but I
would rather stick to the current way of doing it (an empty value
for #+TITLE:).
Thanks anyway for the patches,
--
Bastien
next prev parent reply other threads:[~2014-04-16 16:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-24 6:03 No title in org-export-as-odt Miguel Ruiz
2012-09-24 6:42 ` Nick Dokos
2012-09-24 12:10 ` Giovanni Ridolfi
2014-01-27 6:31 ` Brady Trainor
2014-01-27 10:35 ` Bastien
2014-03-28 6:05 ` [PATCH] " Brady Trainor
2014-04-16 14:38 ` Bastien [this message]
2014-01-27 14:23 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ioq9z0bs.fsf@bzg.ath.cx \
--to=bzg@gnu.org \
--cc=algebrat@uw.edu \
--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.