From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iKAVA3HuWWHMIwEAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 19:54:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eDZiOnDuWWFTNQAAB5/wlQ (envelope-from ) for ; Sun, 03 Oct 2021 17:54:56 +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 7A89118530 for ; Sun, 3 Oct 2021 19:54:56 +0200 (CEST) Received: from localhost ([::1]:33278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX5hP-0007eF-Hf for larch@yhetil.org; Sun, 03 Oct 2021 13:54:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX5gf-0007P6-1w for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 13:54:09 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:47000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mX5gd-0007oZ-K8 for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 13:54:08 -0400 Received: by mail-lf1-x135.google.com with SMTP id i24so13486504lfj.13 for ; Sun, 03 Oct 2021 10:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=AwwyvPkWgGQsZguG84BDnFXppSySSLPMNWj7sZdsJOQ=; b=AHpj0h5wXKegNZ4TqkxCAVz7pFq0C0NDnXUyDwhCbqx5k3L8v/+bf88r4VN6Bzj45c YX8rcvGwgGBN8002+ubWPf9HyGBSjPSPtmueqmc82MzHurMzt5/zVnbNm1+C5PAYBJkC Rj13q4M5aWdDpU0t9Ycs9m4DLsLQi7WJtmLmvqGI4uqZkz15xWg7nt4ALiiafNDxl0Eq 3yCikTHRtCtt2crchV7X3erMtiBkSlYSM5XSUdwI9TF8RHkFk+6ldhJUfId+xr4wOWvD Q0St+/pcurj59fPvuXRAfmtEdBwIRIxNGLcAMZyx+p9l0Q8v4afznwxbPCVjlxW1jl7m 6D7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AwwyvPkWgGQsZguG84BDnFXppSySSLPMNWj7sZdsJOQ=; b=5SD1pRYdTqj42e+LxAort5IYx7viv61YiWlrQAkdP6Rwt8z7pbi6FUJgNLngIUYZGu Mvz88DmwMIxqgbR45Fm+xhvWzNcUPQ0ApGHYDLe8WFXavZwmt6JCqU0VNGMu777pK61I nDXAYC6j6COco1gPxu9ggk7FgGIuZemXJ8hrdskvEum3iQaOcykTv9zURpEhzLKjX5yU nBZvAWjfmcM6j0zqdDKmTKLTMuKfGZmBob7uQ7MA0S9tjOAHqM6uZwAfoY5NqGeRbhVU cZaBm7f0Qg5Bzn0E/FfITopw4wAa3aimXJg6Xq72tbIW8K1QwhZbcqxokNVapFAKmVvR 1q2Q== X-Gm-Message-State: AOAM533UcQGqeZiygTb3kYxGOF4S+PX9gbh32SXxtxkNJKb04KIqqUeO ZIiRPfaMIhF0QYQ945mHsXBGVaou5TThy4C64vyErZa/nF4= X-Google-Smtp-Source: ABdhPJw3tJE3lp9rYG6oF+SbMHAePns4BHbQi+qVQuUtd67ulqBTi/SsmIhkNOgwhB8scenmb2S606xbVkwqM+EzZgg= X-Received: by 2002:a05:651c:213:: with SMTP id y19mr10504619ljn.273.1633283644692; Sun, 03 Oct 2021 10:54:04 -0700 (PDT) MIME-Version: 1.0 From: Jason Ross Date: Sun, 3 Oct 2021 10:53:53 -0700 Message-ID: Subject: Best way to include METAPOST in ConTeXt exporter To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000759a6905cd767b33" Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=jasonross1024@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633283696; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AwwyvPkWgGQsZguG84BDnFXppSySSLPMNWj7sZdsJOQ=; b=Cu1pBuzR/e6ap3+IOJbUPLRQJ3qKPdP8ytZFgmZMmMAsV6NiEC5oxh+J/8qkP7eJK2gitu ZmKP4vkIoFJ0RVeF32ueIdzDln50mHx4EN89/UI6k0mLvbZRlzTo5pvr1B9AAVEgTERm0J mKvz1oG+LpAcsnkaaqzjd/R8lQ6Zp7OUVihdBGrwf8XUP6ZGfxOL4L4O/0pOpSk+yqnEEM mV9CmGXQpVjeYbqruxyCkzCIlw39Dd6D8bTg0IPDdaM+eUILCnnUGtaNsmagMA5K+N9fTw GOmap6nqrebiaEwtt6MeNGRuagOFLk2CTLr3yQM6ae7661ojz+EuIZ7qP4YtzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633283696; a=rsa-sha256; cv=none; b=s9JpsIO7gd6F1u1ezBEXh1QfzsTJep2T2zZtr5cfzqJStI40bIUtmA87500kBMXw98PlTR mPbl2cXZMd0WaHM6XLrY8P6YLiOV+tF9Oi23GrkFzdWWTjrAooBrxkDiM/qAHp2HWS+YsT nWdIJsJ+IhVoA2QOdEPchvn6rJ/qQShXQcjV87jn7GqiVoRHIVjL16NIAV7nw+KFotiUnn 9RYrvKJJfo4vzco7UEN2wSPzHjV8E8m02KPk917przvqCb6LMM/k2kJAn8q1AV3fDFt8Y4 j3aEOy6xnhcfBeYD28EWYbvYAxuAQXdxji4xeCRBgMX17Z0xAQZVN5SxOOm2GQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AHpj0h5w; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AHpj0h5w; dmarc=pass (policy=none) header.from=gmail.com; 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: 7A89118530 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: UqyQwZ6UWo8x --000000000000759a6905cd767b33 Content-Type: text/plain; charset="UTF-8" Hello, I'd like to include METAPOST figures in the ConTeXt exporter backend I'm developing. However, I don't know of an idiomatic way to add captions and references for the figures. Currently, I export METAPOST with `#+BEGIN_EXPORT metapost` / `#+END_EXPORT` tags. However, this feature seems to be intended for completely "raw" outputs with no markup or tagging in the resulting export. I'm interested in supporting at least `#+NAME` and `#+CAPTION` keywords for METAPOST figures so that they can be referred to in the Org file and also in the exported pdf. What are some better ways of doing something like this? Source blocks? How would a user expect to use a feature like this? Thanks, Jason --000000000000759a6905cd767b33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I'd like to include METAPOST figures in = the ConTeXt exporter backend I'm
developing. However, I don't kn= ow of an idiomatic way to add captions and
references for the figures.
Currently, I export METAPOST with `#+BEGIN_EXPORT metapost` / `#+END_= EXPORT`
tags. However, this feature seems to be intended for completely = "raw" outputs
with no markup or tagging in the resulting expor= t. I'm interested in supporting
at least `#+NAME` and `#+CAPTION` ke= ywords for METAPOST figures so that they
can be referred to in the Org f= ile and also in the exported pdf.

What are some better ways of doing= something like this? Source blocks? How would
a user expect to use a fe= ature like this?

Thanks,

Jason
--000000000000759a6905cd767b33--