From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Re: No title in org-export-as-odt Date: Mon, 27 Jan 2014 06:31:48 +0000 (UTC) Message-ID: References: <1348466593.45471.YahooMailClassic@web133101.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7fk4-0000Ll-4d for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 01:32:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7fjy-00060N-6k for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 01:32:19 -0500 Received: from plane.gmane.org ([80.91.229.3]:58247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7fjx-00060J-Mf for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 01:32:14 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W7fjv-0001mm-15 for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 07:32:11 +0100 Received: from 71-217-20-103.tukw.qwest.net ([71.217.20.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jan 2014 07:32:11 +0100 Received: from algebrat by 71-217-20-103.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jan 2014 07:32:11 +0100 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: emacs-orgmode@gnu.org Miguel Ruiz yahoo.es> writes: > > > Any hint to get rid of the title in a org-export-as-odt > > session? I had the same problem. I noticed a lot of new lines, `\n', so I tried to remove more than "just title". For my solution, I changed insert to ignore. ;; Preamble - Title, Author, Date etc. (ignore ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; changed insert to ignore (let* ((title (org-export-data (plist-get info :title) info)) (author (and (plist-get info :with-author) (let ((auth (plist-get info :author))) (and auth (org-export-data auth info))))) (email (plist-get info :email)) ;; Switch on or off above vars based on user settings (author (and (plist-get info :with-author) (or author email))) (email (and (plist-get info :with-email) email))) (concat ;; Title. (when title (concat (format "\n%s" "OrgTitle" (format "\n%s" title)) ;; Separator. "\n")) This was in .emacs.d/elpa/org-[...]/ox-odt.el, that is, org export to odt. Also, not sure if it was necessary, but I deleted ox-odt.elc, the compiled version. Brady > > org-odt-format-preamble function says: > > ... > (when title > (concat > (org-odt-format-stylized-paragraph > 'title (org-odt-format-tags > '("" . "") title)) > ;; separator > "")) > ... > > So I only need to find a way to assign nil to title variable inside the document. > > Also I might define a new option with org-export-inbuffer-options-extra, but the elaboration of the > function is beyond my knowledge. > > I would appreciate any idea. >