From mboxrd@z Thu Jan 1 00:00:00 1970 From: claude fuhrer Subject: tagged code blocks Date: Fri, 24 Jun 2016 10:21:12 +0200 Message-ID: <576CED78.7070804@fuhrer.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGMMe-0004u2-3V for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 04:21:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGMMZ-0003rq-2c for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 04:21:23 -0400 Received: from zhbdzmsp-smta17.bluewin.ch ([195.186.99.133]:52008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGMMY-0003qs-SU for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 04:21:19 -0400 Received: from [192.168.1.115] (85.4.195.66) by zhhdzmsp-smta14.bluewin.ch (8.5.142) (authenticated as claude.fuhrer) id 5733454F0267D4F9 for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 08:21:12 +0000 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 Hi all I'm trying to write a document where some source codes block may be conditionally excluded from export. Here a small example of what I want, with the wrong syntax: =========================================== #+EXCLUDE_TAGS solution #+begin_src java :tag question public class Test { // write java code here } #+end_src and the solution is: #+begin_src java :tag solution // the solution here #+end_src ========================================== So then, I only need to modify the EXCLUDE_TAGS to generate a document with or without solution. Thank you in advance for your help