From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31974 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Duplicate - non working footnotes after converting MD to PDF Date: Tue, 10 Jan 2023 21:52:45 +0000 Message-ID: References: <1e5c9c3d-21a4-4f5f-a3d7-14845a1eb300n@googlegroups.com> 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="16566"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBMF466OQMGQEN655ZCQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 10 22:52:55 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f189.google.com ([209.85.208.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pFMYB-00046o-Hy for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 10 Jan 2023 22:52:55 +0100 Original-Received: by mail-lj1-f189.google.com with SMTP id p16-20020a2e7410000000b0027fdc588a62sf3329302ljc.17 for ; Tue, 10 Jan 2023 13:52:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673387575; cv=pass; d=google.com; s=arc-20160816; b=Z8QzI53GgXHDObNZIHsn59MRyeMzch33hl4S8TBWkAgt3/W83JvKFKtQFCEuh1B0zL ivo/mXYEOxK90vKP84uRETm21pMIIMemGIW952HKsUwwDHNOzXm7Nd9nS7OhkGiehvXn NpiyvnB0IZjqX1sznTZllvnuJEj6PylRtW565Q1i0QPBPKhB/W7IJSkFu5UekC7zx30b vfa36eRq2xAJ2M+lb99Z63PtbjENO1djpqIucHbVGT51d3jUIZRrMdt0Uaj0p77IVRuQ e5MdIC2RC/394X7/oz4VzC2UUxEktX3RCMvURLznwO9iLs6JewDbGXCCZ+QZThbJujF6 bIMw== 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=iuq/aeN8M3TipU4FQpv1IydRNTUZFAN0mZVkierOb7U=; b=ohepZPXXSw39DjdOGwMdytC69p9yLf+a6Qz3IIGOolw5Mk+7wjWsSKlh+FaWVpgEfb swcHDnjHYchkf02h0/HhFnVu48I1xeOauQdPPO/lNLmywfGIStidgqy7PyzXjcBwH63g Q/WcoWdrdOB215xk2cSa+rvI0PNSnvAhEmyT+AjaZEYT6LURXXbOvgrQdpQYSRPR/ud2 du5NtPQWSXFJK1CE5/COxKEP9OswRo/zUE2uH2CR0/Jr9KrfZJ87XOIIZATHBS5TC3hD 3OI1NOt3PaGuAJuG8dqxP4f4WcmWcma/ZcWuZk7FuGaAN4dC+vmiZJb9HZTz+u1nPIk0 iRTg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=hgVDVxmz; 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=iuq/aeN8M3TipU4FQpv1IydRNTUZFAN0mZVkierOb7U=; b=FA8N0vsbxtcYwmnIo45uiJ8ssCLLYl8rOFwGcDeGmMTLhvj7RyqhTh0t9iN5OYAdpf ++obIE4j9b/OD7M8tsmrCP1Q1Up1+LQC1KRiZp4n03U14+cBtvEUTsWWF8BnRBwuEgmJ 525NBZOc/ztlwOj+HVwtX/wQh/I/vAUURkvpVX9P0uCNhWwp/hD+RRyFWmDpjCkFFu6m gZmn5gUeBRObP+w1WhAi4b9nLpdD+90fsBTvgZPv/eh5iII3XCj/ocrPP9hqnvYDtW7E OqXagphUL/T99P0NQKdb+dyxOlB/by+0PsFJ6KoeXrnEx 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=iuq/aeN8M3TipU4FQpv1IydRNTUZFAN0mZVkierOb7U=; b=ZIBehE1mwmI0Z9rcgiAaeCItCXKwk1G2b7rzpz3jm2Ql2vYe1QZTP3jt9GtJW6F8yl 4zhwqzJTO+C5U7+ltmwVnNfj7Nd2O13H+pak9GPE0S9sdi6CObXnSt6/UI8RnNdEH7oO lJiid+PJkH2tgThVpxhND8IrENn19iwzlCFKePeNlqZfKC/2+9m8ql+WgWNN+ea7+Qrp hA9M4HLVbfMSR5IJfoBZk5csSwdDRvg7PjCEFC1vD/HxsMBQ7a3B3Xs0skHaGzDNa7w0 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kpGQGnFsnFsslu0LB7x9tQdvi4pX0eXblWlX3JYfCxaophGsedX Vq6kUeDIJBHKRh9oMbhT/Z4= X-Google-Smtp-Source: AMrXdXvDwUEunQGbrhcVnMpFf7OOw/dPmZNG3/JF3frc26mv3oYZfm14LnLsNKv0VY5xcKtKKHlG3g== X-Received: by 2002:a2e:a368:0:b0:26f:c160:6dde with SMTP id i8-20020a2ea368000000b0026fc1606ddemr3158590ljn.20.1673387574849; Tue, 10 Jan 2023 13:52:54 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:58f3:0:b0:49a:b814:856d with SMTP id v19-20020ac258f3000000b0049ab814856dls4401694lfo.1.-pod-prod-gmail; Tue, 10 Jan 2023 13:52:47 -0800 (PST) X-Received: by 2002:a05:6512:696:b0:4cb:15d4:33b6 with SMTP id t22-20020a056512069600b004cb15d433b6mr14412413lfe.50.1673387567720; Tue, 10 Jan 2023 13:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673387567; cv=none; d=google.com; s=arc-20160816; b=nin9DHO4udK6nEYmapPyz+B7iEHabRcWQeMaDff+ny7x9iCtAiDFfO+LHKclheajBb r4SfDe6YTNnTIhDKqri7Y/ZXNrPZUT97/8bp+vy6bs8IfF5iIlxSzQXQx0J7t7BK9iIP VRNt4rMYgKfVh4oUKJ+0asQTPHLoflX62YNbWBBoaeVXlsg/fFtLGigAPzJ/JxUAo0ph XvBK59sXVjPMI5UJ9DVHzfyltbL6VbN0gysU115/chT85UKcM72HjH2jRnrTvolDasDi Cp1zcCWzUb081m2t5sbSKG0SAmqSZ8onVGlwRrbLL2KRPYYmrFXE36DUV9IeQIUe0qVK M2sQ== 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=Hi/oGiyqNkZmkWe0czyhFhDke42k04HtV4zhnc//fQY=; b=i+PGkW6sAUA9px44dg7aYIw0Q3IigpnfLDGmewTU0rxWQMfU+vC2sUmpWy0OepRgtb twmibGrjN1V0g1BEU1pRfdtZvLeYCRvk833pRCLTm7HhwNqBCPeBdsBl94KVhqBJdq+S MZVSCIgItmUhuwmltHd5XWuXN5H0KpORkanIcX7Y+7gHG5e6GCGXIfCr9PygYuEv6gTz 5CkJ+Zu7i6GcB2h7jX7hOPR2ZsEbTRlgWi85bOW6Sct1F6JKOVH7nYRCjmbmVk8TS0ut E/W3T6d7ZaGvX9dqjLT89lQkpxDRIDPWW0L1RXXWY1QaU51x2DIggDSjL/Y9+NGFZq89 0IwQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=hgVDVxmz; 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 c19-20020a056512075300b004b4f4360405si553200lfs.12.2023.01.10.13.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 13:52:47 -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 EC4972403A5 for ; Tue, 10 Jan 2023 22:52:46 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ns4L63Fk3z6tmY for ; Tue, 10 Jan 2023 22:52:46 +0100 (CET) Content-Disposition: inline In-Reply-To: <1e5c9c3d-21a4-4f5f-a3d7-14845a1eb300n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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=hgVDVxmz; 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:31974 Archived-At: Pandoc, by itself, does not set the footnote numbers: in only puts \footnot= e{} markup in the TeX file from which the PDF is generated. So you have to = search for how to do what you want in LaTeX (e.g.=C2=A0here: https://tex.st= ackexchange.com/questions/32401/footnote-backreference-with-hyperref) and t= o include the required commands in a custom LaTeX template or via the heade= r-includes metadata variable. Le Tuesday 10 January 2023 =C3=A0 11:53:29AM, Javier Pastor a =C3=A9crit : > I'm trying to create several chapters for an esay I'm writing, but i'd li= ke to > restart footnotes numbering for each chapter and I don't know how to do i= t. > After searching for information, [1]I saw this on SuperUser (StackExchang= e) and > I tried to replicate the solution. >=20 > In that example, the user tried to convert several .md files into an html= 5 one, > but I'm trying to get a single PDF file. I generate the file, but it does= n't > work as I wanted. >=20 > The file structure is like this: >=20 > chapters/ > 01-chapter.md > 02-chapter.md > 03-chapter.md > format.sh > parse.sh >=20 > [2]=20 > parse.sh >=20 > pandoc -t pdf -o ~/Documents/test.pdf --file-scope chapters/*.md >=20 >=20 > format.sh >=20 > for f in chapters/*.md; > do > pandoc "$f" -o "$f" -t \ > markdown+smart+footnotes-escaped_line_breaks+example_lists \ > --columns=3D80; > done >=20 > In this example I have the same problem as OP had: >=20 > "The problem is 01-chapter.md and 02-chapter.md have both a footnote [^1]= . > Basically I would like Pandoc to handle the footnotes for each file separ= ately > and not allow cross-referencing across my markdown files but I can't see = any > way to do this". >=20 > The solution, apparently, is to use the --file-scope flag. I apply it, bu= t on > the resulting PDF there are two problems: >=20 > 1. Footnote numbering doesn't restart: I had [1] and [2] in Chapter 1, a= nd [1] > and [2] in Chapter 2, but here I have [1] and [2] in Chapter 1 and [3= ] and > [4] in Chapter 2. > 2. No links back from the footnotes to the text where they were used. >=20 > I'm just beginning to know pandoc and I don't understand exactly how that > works, but I guess there must be some option in pandoc that can solve thi= s. Any > ideas? Thank you >=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 [3]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [4]https://groups.google.com/d/m= sgid/ > pandoc-discuss/1e5c9c3d-21a4-4f5f-a3d7-14845a1eb300n%40googlegroups.com. >=20 > References: >=20 > [1] https://superuser.com/questions/1454255/pandoc-duplicate-footnotes-mu= ltiple-files-same-name/ > [2] https://superuser.com/posts/1454255/timeline > [3] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [4] https://groups.google.com/d/msgid/pandoc-discuss/1e5c9c3d-21a4-4f5f-a= 3d7-14845a1eb300n%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/Y73eLYHDLtG7e9HW%40localhost.