From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Extending the Org syntax by a custom exporter - how to do it? Date: Sun, 16 Mar 2014 12:57:49 +0100 Message-ID: <87zjkqqrsy.fsf@gmail.com> References: <20140315111059.00d3b8e0@aga-netbook> <20140315222244.5eee2361@aga-netbook> <874n2ysb30.fsf@gmail.com> <20140316121832.2bc543c1@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP9h2-0004yd-LT for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 07:57:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WP9gx-0006LH-3N for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 07:57:28 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:44228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP9gw-0006L6-TQ for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 07:57:23 -0400 Received: by mail-wg0-f52.google.com with SMTP id k14so3678739wgh.35 for ; Sun, 16 Mar 2014 04:57:21 -0700 (PDT) In-Reply-To: <20140316121832.2bc543c1@aga-netbook> (Marcin Borkowski's message of "Sun, 16 Mar 2014 12:18:32 +0100") 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: Marcin Borkowski Cc: Org-mode mailing list Marcin Borkowski writes: > I thought about it. But, as I said, I'm going to have two backends, > one for LaTeX, one for HTML. WOuld it be possible to have e.g. > > #+ATTR_TEST > > working for both? Of course. You decide, at the backend level, what attributes are read. For example, "ox-beamer.el" reads both "ATTR_LATEX" and "ATTR_BEAMER", when it makes sense. > (Anyway, options after #+BEGIN_MYBLOCK would be a bit nicer, since the > user would not have to type /that/ much.) This is backend specific data. It would not be nice to hide that fact. Options on the same line as the block opening string should be reserved for backend agnostic data. There is none for special blocks at the moment. > I tried to look for math-block in ox-latex.el, but did not find it. I > have Org-mode from Elpa, org-version gives: > > Org-mode version 8.2.5f > (8.2.5f-elpa @ /home/marcin/.emacs.d/elpa/org-20140116/) > > Should I upgrade? IIRC the feature is in master, not in maint, so upgrading through ELPA won't help. But you can browse the repository online. Regards, -- Nicolas Goaziou