From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Extending the Org syntax by a custom exporter - how to do it? Date: Mon, 17 Mar 2014 17:31:15 +0100 Message-ID: <20140317173115.30ee8375@aga-netbook> References: <20140315111059.00d3b8e0@aga-netbook> <20140315222244.5eee2361@aga-netbook> <874n2ysb30.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPaRg-000364-VI for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 12:31:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPaRb-00024s-Ch for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 12:31:24 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:35175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPaRb-00024Z-6f for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 12:31:19 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 38CEC42063 for ; Mon, 17 Mar 2014 17:31:18 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bk0-E7dz2+Ri for ; Mon, 17 Mar 2014 17:31:18 +0100 (CET) Received: from aga-netbook (99-234.echostar.pl [213.156.99.234]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 0A19642062 for ; Mon, 17 Mar 2014 17:31:17 +0100 (CET) In-Reply-To: <874n2ysb30.fsf@gmail.com> 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: Org-mode mailing list Dnia 2014-03-16, o godz. 11:16:03 Nicolas Goaziou napisa=C5=82(a): > Another, more advanced option, is to use a parse tree filter to create > pseudo-types, i.e., element or object types that don't exist in > regular Org syntax. See `math-block' type in "ox-latex.el", in > particular `org-latex-math-block-tree-filter'. I started to wonder and came to the conclusion that this might be interesting for my "cloze" idea (with syntax as in one of my previous messages). However, I can't really understand what is going on here. It seems to me that the key function is org-latex--wrap-latex-math-block; it is, however, a bit long and I'm a bit afraid of studying it (and don't have enough time today for that anyway). What would you suggest for grokking the idea of "pseudo-objects"? In particular: - How do they get parsed? What portions of the source should I read to understand that? - Would it be a good idea to instrument one (or more) functions for edebug to get the idea of what's going on there? - How risky is it to use Org from master in day-to-day usage? Do people (other than the devs) do this on a regular basis? Is coming back to maint as simple as checking out another branch from the git repo? > Regards, Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University