From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31793 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: user account Newsgroups: gmane.text.pandoc Subject: converting links to footnotes... including page number in footnote?? Date: Fri, 25 Nov 2022 16:33:05 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3310_1275444070.1669422785944" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32859"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD2NNN6DBIIMHPMFTQDBUBGB5BJQS-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 26 01:33:11 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oyj83-0008Og-3O for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 26 Nov 2022 01:33:11 +0100 Original-Received: by mail-ot1-f57.google.com with SMTP id cj4-20020a056830640400b0066dee63bd77sf2512638otb.9 for ; Fri, 25 Nov 2022 16:33:11 -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=Q00MQXhPppJX4NkplmcoHuA8/95z5HlTiQjUt7RDUYQ=; b=SLlNrQA0RIbElOpaVI8eB56SF990vB1vLJzoBHyYcwclc8Z/udVXc5+RjSKs6ml7LR uhaiuq26JTHeeF09Lh/UUCSYFxLBzcnk8fsfKz8/lKRl2m3P1UavE4bTSE0gzl0vIrDE Qt9RTHsn7WF7G4mzPX31A6c8LE199ho5JRqBjHFmBHtTApUYie2gExipus+ga51k+McK aKN2fk7c3pK0XO/W/r5TetULNmmpLHKK3LBRnwN0XAuXZFWrHnxIKbfGk1o07AWoWVcJ URX9+V0Iom3llEC/BTHef5vonDKMNshl34F8dojKKKW6faDYvD9xboS+iHqsQZDmnFt+ /jMQ== 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=Q00MQXhPppJX4NkplmcoHuA8/95z5HlTiQjUt7RDUYQ=; b=ApRPbqwon9se02ipjvjaLYnf3bauRtsVRMisLAIdSpbF1nDiRQXtEZtrnyXd6WR6ee UpW95ZokZb3ndsDcDLvF9AF1JSxFUHvGBEa8zY/HN/RX9ChbfwBlrVeKDFVFyFXqRojz WBJquzboTuC2ap9qGs2CBcdjyStqcxvgGwbva0b4NounypPqtXbW7V2UmXWMXLRX4vJF MxNlhSFFPhsfTbckD/BWLYLXKK0HtaetkzIjpDpNPx7ONHf98hrE/SevLAI48vmaYRfu 7FnFnN4eTyWLdMSmKqVs7OlBPvBEGXBAyyd5hW/ewKPJws5XwKjzw3sEPcfuKneeiIwZ AtSQ== 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=Q00MQXhPppJX4NkplmcoHuA8/95z5HlTiQjUt7RDUYQ=; b=vQi6WIMqH9xqvhvwxhYcUzGQGqBwBq0OAG6oZkmXhia+XjTYsSZUdiWKhUbzLDd2Tq s386KX6qov7D44HG47kiElup0chs7zJje8EovPrjjd5cbYrzuFLt8MiJ6LSl5AduYBtB mBxq0VmHhFpCorS6709AElvlGG5MB7Kr+WTGtL832pW2RWtVCJHa+rAicp6YD4Hdc5CU Yg5Qn/k8avvj9yML/6k3EVA6xkZ5foYS2TjLlFDz8vni23GP1Gwv9f9aKefqWkGKhWnk GQqCwPDMgzVizwH8TEMTPQ/WuXGfs5pDkCsNnCCIdrEPg1mdQnVhF9lODdpRL6xwOlZt dRiw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pkVrtb/HQhpFi98t1G0H9N1ZM3klFq4GAQHoWGUE/LyMoqOG5qs WDr9ILdYkI8EGPOMKjM4VJg= X-Google-Smtp-Source: AA0mqf6Of2TR6IXpAuBEjMBIrAL2GZW5wr3EQ6SqGcxwccMm3/wIfQbkYGTZxZjWqRg/TFe3LGubvA== X-Received: by 2002:a05:6808:1494:b0:350:37f5:9a9e with SMTP id e20-20020a056808149400b0035037f59a9emr10397913oiw.201.1669422789896; Fri, 25 Nov 2022 16:33:09 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:e042:0:b0:35a:9ab0:cca9 with SMTP id x63-20020acae042000000b0035a9ab0cca9ls1664008oig.7.-pod-prod-gmail; Fri, 25 Nov 2022 16:33:06 -0800 (PST) X-Received: by 2002:a05:6808:8f6:b0:35a:ce21:ecf0 with SMTP id d22-20020a05680808f600b0035ace21ecf0mr10332687oic.10.1669422786778; Fri, 25 Nov 2022 16:33:06 -0800 (PST) X-Original-Sender: mail.user.sadf-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:31793 Archived-At: ------=_Part_3310_1275444070.1669422785944 Content-Type: multipart/alternative; boundary="----=_Part_3311_1351534783.1669422785944" ------=_Part_3311_1351534783.1669422785944 Content-Type: text/plain; charset="UTF-8" Using pandoc with weasyprint pdf engine to turn the markdown files from a blog (static site generator does the html conversion) into a pdf for print. Would it be possible, perhaps with a custom lua filter or some other mechanism, to add the page number of the linked-to page? The page numbers won't be known until pandoc has already created the document, and I don't know where in 'the pipeline' the lua filter intervenes compared to when the pages exist...? And If the pages exist with their numbers earlier enough, is there an object or something from which lua can get the page number? I haven't found anything about page numbers in https://pandoc.org/lua-filters.html#module-pandoc.utils ...am I looking in the wrong place? Can anyone tell me anything about this? It's an intimidating rabbit hole for me, particularly because I see no mention of "page number" there in the docs, which makes it seem kinda hopeless actually. But maybe one of you know the way and could point me in that direction? -- 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/a93afb43-c939-40c1-868f-1db8eded17d8n%40googlegroups.com. ------=_Part_3311_1351534783.1669422785944 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Using pandoc with weasyprint pdf engine to turn the markdown files fro= m a blog (static site generator does the html conversion) into a pdf for pr= int.

Would it be possible, perhaps with a custom l= ua filter or some other mechanism, to add the page number of the linked-to = page? The page numbers won't be known until pandoc has already created the = document, and I don't know where in 'the pipeline' the lua filter intervene= s compared to when the pages exist...?  And If the pages exist with th= eir numbers earlier enough, is there an object or something from which lua = can get the page number?

I haven't found anything = about page numbers in https://pandoc.org/lua-filters.html#module-pandoc.uti= ls ...am I looking in the wrong place? Can anyone tell me anything about th= is?

It's an intimidating rabbit hole for me, parti= cularly because I see no mention of "page  number" there in the docs, = which makes it seem kinda hopeless actually. But maybe one of you know the = way and could point me in that direction?

--
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/a93afb43-c939-40c1-868f-1db8eded17d8n%40googlegroups.= com.
------=_Part_3311_1351534783.1669422785944-- ------=_Part_3310_1275444070.1669422785944--