From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Adding new switch or header Date: Tue, 3 Nov 2015 16:58:23 +0000 Message-ID: <87d1vrhvf4.fsf@ucl.ac.uk> References: <87r3k7xen4.fsf@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zteuq-00037D-6P for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 11:58:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zteul-0000LP-1k for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 11:58:36 -0500 Received: from mail-am1on0146.outbound.protection.outlook.com ([157.56.112.146]:46208 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zteuk-0000L4-Pq for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 11:58:30 -0500 In-Reply-To: <87r3k7xen4.fsf@russet.org.uk> (Phillip Lord's message of "Tue, 3 Nov 2015 15:54:07 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Phillip Lord Cc: emacs-orgmode@gnu.org On Tuesday, 3 Nov 2015 at 15:54, Phillip Lord wrote: > I am trying to implement a new backend based on the HTML export. I need > to do some post-processing to the source blocks that needs to be > optional. For some blocks I need to replace "[" with "\[" and for some I > don't. > > I am not sure whether to use headers or switches. What about neither? Maybe something along #+ATTR_XXX: instead, where XXX is the name of your derived backend, along the lines of ATTR_HTML and ATTR_LATEX? Others may tell us that my suggestion is worse but I think playing around with the babel syntax is asking for trouble... -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-209-gba4d33