From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] Problems with entities Date: Mon, 27 Aug 2012 11:33:26 +0200 Message-ID: <876284adcp.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vl0-0002l9-Kv for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 05:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5vkz-0003YQ-LB for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 05:37:18 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:50204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vkz-0003YM-EF for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 05:37:17 -0400 Received: by wibhm2 with SMTP id hm2so3286477wib.0 for ; Mon, 27 Aug 2012 02:37:16 -0700 (PDT) In-Reply-To: (Thomas Holst's message of "Mon, 27 Aug 2012 11:08:44 +0200") 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 Holst Cc: org-mode mailing list Hello, Thomas Holst writes: > While testing the new exporter we encountered problems with entities. We > tried to make ligations work. In LaTeX you write '\/' for a ligation > e.g. 'f\/ifteen'. To achieve that we set `org-entities-user': > > #+BEGIN_SRC emacs-lisp > (setq org-entities-user > '("Ligatur" "\\/" nil "" "" "" "")) > #+END_SRC > > The following text is used to show the problem: > > Dies ist eine Ligatur: f\/ifteen \alpha ab\-cd. > > With the old exporter the translation to LaTeX is: > > Dies ist eine Ligatur: f\/ifteen $\alpha$ ab\-cd. > > Which is the expected result. With the new exporter we get: > > Dies ist eine Ligatur: f$\backslash$/ifteen $\alpha$ > ab$\backslash$-cd. > > As you can see the shy hyphen is also wrong. But \alpha is exported > correctly. So I don't know what is happening here. You have defined an entity named "Ligatur". If you want to apply it during export, you have to write either \Ligatur or \Ligatur{}. For example, \alpha is correctly exported since there is: ("alpha" "\\alpha" t "α" "alpha" "alpha" "=CE=B1") in `org-entities'. Note that old exporter doesn't apply your entity either (entities usage doesn't change between both exporters). It just gives up each time he sees a backslash which isn't followed by a known entity name, assuming this will be handled by LaTeX. HTH, Regards, --=20 Nicolas Goaziou