From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: Can I just publish content of specific tags? Date: Thu, 22 Oct 2009 23:54:28 -0400 Message-ID: <87r5su22a3.fsf@stats.ox.ac.uk> References: <83zl7izugr.fsf@ymail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1BEc-0005LE-Ma for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 23:54:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1BEX-0005JV-P2 for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 23:54:38 -0400 Received: from [199.232.76.173] (port=46912 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1BEX-0005JP-Ld for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 23:54:33 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:64476) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1BEW-0005oD-Rg for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 23:54:33 -0400 In-Reply-To: <83zl7izugr.fsf@ymail.com> (Water Lin's message of "Fri, 23 Oct 2009 10:59:16 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Water Lin Cc: emacs-orgmode@gnu.org Water Lin writes: > I use org mode as my homepage and I use tags to distinguish my content > such as finished, on-hold and suspended. > > But when I publish my org files into web pages, I don't want to publish > the content which isn't finished. That's mean I just want to publish > content of specific tags. How can I do it? Hi Water, This should help: http://orgmode.org/manual/Selective-export.html#Selective-export As explained there, it's controlled by two variables, org-export-exclude-tags and org-export-select-tags. If you're going to change the default values of those variables, note that they are lists of strings (as opposed to being just strings). So I believe in your example you could use (setq org-export-select-tags '("finished")) Dan > > Thanks > > Water Lin