From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Where to get started in creating my own org-mode exporter? Date: Tue, 08 Sep 2015 10:22:37 +0200 Message-ID: <87pp1tl3qq.fsf@mbork.pl> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZEB1-0005hP-0J for emacs-orgmode@gnu.org; Tue, 08 Sep 2015 04:22:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZEAx-0003oB-Nu for emacs-orgmode@gnu.org; Tue, 08 Sep 2015 04:22:51 -0400 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:37653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZEAx-0003nz-HC for emacs-orgmode@gnu.org; Tue, 08 Sep 2015 04:22:47 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 68B806F2005 for ; Tue, 8 Sep 2015 10:22:45 +0200 (CEST) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WqyQgxg3jiVM for ; Tue, 8 Sep 2015 10:22:43 +0200 (CEST) Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 613F16F2003 for ; Tue, 8 Sep 2015 10:22:43 +0200 (CEST) In-reply-to: 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 On 2015-09-08, at 07:54, edward sillador wrote: > Hello, > > I want to create my own org-mode exporter to support back end for latex > pgfgantt package. Could someone please point me on a > tutorial/reference on how to get started? IIUC, you want to modify the LaTeX exporter. Hence, you want a /derived backend/. See docstring for org-export-define-derived-backend, for starters. (If not, see the docstring for org-export-define-backend.) Then you /might/ want to see the notes for my EmacsConf2015 talk on making Org-mode exporters (from scratch, not derived ones, but most of that stuff is really applicable to both) -- see https://github.com/mbork/ox-oddmuse -- and especially the references therein. Then, you /might/ want to skim the sources in ox-latex. (It's not extremely long: 2071 SLOC excluding blank lines, comments and docstrings. I read most of that, and it took me a bit more than 7 hours. Also, running some of those functions through Edebug may be instructive. And most probably you don't need to read all that code anyway.) And then, you may ask here. > Thank you. Hth, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University