From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28610 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'juh' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Fenced Div to ConTeXt Environment (was: Markdown Fenced Div to LaTeX Environment) Date: Wed, 16 Jun 2021 16:37:31 +0200 Message-ID: <20210616143731.GA29446@sokrates> References: <8ba84992-d792-4333-aae0-560147ef79d4n@googlegroups.com> <87pn1uwglb.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11464"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDO25H455QHRBMMZVCDAMGQERQUKAGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 16 16:37:40 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f192.google.com ([209.85.208.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltWfk-0002lF-7v for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 16 Jun 2021 16:37:40 +0200 Original-Received: by mail-lj1-f192.google.com with SMTP id d11-20020a05651c110bb029015743a7a85asf1335927ljo.18 for ; Wed, 16 Jun 2021 07:37:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623854259; cv=pass; d=google.com; s=arc-20160816; b=W+67N7p2G6iQWFrgFKg7ECM8XsfGkf336SGAtf2pLkEm6IFwR48Y1SfKCJJOyNYnHF su28aSTAj177ThwoA+ZXqS97XwpyLZcPVU2OwgxZvXT73XORzM7b//uwzfa6eRAsGCoA 4EZ4BwXzXocRCcgN6Bp1VFopMxxtF+qf3bxLZYqDLda9aPkwVa4bGZBdt1pa1wPgjwix /BAoRQ7MPKh5L4fMWPrxFW5M3uQBQkchUJg3z2+PIp1HUC9ikiyiaRNg+6Nzf9ZZaIdP lNHyrVRyG8+9jV5LWReNGZHnF+o7LV6PN4pSvXkW4cPFcrRGFbRjyB8TV8icI0VY6ITC BpOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=NgBTO4fIzbLGlAaGTvfXIvoVGY9M43xU/uVFIP0VZNY=; b=jeea8MhfwrAgw8YGd3IINgEo4wb7a4U4WbANNFkfjP53OZidbd7qFn3uU16uvwXzHT 4UJvrW9tRWtR4aEPxNHWQe8Z2Vlj4OaVmY72KYVr25RWaLAm9z3JKVsoHlZrRbPT3V+J bwVDOnm7K/CeHqjLlxcQhxu3QQiRNQLbHoA+IiHEUawunz4FWU7NiuFUJdiLnua9OQQ0 Ggn4Vez1gGP1IewvtpBikodJ7g1q/ccA6v/Dhfm5ng8uXaDbgkzmC0e4hdSnCmY/+xSe RIiaKj5oEKmSNdCCI9ba2QnwR45mxm40dWGPoZVCNG49nVoX1it2SCCDDcgD0uJZhTje t3MQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=wZwelCyX; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=aP7km93o; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=NgBTO4fIzbLGlAaGTvfXIvoVGY9M43xU/uVFIP0VZNY=; b=lnE5nu+cPGNvzDlgWtHRYP1s2WZQeFJuwKBL12hD8hB963Mzt1FpvcNjqdFvL8novD H4FUdWgIlYEexUaNhOuqNV4Tq9oGrFAz+4YcwTXjOraBSVC+hOsBrVlUlOA5CiEKr343 Oa40/ur0nv4o0flgNaNstoxCr3T2raLJX6Qw4MngL/S1crI8GvNhURt8pV6jh4XzN7Ky 8mVbT/Nv7mLtjLX0uHoSCKAex7TMtagrqlsBzuezIhx1O/ZAyfVwYQHdyWC++zCReSrz zYz5wx8A6a7wH2TJ2sEB66HAmEY8TMqkfXeqYs1EKGMFK3PqNhXg2CHUtX/VgKx4qUzK GVXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=NgBTO4fIzbLGlAaGTvfXIvoVGY9M43xU/uVFIP0VZNY=; b=t0h1jGEnm542kIzSOFRR+2r+0Z4RitAMzpx3kVocu3jSQejhM53f7ll4xUkb2iHzsA JaQap/vfGXyEsWdx1V2DgiJXpBGmFgUPbHiv2bshE/28JO1iIuxmTENM1NMaxFY8sooO MLyh7MDzvvMi4aVxbHAd/izHRvy1PZURvnD73pe/5V6eqsgXz4B75KA1vuhEwOgv0dZZ Ps0F1nMOWdeI3hRpwzuRyrhu3tFKHFPeyOHtkZW3XeztaHliseFisksboY69bBeqZFhW aRLQNs4FzW8fiWjgN/AvEPz5DhtZ3uPeEmP/IAst61SdwOPtGdD5BBKx77V/XtbQlqN7 611g== X-Gm-Message-State: AOAM532+2Lmn64q3iOoF+WDT9CwfYSkoK4yj4wTABaLGq+vDK4x6cXdu TLXHjSS9qk/i8wugVdI7JQ4= X-Google-Smtp-Source: ABdhPJy/+ew6jeT8FMP4mECQeuvVwTpvRrhuROLVkxESx/WfBRB8lckGGsO8Ds+JQmF5J9zANcwzIQ== X-Received: by 2002:ac2:5d4c:: with SMTP id w12mr10336lfd.494.1623854259781; Wed, 16 Jun 2021 07:37:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:9e50:: with SMTP id g16ls658366ljk.6.gmail; Wed, 16 Jun 2021 07:37:37 -0700 (PDT) X-Received: by 2002:a2e:908a:: with SMTP id l10mr152893ljg.160.1623854257049; Wed, 16 Jun 2021 07:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623854257; cv=none; d=google.com; s=arc-20160816; b=HwxFEqL6EV/Bkc1UssY7HD0Za4BRzTp4pnX2LqYVDBUkbSCCh5nl8nOIQIFUkBp660 K6EWYW9aibx5HmIWHIzySTbZUbnnd7EEghKr69mKCbIS8BVjqKskOtGFvxECNMrtNuev px6jaTwct55jRh28fm+m5te7OYN711CoDyuKd2cELXTaO9FUVO5TBEbfOh72F7cIb6z6 4o1TE4KMzA/nlBfHH0EDUc/njw2+02M2CFNrVpK7/RR/YpUHRlj/ji9h2wbozIccKXRW +5gcOZZ0c3PQDwwQrpt7EZRo7Tx2WcobQmjJBDL2NMJMukLomC6SS2nrUCVl9FaNYaRD YlOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:dkim-signature:dkim-signature; bh=zavkuTowLh6dVomeVzTGBdBB0n9GHjqX8MnJ8jzGnzk=; b=Xzyguf88X2GiVWewHw42LhWVO6/kuYaMXHjd8Osx+dRU2kf/EtqactRIY2lij3FTj1 nhth/qVsMsLzsMxd0HFYlJY+fc5AzT/9wjjvhxgh3kW/49Pfmn86HTFvKp1DC3U+/iXX xBYI9YtYNUzkKGb0DUtQmHwjfgEbsxN3f0rqxXVmcYEHj9RIuDDxJx/bAuCeDDibKY8J vxQ9z7RjxdLYbVngiOe5uvqV1hmbwQizWf2BEMpMPHEcRNBM/UI5/Jop2GqkA1fmP9pi vhOht7tGfdXoN2Hu16DQnFoJ8Z5Sk3vCH3nfALHX2ZxMpBOC0rpluG/EvJbHf+G9FyYD Z7oA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=wZwelCyX; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=aP7km93o; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [2001:67c:2050::465:201]) by gmr-mx.google.com with ESMTPS id a21si103289lfl.10.2021.06.16.07.37.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 07:37:37 -0700 (PDT) Received-SPF: pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) client-ip=2001:67c:2050::465:201; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4G4npS3GPszQjbb for ; Wed, 16 Jun 2021 16:37:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id d6R4tJVVNpY2 for ; Wed, 16 Jun 2021 16:37:33 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87pn1uwglb.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Rspamd-Score: -1.20 / 15.00 / 15.00 X-Rspamd-Queue-Id: 381A61899 X-Rspamd-UID: dfb401 X-Original-Sender: juh-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=wZwelCyX; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=aP7km93o; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org X-Original-From: juh Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28610 Archived-At: --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Hi Albert, hi John, hi all, sorry for hijacking the thread. I want to insert special context markup like \startparagraph[intro] ... \stopparagraph via ::: intro ::: ... ::: The solution for latex was this: Am Sun, Jan 24, 2021 at 03:32:32PM +0100 schrieb Albert Krewinkel: > Hi, > > you'll need a Lua filter for this, which is what R Markdown, and thereby > Bookdown, is using as well: > > https://github.com/rstudio/rmarkdown/blob/master/inst/rmarkdown/lua/latex-div.lua There also was a short snippet from John MacFarlane: function latex(s) return pandoc.RawBlock('latex', s) end function Div(el) if el.classes[1] == 'solution' then return { latex('\begin{solution}'), el.content, latex('\end{solution}') } end end How can I achieve this with context output. Simply changing the string "latex" to "context" results in this error. Error running filter filter.lua: ./filter.lua: createProcess: runInteractiveProcess: exec: invalid argument (Exec format error) make: *** [Makefile:36: pdf] Fehler 83 TIA Jan Ulrich Hasecke