From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: two sets of default header arguments for one language Date: Thu, 10 Sep 2015 11:00:32 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za8xh-0006WF-1c for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 17:00:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za8xc-0005My-1S for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 17:00:52 -0400 Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:49096) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Za8xb-0005Mk-QG for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 17:00:47 -0400 In-reply-to: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode Aloha Alan, Alan Schmitt writes: > Hello, > > I’m writing some lab exercises where I have a fairly long list of header > arguments for each source block. I know I can use language-specific > default arguments, but I need to switch between questions (short list): > > #+begin_src ocaml :tangle tp1.ml > > and answers > > #+begin_src ocaml :exports results :results verbatim drawer :post wrap-myres(text=*this*) :tangle tp1_ans.ml > > Is there a way to have two sets of default arguments for a given > language, or can I declare a new language just for the sake of different > arguments? Perhaps you could specify language specific header arguments in properties and keep the questions under one heading and the answers under another heading? * Questions :PROPERTIES: :header-args:ocaml: :tangle tp1.ml :END: ... *Answers :PROPERTIES: :header-args:ocaml: :exports results :results verbatim drawer :post wrap-myres(text=*this*) :tangle tp1_ans.ml :END: hth, Tom -- Thomas S. Dye http://www.tsdye.com