From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31795 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: converting links to footnotes... including page number in footnote?? Date: Sat, 26 Nov 2022 10:28:22 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37497"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBSWUQ6OAMGQEXMIELOI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 26 11:28:32 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oysQB-0009db-Tq for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 26 Nov 2022 11:28:31 +0100 Original-Received: by mail-lf1-f64.google.com with SMTP id a26-20020ac25e7a000000b004b21ed7d4e4sf2456081lfr.15 for ; Sat, 26 Nov 2022 02:28:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669458511; cv=pass; d=google.com; s=arc-20160816; b=d8QwB9cyBHXfvF93wcnKQl91DD1KROtM1zq061x7bOrVhNSzS/9Kmn1Zrhs94dciyK p7ckc6PwH8eRvx5I45+FZWS9NrrPOj3V9vfN0Q9R/uuQs2fGrhzy9nMwoRPbs83SeTZy ZgwvMx3S5NFptsGItX6qOY6KUJGerjusUyj12APn6TzvdAB8Qo8O+hPJkwSi8CtwzkaE 3H6RwG5WPKjCoK0PbF9yHV3zATFwc4FktfQu24cEqtNTStyaNNPI2vCAV3QVa91dk2tV NbAraxm3N/hLDJYzthKqbDTDuHhf4oUrHadB2gApFg1O3ZD07fm/xOcbx6kIVYag+SVL OHLQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=sEZlX1LYqsWdycbq9CDFiPCa7NnCrqhE0p0k6oAbDuc=; b=CvZ5/0ZcUPoBdxkpHBBDUI9qqFp4du3tC2CrWhOjxombXsaSrJ1VExOtRoBiG6XerJ XXOSO4tLRnFr0xhaMkVvMqjoI+67pCNZ8ztWjs44cc8C5NB7LdZrJ56uM0iZZshNt1Xw 5ecClSMZi4eu9N14cKpZf8j4CoKy+Fa/ilnqlTsk2tDicGeYp9SQNYej0+BsWhk4J86p XU4a7wK5kkvyndm1DF/zkuvzVPz3NP0FP6vhHvi3gVMUs784BZUZoPMlKoLW/UCLGF1f Jq4gkpY7j7vVPuaEfS0cABNhO/GdGs1cJ+s1eRvpi7YO6FEIHPkr8bVDEb4ZFM91lpcV iB7A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=e4OdnneJ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=sEZlX1LYqsWdycbq9CDFiPCa7NnCrqhE0p0k6oAbDuc=; b=sXWrjOGluIS8CcMK6Dl2mIZzYHO/b4Ob5qzyEn34HC4SjUctlTjmikcLumdLxl7yWT cfB92Q6kqyMDLptHnZJCYTfpR2D/eciM1cJDz93F/Brn3E8PBHZX2lIxvSGqsVCLTa5O z0Xezh45H1E58C4YOInmaGeeCqGz1CJADATkyM5SHfzdQuviySTE2ZfBWcg7UEDZqcMX X0HajU2ICqswJGhHi8uwQZxgE9jJvBhpd/2zAmwXi7BZPIdDOwVj1Kp3vmu1bCsd1Mzi /PPt91m5XAhCvSDM4v6oev5XZ8iapkznjnWJ6IxHZ7VXK 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-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=sEZlX1LYqsWdycbq9CDFiPCa7NnCrqhE0p0k6oAbDuc=; b=yLXjAyBmi6lvDD5wkO3B3IuN6RQWbXt/C7S4zY0FgrinokfoTfl0OurDKVBwDhSqOk rf1RtTqSpOkl01RSzpcdxrbq5NnKVCe5j9G9UXjTT10d6kEAtsEycZS+sW/7fXbADZnY 7AgWaWIUx73479R0G/Uho8Ycs7B5fqdor1+9+t1zWIZ2b3Edkbko3ZJirOmq55Nhpcif RFqyfZqpBo6HZgudLO/+zaVPNDKPE2rn0VvAh8YIkAnqFwE8DoEs4Zyq8EKcMx4ur+0i Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pnBdfppQDkm1TgCts90Hpr+BhBYG73puF6wBzO2nQfFna8AsqPB teXi1AwXVMUAeVL8ZiZoGKY= X-Google-Smtp-Source: AA0mqf49+CZj3VFCIOdUKDKgt+pXEHjvwTUknJwu5yunapAWZ5UQIXL9/0EZtXYbLujk/VC7rxCDcw== X-Received: by 2002:a19:f713:0:b0:498:f36a:76fa with SMTP id z19-20020a19f713000000b00498f36a76famr14999019lfe.532.1669458511287; Sat, 26 Nov 2022 02:28:31 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:7212:0:b0:279:4599:dc1f with SMTP id n18-20020a2e7212000000b002794599dc1fls1054724ljc.3.-pod-prod-gmail; Sat, 26 Nov 2022 02:28:25 -0800 (PST) X-Received: by 2002:a2e:a90a:0:b0:26d:ccb6:1d47 with SMTP id j10-20020a2ea90a000000b0026dccb61d47mr8838685ljq.199.1669458505511; Sat, 26 Nov 2022 02:28:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669458505; cv=none; d=google.com; s=arc-20160816; b=IEb7eP9ZGmJw6PHhubWV8T8Ufbn724pplGnRR/3fqW6qpS+DB2mBkbZ81HN7gSkgR/ jg9Szt1b0Mt3XRzwxOxrOuR0MnDKYL0PaE8EE4fmVPzbhQQ9NAY3zUjA4Tc0nP62rYOW zSekgXdcYFkPmLP8I5oU/m60YPYQf99N3HqYdOAk7W+Ya7BYC1Nq8F3n/msDktdDdVCv +hJ2dabxi1j2eNlGzGVBChI6gpXk+zGEzqRZoZFZjIh4PBJp6JZeO0PXIK6LXz6ynTxM 9Yzf+IDAdDW7ojrMKNCe4XXnplcMvh+2cWR4+7yhH0zIZXCbuUY97bu+6dA0zw7JyB+B zYAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=czbuK8qpGy3Ty0bqWLhwZ4LScdQlnz6Mil1cZqUXEhE=; b=agpUQPX3AlWOn78Y9iG+ptU4ygjFgOU/2Cdkjlu/y93QLi4NFjN+WosNf6PJ8AZqon ZnZvhF821KXzFOEfespD27JHfBNjjhZhjrhH1HWs6PIb1eEew3S8MEcdbRT9i8P8F1Dc b6I9hXDtIZaIbwXdqB4tQXAk2VeGgKDDzt+8EtwvxC2z+W235fJK6EQVkK32ECInxh0J dLspuy5iJKoprOyXCPvRGTq9RVlDzl781LlvEEtroWXbVjotA8bf5/xZbN6UHegQX1wT oqOftIz7hTXBFTOvexKgnp7ImaklrXlsimMM2mEvfMJ3ufaqyaJOzWyiUItkasj/porS 6OmQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=e4OdnneJ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id d23-20020a056512369700b004b01b303713si280390lfs.8.2022.11.26.02.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Nov 2022 02:28:25 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C3570240026 for ; Sat, 26 Nov 2022 11:28:24 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NK7HD2lftz9rxR for ; Sat, 26 Nov 2022 11:28:24 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=e4OdnneJ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:31795 Archived-At: The problem is that Pandoc does not produce the PDF document: it produces t= he intermediary HTML document that is processed by weasyprint to produce th= e PDF. So you cannot get page numbers in a Lua filter. However, you can inject raw HTML code in the intermediary file (or in your = CSS) that will make weasyprint print the page numbers. The question is whet= her such HTML code exists. It certainly would be possible to do this if you= converted to PDF via LaTeX, ConTeXt or groff, but I don't know if it is po= ssible via weasyprint. Le Friday 25 November 2022 =C3=A0 04:33:05PM, user account a =C3=A9crit : > 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. >=20 > Would it be possible, perhaps with a custom lua filter or some other mech= anism, > to add the page number of the linked-to page? The page numbers won't be k= nown > 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? >=20 > 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? >=20 > It's an intimidating rabbit hole for me, particularly because I see no me= ntion > 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? >=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= 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/m= sgid/ > pandoc-discuss/a93afb43-c939-40c1-868f-1db8eded17d8n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/a93afb43-c939-40c1-8= 68f-1db8eded17d8n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=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/Y4HqRjQQMmKy8yRw%40localhost.