From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28624 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Fenced Div to ConTeXt Environment (was: Markdown Fenced Div to LaTeX Environment) Date: Thu, 17 Jun 2021 08:54:52 +0200 Message-ID: References: <8ba84992-d792-4333-aae0-560147ef79d4n@googlegroups.com> <87pn1uwglb.fsf@zeitkraut.de> <20210616143731.GA29446@sokrates> <5db56b4f1d8d4ca2bec612bcebb7a525@unibe.ch> <493d0aa9-47f5-ca8d-2ef5-8e63f965c529@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003fdbb405c4f0b030" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2915"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBUPDVODAMGQEQ42RGUA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 17 08:55:16 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f63.google.com ([209.85.208.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltlvn-0000Xy-Oo for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Jun 2021 08:55:15 +0200 Original-Received: by mail-ed1-f63.google.com with SMTP id y7-20020aa7ce870000b029038fd7cdcf3bsf953892edv.15 for ; Wed, 16 Jun 2021 23:55:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623912915; cv=pass; d=google.com; s=arc-20160816; b=PmrLXn502mAtbEv2YcJVOA5y/2BQgPF4at6GPGd5h9RfpzXUjoaCa8jOZN3o7t3CuR KipDdEpAxWsDIueVABij6rE7jUkFsZE/EnjRgPLXyeIeDlC3UCb1cL5NKvm1TLR9NcDf TfoB8yJa3VO9u76RvSx3N2guje5h58tRKekcMUOnF6dMb22xAsUI5AJHtu8k8bhin0YQ 1z2OeywQ3mzSDvmclgFxVD2gmfr1eE3tLgga9pIxp6JdfRAPiWMCuX5ptEvZl/KLXTgg 6ssvgw/dIQ32XF53PPxDRHciGw4ztQUs4BWEf4ZZRyYZcKSwaazcQAOZ2Z3q6dt/RKbU ywZQ== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=9lCWxGM44ecJoicxxFHWfvHS9vgsL7r0dQ2VNt8Tt1U=; b=sg0FaeACuW3LIK7Phz0WgaIdPodR1OcGj5Y9LuA+8Somo+ghm7fl+T5yS+JnPKN/hF hdAZ9fOFi0ev9K2nTueKmxMXXi2+hHNFCyRdDpses9SxUuLsVIJNNOPovfJ2/v0z0ENr Fv2g0JgB3yMaa8jtQeE9eCiUxURfqJP6wK0bxrXBKgwAPuVxKs3/sCtSNzpRHyDYDAnA YO+eeKjxjyz6yUokRD15dGbbutQIZvaP6wuJUbKh9Htdc/VB+n7eFRl3tD5Pk/B5esx4 RileC4qJe5T+IWqfeOpXTFmbT8t25E3ppxkg8ceeaG3wl0xkqp/6zpRq2e/nIb43B0nR hceA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.50 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=9lCWxGM44ecJoicxxFHWfvHS9vgsL7r0dQ2VNt8Tt1U=; b=BH9OqzcKoJ7E8PwK3BLfQndp/MtFVWEIGvPNEZRseudJUsyss70ZehoBUwtRmaK8PG 56vKQRJLoMRXRbsNX4peOzSG9F1Rg1tvnhQyKEE+IlXuB3EXFDiB2nu7/4mn6Y5E+4fX 3vYdbyb3uRhVhpYfDyKdwTUQ9cM5EAjqbju72COp/cYkAL3CtGdz8YqISS6lskVyXfCX JLXlrKZ2kQBPZBX1FD9S5d6sPtub2kRbXkckMfdYHGGxfbLCK7WqNIzLLzf8dTM1/AP2 ErgdDFLsprrp/zElLO4+VPyeP3mGkPkApQCX5JRYOqhkb05OZbQR4jJ90Ky5GAJkqweE EyFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9lCWxGM44ecJoicxxFHWfvHS9vgsL7r0dQ2VNt8Tt1U=; b=WwlMK8jWk0qtTcR4ZkYFhULIaEJuoaXDdkTv0TwxRMOrMWpGcBkqa4vPiE1QKv/qcB sh6paloIZhh6SzKHdhY24Q5ludcNzWSIPktu6h1iNR/01b3EmHhgCDNzA7N0jLKQbhCd ZJmaG9CD1d6VruaxMOY6VqDdjuRiVPOdwON6xaeML6OMQAasy5KHYDug7+JpFd/ZhPXP 6i6zNedi62XM2JeTfErOcslaPlP0L4vvXdcQ5dDvFgNb2Z2xSxsowRzPGifxcDRMO7gk TB/1j9GBnNMs2RkgbkgowCKynoqtqTkUsQw1bBJPUghbYntPpQKOsKLK1+tP4V3+Yji2 OtMQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532gFx0t+FWjNoLLD7FlcQjbt2nAXH4HiQ5IhAe1hRSre/xvC4D3 z+VAi37QmQKyJeyLoPmUr1k= X-Google-Smtp-Source: ABdhPJym0hhReiCnyvYl0rDAvtFf8L2UfxqKL24W0JXMcSubvmwRmF9tGawFdQB2heh2IvvFHCnfPw== X-Received: by 2002:a17:907:c16:: with SMTP id ga22mr3662275ejc.116.1623912915503; Wed, 16 Jun 2021 23:55:15 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6402:4404:: with SMTP id y4ls1955125eda.1.gmail; Wed, 16 Jun 2021 23:55:12 -0700 (PDT) X-Received: by 2002:aa7:db94:: with SMTP id u20mr4444148edt.381.1623912912448; Wed, 16 Jun 2021 23:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623912912; cv=none; d=google.com; s=arc-20160816; b=MlKK3J+Qm60YL90lES+XYIc5LoeV1gqBbt/7ue7rZtOuMICP8vwvWCuxTqIs4g93m/ 0lroDXsn503OQPqAZ5KNm1cKQAAOFwOvRbJxia4zMKjX6pFg+g1SyWXbaKq0FubdRMJL CiKvf4M358KrTwIyRSJEhDN41TL1UBRAvWqnELD0D74qwS6dPULrDcBzVUJyJr4VTx8p H9RoIq8MQZx98VLpGFLgw03zMoXIz7/xQZMLiRCZ//6QmnPQN351aBo186gcELtdvli1 SIFz9oQZyhhrf6lm4QEK9w74zgsDfMCh4YQjJ4VGIdsaz71a7/9iBOufJq3pP9T9iUBl pe9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=SfsHp9OHUnwEQPO25AqGx9V/wZVbFSvMeqKtgX6GfCA=; b=xESQVOdPyEVa59rUB7RuWuKfx1d1cO9hStiqv1EFTradHFb3iAPh43PSHFL0LYZWPC C9GupmY4e/apErYpMLAwuY7L4VLMEMePfjPk4qsdmHQfoKmHnw4HcT4alWYcNGs6piaH WT4GtFjigKIFdIDgYwfQKUpJqQb5M6dABY3jz2QJ5G3EqelEt1nlU2eevp9NuRWwYIMz UQaclPZ+nypFvwACxaBRHtj1LZIBVzUF6JP+3VbvAQyPdKQfk1ShxfeyTgDRtxi7Ogch fo2tDf5F0foCmSV0pk2Z2DJHhHoXcOlWg3eXMPsVV3TTWt4Bj7L6rbasyIzpXRm5zt3e 3XSQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.50 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com. [209.85.167.50]) by gmr-mx.google.com with ESMTPS id w2si253142edi.2.2021.06.16.23.55.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 23:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.50 as permitted sender) client-ip=209.85.167.50; Original-Received: by mail-lf1-f50.google.com with SMTP id r198so8573937lff.11 for ; Wed, 16 Jun 2021 23:55:12 -0700 (PDT) X-Received: by 2002:ac2:5f1d:: with SMTP id 29mr2842281lfq.1.1623912911722; Wed, 16 Jun 2021 23:55:11 -0700 (PDT) In-Reply-To: <493d0aa9-47f5-ca8d-2ef5-8e63f965c529-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.50 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:28624 Archived-At: --0000000000003fdbb405c4f0b030 Content-Type: text/plain; charset="UTF-8" --filter/-F is for JSON filters. Lua filters need --lua-filter/-L Den tors 17 juni 2021 08:27'juh' via pandoc-discuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: > > Thanks Bastien, > > Am 16.06.21 um 23:59 schrieb Bastien DUMONT: > > Maybe it's only part of the solution, but backslashes should be escaped: > > > > return { latex('\\begin{solution}'), el.content, > latex('\\end{solution}') } > > while this sounds familiar, it does not change the error message. > > I guess that I miss something fundamental with applying filters. > > The filter is called with --filter filter.lua. > > I also tried the filter cited in the original thread with the same error: > > https://github.com/rstudio/rmarkdown/blob/master/inst/rmarkdown/lua/latex-div.lua > > Any other idea how I can achieve this? > > \startparagraph[intro] > ... > \stopparagraph > > by using this in the md-file? > > > ::: intro ::: > ... > ::: > > > TIA > juh > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/493d0aa9-47f5-ca8d-2ef5-8e63f965c529%40mailbox.org > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDmtv1iLv8GsKzjxSzmvHzuOfpP6qrc21TUEYturw_xTQ%40mail.gmail.com. --0000000000003fdbb405c4f0b030 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
--filter/-F is for JSON filters. Lua filters need --lua-f= ilter/-L


Den tors 17 juni 2021 08:27'juh'= ; via pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:

Thanks Bastien,

Am 16.06.21 um 23:59 schrieb Bastien DUMONT:
> Maybe it's only part of the solution, but backslashes should be es= caped:
>
> return { latex('\\begin{solution}'), el.content, latex('\\= end{solution}') }

while this sounds familiar, it does not change the error message.

I guess that I miss something fundamental with applying filters.

The filter is called with --filter filter.lua.

I also tried the filter cited in the original thread with the same error: https://= github.com/rstudio/rmarkdown/blob/master/inst/rmarkdown/lua/latex-div.lua

Any other idea how I can achieve this?

\startparagraph[intro]
...
\stopparagraph

by using this in the md-file?


::: intro :::
...
:::


TIA
juh

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to
pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/493d0aa9-47f5-ca8d-2ef5-8e63f965c529%40mailbox.org= .

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhDmtv1iLv8GsKzjxSzmvHzuOfpP6qrc21TU= EYturw_xTQ%40mail.gmail.com.
--0000000000003fdbb405c4f0b030--