From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michel Damiens Subject: exporting "flattened" tagged subtrees Date: Thu, 30 Nov 2017 12:06:52 +0100 Message-ID: <87a7z410vn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKMgI-0004R2-SF for emacs-orgmode@gnu.org; Thu, 30 Nov 2017 06:07:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKMgC-0003KS-Rz for emacs-orgmode@gnu.org; Thu, 30 Nov 2017 06:07:02 -0500 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:39645) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKMgC-0003J4-J7 for emacs-orgmode@gnu.org; Thu, 30 Nov 2017 06:06:56 -0500 Received: by mail-wr0-x229.google.com with SMTP id a41so4277966wra.6 for ; Thu, 30 Nov 2017 03:06:56 -0800 (PST) Received: from ldlc-01 ([2a01:e34:ec53:c190:f185:e487:552f:98c2]) by smtp.gmail.com with ESMTPSA id o10sm2730400wrg.5.2017.11.30.03.06.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 03:06:54 -0800 (PST) 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" To: emacs-orgmode@gnu.org Hello, I would like to export and org file in such a way that : - only tagged subtrees are exported (for a specific tag) - the tree structure is "flattened" for example a file example.org containing : * heading 1 :tag: ** subheading 1.1 content 1.1 ** subheading 1.2 :tag: content 1.2 *heading 2 ** subheading 2.1 :tag: content 2.1 ** subheading 2.1.1 :tag: ** subheading 2.1.2 :tag: content 2.1.2 ** subheading 2.2 content 2.2 would be exported to the file example.org.org containing : * heading 1 * subheading 1.2 content 1.2 * subheading 2.1 content 2.1 * subheading 2.1.1 * subheading 2.1.2 content 2.1.2 (which in turn would be exported to latex, beamer or html for example) Thanks for your help