From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Valentin_W=C3=BCstholz?= Subject: Re: Rendering of => and -> as arrows in exports? Date: Thu, 4 Mar 2010 22:38:18 +0100 Message-ID: <69e68c6e1003041338j4364502bnc25d46d307ba67b2@mail.gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnIkl-0004jJ-I0 for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 16:38:43 -0500 Received: from [140.186.70.92] (port=49716 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnIkj-0004ik-QM for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 16:38:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnIki-0006vi-Qz for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 16:38:41 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:34390) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnIki-0006vY-L5 for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 16:38:40 -0500 Received: by wwg30 with SMTP id 30so1070219wwg.0 for ; Thu, 04 Mar 2010 13:38:39 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Geralt Cc: emacs-orgmode@gnu.org Hi, the following hack works quite well for me: (add-hook 'org-export-latex-after-blockquotes-hook 'org-export-latex-arrows) (defun org-export-latex-arrows () (goto-char (point-min)) (while (search-forward "==>" nil t) (org-if-unprotected (replace-match (org-export-latex-protect-string "$\\rightarrow$") nil t))) ) This shouldn't be too hard to generalize further. Cheers, Valentin On Thu, Mar 4, 2010 at 2:45 PM, Geralt wrote: > Hi, > > I'd like it if => and -> would be exported as if they were \Rightarrow > and respectively \rightarrow. > Of course it should be optional (but I think enabled by default is > what most people desire). What do you think? > > Rendering auf <- could be treated in that way, too but <= is also > lower-equal and therefore I suggest to not render it as an arrow, > besides I don't think that the left-arrows are commonly used in > plain-text. > > > > > Geralt. > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >