From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Tags included in subtree export title despite tags:nil in header Date: Thu, 27 Oct 2011 14:05:16 +0200 Message-ID: <20111027140516.2f6d5508@kuru.homelinux.net> References: <83vcra2493.fsf@yahoo.it> <20111027134220.510ec38b@kuru.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOi5-0004zc-14 for emacs-orgmode@gnu.org; Thu, 27 Oct 2011 08:05:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJOi3-00043c-Hu for emacs-orgmode@gnu.org; Thu, 27 Oct 2011 08:05:24 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:42968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOi3-00043X-AY for emacs-orgmode@gnu.org; Thu, 27 Oct 2011 08:05:23 -0400 Received: by faat2 with SMTP id t2so3285418faa.0 for ; Thu, 27 Oct 2011 05:05:22 -0700 (PDT) In-Reply-To: <20111027134220.510ec38b@kuru.homelinux.net> 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: Suvayu Ali Cc: org-mode mailing list On Thu, 27 Oct 2011 13:42:20 +0200 Suvayu Ali wrote: > Hi Giovanni, > > On Thu, 27 Oct 2011 11:06:00 +0200 > Giovanni Ridolfi wrote: > > > suvayu ali writes: > > > > Hi, Suvayu, > > > > > > I also have a subtree where I > > > wrote beamer presentation about the project. I would like to > > > exclude this from the html export, so I tag it with noexport. > > > > > > Now when I do a subtree export > > ^^^^^^^^^^^^^^^^^ > > > to get the beamer presentation, my > > > presentation has the title: "Text in headline :noexport:". Is > > > there any way to exclude the tag from the exported title short of > > > toggling the tag before export or setting the EXPORT_TITLE > > > property? > > > > > > > > I was expecting this to work out of the box since I already have > > > tags:nil in the file header. > > ^^^^^^^^^^^^^^^^^^^^ > > > Would this be considered as a bug? > > I don't think so. > > > > Options for *the* specific subtree have to be defined in the > > subtree: > > > > * file > > ** beamer :noexport: > > :PROPERTIES: > > :EXPORT_TITLE: beamer > > :EXPORT_FILE_NAME: test.html > > :EXPORT_OPTIONS: H:3 num:nil toc:nil \n:t @:t ::t |:t ^:t f:nil *:t > > tags:nil TeX:t LaTeX:nil skip:t p:nil author:nil email:nil > > creator:nil timestamp:nil :END: beamer 2 > > *** beamer 3 > > > > As far as I know, the subtree inherits export and other options from > the file header, e.g. ^:{}. I have that set in my file header, and > subtree export respects that. That said, I tried your work around, I > still get :noexport: in my title with the EXPORT_OPTIONS property set > to tags:nil. I tried it with both latex and html export. Now I am > pretty much convinced this is a genuine bug. > org-exp.el:2155:(defun org-export-get-title-from-subtree () This might be the guilty function. I don't see any checks for tags. I don't understand the internals here. Maybe someone more well versed can take a look? -- Suvayu Open source is the future. It sets us free.