From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Annotating org exporters Date: Tue, 10 May 2016 17:55:41 +0200 Message-ID: <87vb2l52ma.fsf@gmx.us> References: <87futqvwy6.fsf@uwaterloo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0A0r-00041R-PS for emacs-orgmode@gnu.org; Tue, 10 May 2016 11:55:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0A0o-0003ej-54 for emacs-orgmode@gnu.org; Tue, 10 May 2016 11:55:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:46030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0A0n-0003cQ-MV for emacs-orgmode@gnu.org; Tue, 10 May 2016 11:55:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b0A0h-00057h-IA for emacs-orgmode@gnu.org; Tue, 10 May 2016 17:55:47 +0200 Received: from 46.189.28.86 ([46.189.28.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2016 17:55:47 +0200 Received: from rasmus by 46.189.28.86 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2016 17:55:47 +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" To: emacs-orgmode@gnu.org Sebastian Fischmeister writes: > Is there a simple way to build regex-based extensions to the exporters? Yeah, filters. But I don’t think this is the best way to go about it. > For example, I would like to convert this string "=>" to $\rightarrow$ > when converting the document to latex. > > There are lots of other uses, where I could create my shortcuts and > insert them in orgmode files without creating a lot of clutter in the > file. This sounds a bit like org-entities. I use this together with cdlatex for quickly inserting such things. Try to type \Rightarrow and type C-c C-x \ Also try to export to text (non-unicode). You will get the desired symbol. Alternatively, you can use one of the many input methods such as TeX or rfc1345 in which case you can get the ‘⇒’ by typing ‘\Rightarrow’ or ‘&=>’, respectively. In latex, you can setup unicode-math. Hope it helps, Rasmus -- What will be next?