From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ANN] ASCII back-end for new export engine Date: Wed, 25 Jan 2012 18:41:24 +0100 Message-ID: <87obtrel2z.fsf@gmail.com> References: <87pqec4xua.fsf@gmail.com> <87obtvk6j0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6sj-0004WT-4h for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 12:43:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq6sZ-0004Rc-Nh for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 12:43:37 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:58187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6sZ-0004RJ-G0 for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 12:43:27 -0500 Received: by wibhj13 with SMTP id hj13so922303wib.0 for ; Wed, 25 Jan 2012 09:43:26 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Sun, 22 Jan 2012 19:58:24 -1000") 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: "Thomas S. Dye" Cc: Org Mode List Hello, tsd@tsdye.com (Thomas S. Dye) writes: > I think that your understanding of the new exporter architecture is > intimate and secure. I'm happy to follow your lead here. I know for sure my way around the new exporter, but my LaTeX skills aren't on par with that knowledge. Anyway, I've pushed a commit which tries to create smart links. Basically, links without a description pointing to an headline will be turned into \ref{headline-label}, unless headline's numbering is off, in which case they become \hyperref[headline-label]{headline-title}. Nothing is changed for links providing their own description, and links not pointing to headlines. That should remove the need for a variable. What do you think about it? > It looks like a terrific example of the power of your parser. No, its (albeit useless) power is revealed by the fact that "\n:t" is now supported in LaTeX (and ASCII). Such a feat was close to impossible with the previous engine. More seriously, being recursive, the new engine can export thinks like "some *text /with nested/ emphasis*" and even "*/important/*". And, more importantly, it is mostly made of independent parts, for easier maintenance. For example, if I want to fix or improve links in e-latex back-end, I know I have to start diving in `org-e-latex-link'. That function may call other internal functions, but, at least, I have a starting point. That will also be true for any other back-end to come. Regards, -- Nicolas Goaziou