From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: No title in org-export-as-odt Date: Mon, 24 Sep 2012 02:42:39 -0400 Message-ID: <5198.1348468959@alphaville> References: <1348466593.45471.YahooMailClassic@web133101.mail.ir2.yahoo.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG2NW-0003vg-OP for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 02:42:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TG2NV-0001J2-On for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 02:42:50 -0400 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:47833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG2NV-0001BI-Jk for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 02:42:49 -0400 In-Reply-To: Message from Miguel Ruiz of "Mon\, 24 Sep 2012 07\:03\:13 BST." <1348466593.45471.YahooMailClassic@web133101.mail.ir2.yahoo.com> 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: Miguel Ruiz Cc: emacs-orgmode@gnu.org Miguel Ruiz wrote: > Hi, >=20 >=20=20 > > Miguel Ruiz > > writes: > >=20 > > > Any hint to get rid of the title in a org-export-as-odt > > session? > >=20 > > I don't think you can >=20 >=20 > org-odt-format-preamble function says: >=20 > ... > (when title > =C2=A0 =C2=A0 =C2=A0 =C2=A0(concat > =C2=A0=C2=A0=C2=A0 (org-odt-format-stylized-paragraph > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0'title (org-odt-format-tags > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0'("" . "") title)) > =C2=A0=C2=A0=C2=A0 ;; separator > =C2=A0=C2=A0=C2=A0 "")) > ... >=20 > So I only need to find a way to assign nil to title variable inside the d= ocument. >=20 I don't think you can unless you change the code. The title is set in org-l= parse.el::org-do-lparse like this: ,---- | ... | (title (org-xml-encode-org-text-skip-links | (or (and subtree-p (org-export-get-title-from-subtree)) | (plist-get opt-plist :title) | (and (not body-only) | (not | (plist-get opt-plist :skip-before-1st-heading)) | (org-export-grab-title-from-buffer)) | (and buffer-file-name | (file-name-sans-extension | (file-name-nondirectory buffer-file-name))) | "UNTITLED"))) | ... `---- so even if you arrange for the opt-plist to set :title to nil, the buffer-file-name will override it. Nick > Also I might define a new option with org-export-inbuffer-options-extra, = but the elaboration of the function is beyond my knowledge. >=20 > I would appreciate any idea. >=20 >=20 > >=20 > > > #+OPTIONS: title:nil author:nil timestamp:nil=C2=A0 > > toc:nil > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > =C2=A0=C2=A0=C2=A0^^^^^^^^^ > >=20 > > This option is not supported. > >=20 > > --=20 > >=C2=A0 Bastien > >=20 > > >=20 > Thanks. >=20 >=20