emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] tagged code blocks


From: claude fuhrer
Subject: [O] tagged code blocks
Date: Fri, 24 Jun 2016 10:21:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]