From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: How to replace \( by $$ and such when exporting to markdown Date: Mon, 27 Jan 2014 02:33:35 +0100 Message-ID: <87ob2yxl74.fsf@gmx.us> References: <867g9mpcei.fsf@gmail.com> 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]:42312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7b1h-0000s6-1z for emacs-orgmode@gnu.org; Sun, 26 Jan 2014 20:30:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7b1Z-0004SU-Nk for emacs-orgmode@gnu.org; Sun, 26 Jan 2014 20:30:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:60232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7b1Z-0004R2-ID for emacs-orgmode@gnu.org; Sun, 26 Jan 2014 20:30:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W7b1Y-00038e-7n for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 02:30:04 +0100 Received: from dynamic-adsl-94-34-157-21.clienti.tiscali.it ([94.34.157.21]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jan 2014 02:30:04 +0100 Received: from rasmus by dynamic-adsl-94-34-157-21.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jan 2014 02:30:04 +0100 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: emacs-orgmode@gnu.org Rafael writes: > Hi all, > > I'm trying to publish some beamer presentations with mathematical > content as pages in octopress. I think I'm on my way to get a working > setup, but I would like some help to achieve the following: > > With an up-to-date org (from git), define some functions that, when > exporting to markdown with ox-md, automatically replace all instances of > \(, \), \[ and \] with $$. > > Thanks in advance for any help. You want to look into filters, probably org-export-filter-latex-fragment-functions and org-export-filter-latex-environment-functions. They are listed in ox.el. It should be fairly easy to deal with in your case with regexp. –Rasmus -- Together we'll stand, divided we'll fall