From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32328 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Re: Apply filter to beamer blocks Date: Mon, 13 Mar 2023 13:00:01 +0100 Message-ID: <22f6d608-baef-aa60-6fea-e3fb2d44d0c8@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35900"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCI3RRMGYQKBBQ5AXSQAMGQEO6LH7ZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 13 13:00:07 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f63.google.com ([209.85.221.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pbgqV-00097H-Dl for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 13 Mar 2023 13:00:07 +0100 Original-Received: by mail-wr1-f63.google.com with SMTP id i18-20020a05600011d200b002c94d861113sf2068349wrx.16 for ; Mon, 13 Mar 2023 05:00:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678708807; cv=pass; d=google.com; s=arc-20160816; b=LmvSXAyDW1p38VsWJ9JBcfYFSoOyUQJWj42e0b0IGGN6XZ0rLsnTCVuUW+yJXhoF3W v5wrVsDJGPZT0Q6FKbFMpe7zuluxLABv9FtePzQawi+XInJtSoYpwqvIJ9dFga3Yu9P8 X7O5vOFpSC2glRIqljc6zahEVX7gYlfkl1VRBpz/7YrsrpQ0/FQ5oFUfovJ58jAnAzn4 7WjWxP+kjv4p16JES+5ufEPXaDmDF3MUcqYchX1MaWpaSn930wwJ6wxMqzfQaFrr57ii JJz6oDWLleevO0H5xgneldvNjVala34GoD9VW7gBeWbID6iy3IZKXzb8btXq9Vb4x0rl rnWw== 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:content-transfer-encoding :in-reply-to:references:subject:to:from:user-agent:mime-version:date :message-id:sender:dkim-signature:dkim-signature; bh=RMXb5z7VUzcC7juAphB+nRLPBKASc01Wr8LnbBk4e2c=; b=JeZFfHrFzsRKBrhIgU1bI06B8kJr3cU+tXRsdWIFbjGhyhslCfHFbA3LJ5mNtLKr8V LfZBEm0PLoS2Rdir0RMuHay1+qUzSa9kfErpDZOZpSxRG0IHW4p3Cwagy/1YuYFMfBVS F5rCIAyDes8YuJmVkuQ2Kv3omL7RSjoUYwVEIVkV+XHs9Ycwas2t1QVIHAelI45/CwiP bKtDfx0HwEJk3+TJVWn5nfi9mP3ar29zyseVQsYxzwceLBfDjz/NLYeLD2Nb36n7039d roazdUCqjmsUVkoow4Bej9jZ8e9BxCjH5OZ4k/ziBK2C2FytZm2PoaIk+f2TK2I4reUM 9AJA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hyvS9qF0; spf=pass (google.com: domain of bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32f as permitted sender) smtp.mailfrom=bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678708807; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:sender:from:to:cc:subject :date:message-id:reply-to; bh=RMXb5z7VUzcC7juAphB+nRLPBKASc01Wr8LnbBk4e2c=; b=a6FSSe6tt/3+JaFNrdT3nsex/+aTRE7VGoejxF0lIIjOCc+T0XsIULbcAcOumXjE2p O2sj1xPMXDCl6SfLCw+cqex2lLBGMZrayZi4cmRIU2C/LXmyi9mQYtRY/I+L+gjholFp 3ycIB0/tXKj/F6mWrAlF3WOSo/nuS9deiIT5kmaQSKm42pldDxn87Fa3jrguYQx82uVo Ah1b4TOpus4WcKI7eL0zITPV17Xpl8ZsZ66Wjkq40Cs3X+MmXKLoqqfc10lf2eTUvA7x ZbSooY0h5IR16ggMH167olWMu16DQDSkOZRyRufB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678708807; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=RMXb5z7VUzcC7juAphB+nRLPBKASc01Wr8LnbBk4e2c=; b=ejcsdICiGiZA+jqlepF27fHZtYZgGkuuq83n3M8bF9tOX3SMoSMGcHkJ7YJI5jq+eV MKUC036Rznd176lrykwAH0B6JZHcxxYVxW1IBF8U93wb5re/vDgRTrVhlXEnHNF0dbL2 TpxybOe7ySeBsl7QsPruDsAdq73H+LQGFcF8uzhdZo6HRhL1a85kpYC32BPoMZrzaD/Y On4usjlDOXP50wDOzeAVLjwe3rtSG35Zu1fg4H4DbnGam5XDqTkjGQ3eePG4jREu6kiX vAhwoc/peu6drAHvLjhpAqSfVj7Gu0gKccKCL4TiPi9hABGOhCH2gy X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678708807; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to; bh=RMXb5z7VUzcC7juAphB+nRLPBKASc01Wr8LnbBk4e2c=; b=NPECEZV83uPBcG9pAF8pzXkEDc0YkSdrXcw8cw17kt5G0Fo2d1hvxTQysl15KTNDb6 a2EcwrBcAB0Ao/Fo2V2uKWJywZns7IOk07naCh7u8mNXSUuVDxH5wkUu0Uq6+MBJ8BFP xK1tnKi2hmXGLU9AC4FmXRCqF76tpprRNMiPv2ws6zSl6uc62BlvZRLm6s/c6uETbADm /dV80zuyoWMFUgjC69A07dFO6pSycMQOOUYsiCqZqmHvj7gjUmEJR6/PY0ZzuarzFMZs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXDjzUOywnooY3MD0TuiF+HXAlajNdYJ/ubVGrudDTYH4QvAsI5 n6WFHZXAkIMg0kEJ+errCKw= X-Google-Smtp-Source: AK7set+DmjspYbSHu0+AW19cxdt+SrvURbJOwiAA5xe5+cMVLCPRLMC+iRaIZ1pIiYOOgUnsb5Fkyg== X-Received: by 2002:adf:ec4b:0:b0:2ce:a7b8:411b with SMTP id w11-20020adfec4b000000b002cea7b8411bmr903981wrn.11.1678708806571; Mon, 13 Mar 2023 05:00:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:3c8e:b0:3cf:9be3:73dd with SMTP id bg14-20020a05600c3c8e00b003cf9be373ddls8212765wmb.3.-pod-canary-gmail; Mon, 13 Mar 2023 05:00:02 -0700 (PDT) X-Received: by 2002:a05:600c:3150:b0:3eb:9822:e8 with SMTP id h16-20020a05600c315000b003eb982200e8mr10108274wmo.24.1678708802779; Mon, 13 Mar 2023 05:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678708802; cv=none; d=google.com; s=arc-20160816; b=qgsVpzKk/VAt27F3/e1to1/ZekA+v9ksH3lYfkSU07NB/VHz8eoB2EsZdz5XM11xJE 9pJIDQ4nxyLZS6lsOlxU8LgYfWU4ngEYqaPKmnXYp0AUwcNUN2uWsXj1eaD5ivjm/S+k MvC4An0W8d7xfMD/6D32nHiUoeJbNhAL70hKz/Joahqh5iNBeIrDeV8jR4ph1N2lWnfo 8lcFMfZu/x4xH14TB/oMD/QBiclf/5u0Mct3MYZNT/vzYMxkpbbd8liMpzgF7V7iOzdu /pkBKrC8A46+celgdTlnggcD9VAqIKt1igQOxSmZjszG1yQzrVSFJAy/n7IUbukM+nhJ WNxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:dkim-signature; bh=17CCdo162H0meDFJklvSjgdyUSfMLvEW44iMc8bWA8I=; b=oEnHXjsqSlFIb71MCJe2QKktkxsqEP1DbnGZf2DqoIqikMNf0S2nKOF+AWjWTdfkdc vTMFEGr9497WSmWiYBFhVIOhsPZ3nsAG4SC6RpznGrnCmENwGhz8usTNTyd2rvCa08go bXOvvcw1b1usz/rV4MkOQKtGuN2exM2Ilm/M8dTZXhsnnCm0zPuRlsw8TdYKMwabCDFU b6WEOl9/V0x0jKqfP7hmYwLbwZIJbpZ1JtwmjSEbXkjCT4SQsGHOtJ3MgNEYAGHjZDig /ZWM4ZiGDfJEMjrNTSFN7GVW6n+tc64EM1V5ZHJC/f1JXmscnlBmmiYplZcTC2zk9pmj NDEg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hyvS9qF0; spf=pass (google.com: domain of bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32f as permitted sender) smtp.mailfrom=bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com. [2a00:1450:4864:20::32f]) by gmr-mx.google.com with ESMTPS id ay20-20020a05600c1e1400b003ed2382d2fesi139267wmb.1.2023.03.13.05.00.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Mar 2023 05:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32f as permitted sender) client-ip=2a00:1450:4864:20::32f; Original-Received: by mail-wm1-x32f.google.com with SMTP id k37so7799108wms.0 for ; Mon, 13 Mar 2023 05:00:02 -0700 (PDT) X-Received: by 2002:a05:600c:a48:b0:3ed:245f:97a with SMTP id c8-20020a05600c0a4800b003ed245f097amr2383318wmq.19.1678708802386; Mon, 13 Mar 2023 05:00:02 -0700 (PDT) Original-Received: from [129.88.37.60] (ljk-casc-60.imag.fr. [129.88.37.60]) by smtp.gmail.com with ESMTPSA id p9-20020a05600c23c900b003ed23e9e03bsm3429305wmb.46.2023.03.13.05.00.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Mar 2023 05:00:01 -0700 (PDT) In-Reply-To: X-Original-Sender: bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hyvS9qF0; spf=pass (google.com: domain of bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32f as permitted sender) smtp.mailfrom=bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:32328 Archived-At: Thanks for your reply. Ideally, I'd like something which is not based on th= e command line options, but that's already a working solution. Best, Bruno On 10/03/2023 12:00, Bastien DUMONT wrote: > If you set the --slide-level option on the command line, you will be able= to match the headers that are below this level, i.e. those that will be re= ndered as block headings. Example below: >=20 > ``` > BLOCK_LEVEL =3D PANDOC_WRITER_OPTIONS.slide_level - 1 >=20 > function Header(header) > if header.level >=3D BLOCK_LEVEL then > print('**********\nIt works!\n**********\n') > end > end > ``` >=20 >=20 > Le Friday 10 March 2023 =C3=A0 02:24:31AM, Bruno Grenet a =C3=A9crit : > > Dear all, > > > > My question is a rewrite of a previous question of mine (https:// > > groups.google.com/g/pandoc-discuss/c/wg3UIgI7G8I/m/V8GoGf9ACwAJ), with = less > > convoluted explanation. > > > > For conversion from markdown to beamer, is there a(n easy...) way to de= fine a > > lua filter that applies to headers that will become beamer blocks? > > > > The goal is to be able for instance to add classes and attributes to th= e header > > becoming beamer blocks to control the display. A few examples include t= hings > > like "width =3D XX%", or ".centered" for the inside text to be centered= , etc. Of > > course, there are other ways to achieve such results, but the source fi= le > > become kind of ugly. > > > > > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send = an email > > to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2]https://groups.google.com/d= /msgid/ > > pandoc-discuss/e9bfa616-059a-4df7-9d92-d462ea6f3ed0n%40googlegroups.com= . > > > > References: > > > > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2] https://groups.google.com/d/msgid/pandoc-discuss/e9bfa616-059a-4df7= -9d92-d462ea6f3ed0n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfoot= er >=20 >=20 --=20 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 e= mail 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/22f6d608-baef-aa60-6fea-e3fb2d44d0c8%40gmail.com.