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