From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31981 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Grenet Newsgroups: gmane.text.pandoc Subject: Slide level in lua filters Date: Thu, 12 Jan 2023 06:29:40 -0800 (PST) Message-ID: <5716cb0a-c39c-4bf4-9449-cfd4aa06aeffn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3742_1066311240.1673533780813" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4501"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCI3RRMGYQKBBVVSQCPAMGQE57NZPEY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 12 15:29:46 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pFyaQ-0000sm-4B for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 12 Jan 2023 15:29:46 +0100 Original-Received: by mail-oo1-f59.google.com with SMTP id b6-20020a4a3406000000b004a5ffc77240sf6841187ooa.17 for ; Thu, 12 Jan 2023 06:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=SWWKet1aZpkxyWj0dSVFQHOg6+pSii7yKPje8kunR2o=; b=fuTDx3564W5FsKzmzXQky/PuYScZ7A+7iekAkkc4ZbqYRyvsF7G2V03ob6JD9GnJAC xKDFhjPPxoQOkjgdRARNNn1Xz0c4ZQwq0DjARJ987LURu0phoEwD0ji+W1XRcVo5GP5c cnIBHzjskKDqTW5R6PjXPnR+u50l/6W915mLLz81bJqkSUUiI95oTaHNMacyZmHxwmJn b4j2dcwWtQowPBb7K2Picbs1Hkz/Fcs6LD9z6ADIHRPADubIAumkr4Bn0a+RJjw+M7MI YA+DJnpQc/EYT+1PRmN1mtLZqujZUurmj5lu3WgUpMB6v9CGtvu0VO+a31kkjVKJUmlL vT3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=SWWKet1aZpkxyWj0dSVFQHOg6+pSii7yKPje8kunR2o=; b=KQNwpxVFDpZbKWm03NUy7iF+SDkAERBw80MmaQpCjOeBpxdprCjeK+fYpBRRH6TmRB vOt5gS0LZZwDlnLgZL2DFFnm1r5N50i262VGuGjJozL7omvjEgkMZTvmgRN6C70AWSjd 4RslVL7uO7nLXWoNptajQIlgMp7qqqqAP6o3XwEaq5CTFEsrIK3TmUlTV39h4B+KWPXM FQIzO7RergllAw7PjnuZ38oMhFkjRY4sjnWPWtgWbSu86Bn6VHUz/qsPEFsyUM+WifWD KdmBTFvJVEc/HEopX5TTNP1ggCI6fg6bv3G8e/RJo7NDwiVCQB/diGT8Ai9Vqk261e/B HNjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=SWWKet1aZpkxyWj0dSVFQHOg6+pSii7yKPje8kunR2o=; b=Una0RJpR+27FH0vCTtT6XtQvrnTicbH6lKIH/s4SarVtrsw3gRiUfceAFgW8PMgXgH zM7ACtrISJHq3flieUj/y3QUPyPR35DN8FNFRad1DimWZXz22A7+huyNmIAPMnlPYXAH IMKir8nSqqNREjKjic5R/iCiJPA6TQuHHQ/FhACZuaJAe1l0h+uiCbZiVeXDyJGk/RO1 dqpJlNDD1xtf3xafN8DCXsw1WVP9n/0YSNZx0zjes3tdXhbJffe7OG7KKWywIs4hA/jv LXUwKCDifCA+spVxzjCfn2z3lk4KHcrVjjWAmHz1MOTe17IWMHTuWm3LZxcvGxbnoPUP +tkA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kp8d+EnRHjYKbI8KYDrnUJiJ1j7+NOWfmBDmQORbXGzEcnjIstE WnoOBHqHqTJdZuj4P9X/P74= X-Google-Smtp-Source: AMrXdXu3pIOD0AxumVImIhrromTGn5L8321Gy4jiilEWeT6HCrP7X7yLPD566+CLQ4aM7ZemuTQV4Q== X-Received: by 2002:a05:6870:2b0f:b0:15e:cbd8:e914 with SMTP id ld15-20020a0568702b0f00b0015ecbd8e914mr121915oab.28.1673533784718; Thu, 12 Jan 2023 06:29:44 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:2782:b0:363:b56:297 with SMTP id es2-20020a056808278200b003630b560297ls644231oib.1.-pod-prod-gmail; Thu, 12 Jan 2023 06:29:41 -0800 (PST) X-Received: by 2002:aca:1c0a:0:b0:35b:aacb:988c with SMTP id c10-20020aca1c0a000000b0035baacb988cmr5687765oic.189.1673533781537; Thu, 12 Jan 2023 06:29:41 -0800 (PST) X-Original-Sender: bruno.grenet-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:31981 Archived-At: ------=_Part_3742_1066311240.1673533780813 Content-Type: multipart/alternative; boundary="----=_Part_3743_1201304438.1673533780813" ------=_Part_3743_1201304438.1673533780813 Content-Type: text/plain; charset="UTF-8" Hi, Is it possible to access the *computed* slide level from a lua filter? I know that one can access to the slide-level command line option, though it is not always explicitly provided. In that case, the writers (? not sure) determine a slide-level by some rule. My question is whether this slide level can be used inside a lua filter. For my use case, other possibilities may exist. Indeed, I am creating Beamer slides from markdown. What I'd really like to access is the "(beamer) block level": That is, headers with a level lower than the slide level are converted to beamer blocks in the LaTeX writer. I'd like to be able to apply a filter on these beamer blocks. This corresponds to applying a filter to headers of a certain level, determined with respect to the slide level. It may be possible to achieve what I want with a custom writer, but I would prefer to stick to filters that I am more familiar with. Thanks, Bruno -- 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/5716cb0a-c39c-4bf4-9449-cfd4aa06aeffn%40googlegroups.com. ------=_Part_3743_1201304438.1673533780813 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Is it possible to access the *computed*= slide level from a lua filter?

I know th= at one can access to the slide-level command line option, though it is not = always explicitly provided. In that case, the writers (? not sure) determin= e a slide-level by some rule. My question is whether this slide level can b= e used inside a lua filter.

For my use case, oth= er possibilities may exist. Indeed, I am creating Beamer slides from markdo= wn. What I'd really like to access is the "(beamer) block level": That is, = headers with a level lower than the slide level are converted to beamer blo= cks in the LaTeX writer. I'd like to be able to apply a filter on these bea= mer blocks. This corresponds to applying a filter to headers of a certain l= evel, determined with respect to the slide level. It may be possible to ach= ieve what I want with a custom writer, but I would prefer to stick to filte= rs that I am more familiar with.

Thanks,
Br= uno

--
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/5716cb0a-c39c-4bf4-9449-cfd4aa06aeffn%40googlegroups.= com.
------=_Part_3743_1201304438.1673533780813-- ------=_Part_3742_1066311240.1673533780813--