From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Re: [new exporter] Problems with entities Date: Mon, 27 Aug 2012 12:02:09 +0200 Message-ID: References: <876284adcp.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 ([208.118.235.92]:50652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5w9M-0007py-Ox for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 06:02:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5w9H-0002IO-1l for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 06:02:28 -0400 Received: from smtp2-v.fe.bosch.de ([139.15.237.6]:63290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5w9G-0002IJ-RS for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 06:02:22 -0400 In-Reply-To: <876284adcp.fsf@gmail.com> (Nicolas Goaziou's message of "Mon, 27 Aug 2012 11:33:26 +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: Nicolas Goaziou Cc: org-mode mailing list Hi Nicolas, =C2=B7 Nicolas Goaziou wrote: > 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 >> [ ... ] > > 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. thanks for explaining. I now have: #+BEGIN_SRC emacs-lisp (setq org-entities-user '(("lig" "\\/" nil "" "" "" ""))) #+END_SRC Now it works as expected and explained by you. There was an error in my initial version. It was only a list not a list containing lists. Thanks again. --=20 Bis neulich ... Thomas