From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IFrmA8QG6l+oUgAA0tVLHw (envelope-from ) for ; Mon, 28 Dec 2020 16:24:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QOBdO8MG6l/MMgAA1q6Kng (envelope-from ) for ; Mon, 28 Dec 2020 16:24:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3AE0294042C for ; Mon, 28 Dec 2020 16:24:35 +0000 (UTC) Received: from localhost ([::1]:43248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktvJx-0007oj-Rx for larch@yhetil.org; Mon, 28 Dec 2020 11:24:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktvJU-0007oc-8Y for emacs-orgmode@gnu.org; Mon, 28 Dec 2020 11:24:04 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:42750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktvJO-0007Dd-Ep for emacs-orgmode@gnu.org; Mon, 28 Dec 2020 11:24:04 -0500 Received: by mail-ed1-x534.google.com with SMTP id g24so10196677edw.9 for ; Mon, 28 Dec 2020 08:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NdLWOHjsQbhKwNHekwnBcsL6WN5L87s0xC/+HzlgjaQ=; b=kNKKzLjj1txa9tfqCU8UCWEZXj0/E+S3hiF5VsT0kGRLPAGhCfCJzLRJSE0DnDxBg7 ZYUk1opo8/ECYfqxixnzTGjJ34X5JC7c5EmMWTBiNmYatI1B1I+mVWueFVofZFGqLpCD GgntP84Q/XT+Ixbs03xiyKqHup1oTZp4UQIUFrafZnvldAuHPUtWtvuBiCseJWDaBPGv aVF2GuQi5CufQyZnzl41dFd7SWXXHu6ocCeldAXHsT2PobUOXAz8mZa2mWj4sizfcIt+ pukC5KpYH1zVPnCb9l4jXhAW3LadTLv1KZ1xgWILMbimBo/K+knlnbotu8DsPy5b1iAH vinw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NdLWOHjsQbhKwNHekwnBcsL6WN5L87s0xC/+HzlgjaQ=; b=Ap48vHGinUm8ubG9E2JslDp19JXUEvKHnFiDbuYjQSh72vRSpy/y6s1vea4H5Op5jd sxQD1/NNtXGpfHd06AhxJdkMHJn+a7fHpAZH0iJdSfIiDF+rU+xLqy86r91u0m1YP4DF kuOrDvszkd+TInjH/1L31GyMj/1GResXdxB8/VHA3Po7+aQYmzd75VTO4Eb3XgBYAlpR zTbGSp56ru6YkQo6WQSmya/DgYSUOc+VfXcE8Ko9m90aJk+a3bMBEwQhEeq2q+pixkFK 1t1++bew4eWDXtJi02x2e5RYswvtQvvXvpvjy5R3HC1b+vhsggX4l8c6xz8DMUjcUQ0t xfOA== X-Gm-Message-State: AOAM533zRnkREiQqQmDsS5j2LQ9j6P5kEQLcboCfLRmrXCI8YE6e3dEx MQOGIjVVdeHMXyd+pBjHwcwRoTOl/0ZOrqNHPUAyAgASyWNIGA== X-Google-Smtp-Source: ABdhPJzWrxG9d+FrxEuZJvSZs0DLP6J9yZCNr9Mq/orJb3V8muvoxZRmCMeoikBOp8w5vEYfiQghicZ75EmG07K2QPw= X-Received: by 2002:aa7:c603:: with SMTP id h3mr38616386edq.254.1609172636459; Mon, 28 Dec 2020 08:23:56 -0800 (PST) MIME-Version: 1.0 References: <87tus6oxsg.fsf@posteo.net> <874kk6ynt1.fsf@mbork.pl> In-Reply-To: <874kk6ynt1.fsf@mbork.pl> From: Diego Zamboni Date: Mon, 28 Dec 2020 17:23:45 +0100 Message-ID: Subject: Re: Org to ConTeXt exporter? To: Marcin Borkowski Content-Type: multipart/alternative; boundary="00000000000060f6d605b788b33f" Received-SPF: none client-ip=2a00:1450:4864:20::534; envelope-from=diego@zzamboni.org; helo=mail-ed1-x534.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= , orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=kNKKzLjj; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3AE0294042C X-Spam-Score: -1.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: PGseWybTwc4r --00000000000060f6d605b788b33f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have never used ConTeXt, but from what I've seen, despite its many differences, a lot is still similar to TeX/LaTeX (e.g. math). Given this, I think it might be easier to create a new derived exporter from ox-latex, and override the parts that differ, instead of creating a new one completely from scratch. You can see an example in my own https://github.com/zzamboni/ox-leanpub/blob/master/ox-leanpub-markua.el, which uses ox-md as a backend for defining the new ox-markua exporter. There is also already some documentation at https://orgmode.org/worg/dev/org-export-reference.html --Diego On Mon, Dec 28, 2020 at 4:09 PM Marcin Borkowski wrote: > > On 2020-12-28, at 14:38, Juan Manuel Mac=C3=ADas > wrote: > > > Hi, > > > > Just out of curiosity, I am wondering if there are plans to create an > > Org to ConTeXt exporter in the future, or if there is already some work > > in progress on this front. > > > > I have to say that among TeX formats I tend to prefer LaTeX to ConTeXt; > > but ConTeXt has very interesting features (grid typesetting, for > > example) that LaTeX lacks (for now) and has a more monolithic structure= , > > that is, it does not need to be extended through packages as in LaTeX. > > Creating an exporter from scratch is probably easier than you think. > A few years ago I planned a tutorial about this, but another job > happened, then covid happened etc. Now that I finished some big project > taking me a lot of time, I might be tempted to revisit that. Would > there be demand for a DYI Org-exporter-from-scratch tutorial? > > Best, > > -- > Marcin Borkowski > http://mbork.pl > > --00000000000060f6d605b788b33f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have never used ConTeXt, but from what I've seen, de= spite its many differences, a lot is still similar to TeX/LaTeX (e.g. math)= . Given this, I think it might be easier to create a new derived exporter f= rom ox-latex, and override the parts that differ, instead of creating a new= one completely from scratch.

You can see an example in = my own https://github.com/zzamboni/ox-leanpub/blob/master/ox-leanp= ub-markua.el, which uses ox-md as a backend for defining the new ox-mar= kua exporter.

There is also already some documenta= tion at=C2=A0https://orgmode.org/worg/dev/org-export-reference.html
<= br>
--Diego


On Mon, Dec 28, 2020 at 4:09 PM M= arcin Borkowski <mbork@mbork.pl>= ; wrote:

On 2020-12-28, at 14:38, Juan Manuel Mac=C3=ADas <maciaschain@posteo.net> wrote:=

> Hi,
>
> Just out of curiosity, I am wondering if there are plans to create an<= br> > Org to ConTeXt exporter in the future, or if there is already some wor= k
> in progress on this front.
>
> I have to say that among TeX formats I tend to prefer LaTeX to ConTeXt= ;
> but ConTeXt has very interesting features (grid typesetting, for
> example) that LaTeX lacks (for now) and has a more monolithic structur= e,
> that is, it does not need to be extended through packages as in LaTeX.=

Creating an exporter from scratch is probably easier than you think.
A few years ago I planned a tutorial about this, but another job
happened, then covid happened etc.=C2=A0 Now that I finished some big proje= ct
taking me a lot of time, I might be tempted to revisit that.=C2=A0 Would there be demand for a DYI Org-exporter-from-scratch tutorial?

Best,

--
Marcin Borkowski
http://mbo= rk.pl

--00000000000060f6d605b788b33f--