From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30999 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Marek Stepanek' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Print footnote at the end of each chapter Date: Sun, 17 Jul 2022 13:44:07 -0700 (PDT) Message-ID: <4af3664b-3552-4f66-b86e-b63bad2d59e9n@googlegroups.com> References: <2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en@googlegroups.com> <53b53720-9cfc-449f-a3a9-e7948c7b3f21n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2672_1406881989.1658090647896" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34749"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD6M3P4AXQHRBGHJ2GLAMGQEUTIVXHY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 17 22:44:13 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f185.google.com ([209.85.219.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDB7c-0008oJ-CM for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 17 Jul 2022 22:44:12 +0200 Original-Received: by mail-yb1-f185.google.com with SMTP id o200-20020a2541d1000000b0066ebb148de6sf7529688yba.15 for ; Sun, 17 Jul 2022 13:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=1fcxr+JtNbu7ZBO9AQ6p13rOlTKdub4WPJKkOBKYEAg=; b=WGp4jUdirxgS5PTYBTrUcTJ+gtmLtzZxCwptO1oYsucecZmxAnwLyjpeEpj2JCxzHs bcZ6uzb5r8wqwJU2JL1SzMSfuVuADzo0pD/fE/eBXYaYP0LzHSBy2hIQs4wv7C1MElLH LbS7nVZVW0CxCitlB/TsiA3wntLkL5wZOMQoUfIdtbD5R++/vPYH4slo2wdVU5NzAgku jG0iybjP8UO/q2cAcso4NUDyI8/1PZa45Y83ye4ztpZtHHmD4dNU9IZWlzVSUT1YjD0e KGtw1dZJ7gfao8Wq8PPhZtAYVkAMzW4geaopvkIRAGGl+6RcKwY+omcowDDh7Knupu7k GLHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=1fcxr+JtNbu7ZBO9AQ6p13rOlTKdub4WPJKkOBKYEAg=; b=QncE3XJVAUgN7SqG7vqD25C69882UeCw0IXOQADyiFIuanH0cA20Ll7b6vxFr/AAZw EoSeM1K6aeHLEiDYyqNwu+VrfjtULWRXDKYB9OcD6rxNPWOl+jrg0K3JAwV/cUjLOeec 0epo7L7N60cGYvwOfJyllbxZ+ZPzHCNKuX8HnknHRYFQNPiMBWLASeMKkK/lQrNNLlBl juSWXGeOfaR7vcx3B5EBLLKZOJvdbfU8iKMt3KUGdtcbf+hNPeBkbo9mUvxsdvhLL90F om6bKI7Ci1H5Yq+fUHEEAU6N899Y3n38diYp2LWGp06kYTQAgamdDd+54k/MqKtaU7S3 caow== X-Gm-Message-State: AJIora+freKNC6TFvFTdNQu0Uw3njHVWbfvRmN8hBVNyZ6eCdGj1bcIk EEUrDNb0MOc4JeGiyveTons= X-Google-Smtp-Source: AGRyM1s+2BPoGJJcYSkXxSCqJ/zt1NcnUnwDt38iQSUjJkII7VA4nMvDn9G6pnoB7d+BKIBKWZ4hMQ== X-Received: by 2002:a25:d406:0:b0:66e:c6b3:f11e with SMTP id m6-20020a25d406000000b0066ec6b3f11emr24931504ybf.354.1658090651452; Sun, 17 Jul 2022 13:44:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:ace0:0:b0:66e:3a3f:28b7 with SMTP id x32-20020a25ace0000000b0066e3a3f28b7ls21953776ybd.6.gmail; Sun, 17 Jul 2022 13:44:08 -0700 (PDT) X-Received: by 2002:a25:7310:0:b0:66f:fd08:287e with SMTP id o16-20020a257310000000b0066ffd08287emr11314982ybc.219.1658090648434; Sun, 17 Jul 2022 13:44:08 -0700 (PDT) In-Reply-To: X-Original-Sender: mstep.germany-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: Marek Stepanek 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:30999 Archived-At: ------=_Part_2672_1406881989.1658090647896 Content-Type: multipart/alternative; boundary="----=_Part_2673_873744048.1658090647896" ------=_Part_2673_873744048.1658090647896 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thx again. `texman endnotes` does not tell anything about a package. I=20 tried but an error pops up:=20 One moment! I tried again. Apparently I inserted the wrong package name in= =20 singular. Now it is working!=20 For other users to resume: in the=20 header-includes: - \usepackage{endnotes} - |=20 ```{=3Dlatex}=20 \let\footnote=3D\endnote=20 ``` In the text body: text text text \endnote[1]{This is a footnote at the end}=20 New Paragraph \endnote[2]{This is a footnote at the end} with text And in the Sources & Footnotes Chapter ```{=3Dlatex} \theendnotes=20 ``` Inconvenient although is: you have to number your footnotes yourself! And= =20 John MacFarlane will be shouting on me, mixing up markup with LaTeX... On Sunday, July 17, 2022 at 9:36:19 PM UTC+2 Bastien Dumont wrote: > Did you add "\usepackage{endnotes}" before "\let\footnote=3D\endnote"?=20 > Unfortunately (or fortunately) no, I never had to use endnotes...=20 > pandoc-crossref will not help you here, you must configure this in LaTeX. > > Le Sunday 17 July 2022 =C3=A0 11:34:22AM, 'Marek Stepanek' via pandoc-dis= cuss a=20 > =C3=A9crit : > > Merci infiniment Bastien, > >=20 > > Did you succeeded to implement `\endnotes` into a mark-down document?= =20 > What I > > did so far: I added in my Yaml Meta Datablock=20 > >=20 > > - | > > ```{=3Dlatex} > > \let\footnote=3D\endnote > > ``` > >=20 > > In my text body > >=20 > > ```{=3Dlatex} > > \endnote[1]{This is a footnote at the end} > > ``` > >=20 > > And in my Sources chapter=20 > >=20 > > ```{=3Dlatex} > > \theendnotes > > ``` > >=20 > > With and without the enclosing ```{=3Dlatex} ... pandoc does not like= =20 > `\endnote` > >=20 > > Perhaps `pandoc-crossref` is the way to go? > >=20 > >=20 > > marek > >=20 > >=20 > >=20 > > On Sunday, July 17, 2022 at 4:28:03 PM UTC+2 Bastien Dumont wrote: > >=20 > > Have you tried to use a dedicated LaTeX package such as endnotes=20 > ([1]https: > > //ctan.org/pkg/endnotes)? > >=20 > > Le Sunday 17 July 2022 =C3=A0 02:01:15AM, 'Marek Stepanek' via pandoc-d= iscuss=20 > a > > =C3=A9crit : > > > Some more explanations, to provoke an answer. I need inline Reference= s, > > wich > > > are collected at the end of each article. I tried with [1] or [(1)] o= r > > [1] > > > [Fn:1] etc > > > > > > But in my section: > > > > > > ## References and sources > > > > > > [1]: First Footnote > > > [(1)]: First Footnote > > > [Fn:1]: First Footnote > > > > > > is printed nothing. In the pdf-file the anchor seems to be linked, bu= t=20 > on > > click > > > leading to nothing. > > > > > > in my Header includes is also > > > > > > ___ > > > > > > - \usepackage{hyperref} > > > - \hypersetup{pdftitle=3D{Articles 22022},pdfauthor=3D{myself},pdfsub= ject=3D > > > {Subjects}} > > > > > > ___ > > > > > > Are these informations sufficient to help me out? > > > > > > I would be very grateful for any hint in the right direction > > > > > > > > > marek > > > > > > > > > > > > > > > > > > On Saturday, July 16, 2022 at 10:20:50 AM UTC+2 Marek Stepanek wrote: > > > > > > > > > I am compiling with pandoc markdown with documentclass scrartcl over > > LaTeX > > > to pdf. I have several articles in one file and would like to print t= he > > > footnotes at the end of each article. > > > > > > I tried pandoc-crossref, but apparently it is not supporting footnote= s > > and > > > needs in the anchor a leading keyword like `@fig:` or `@sec:` `@lst:`= . > > But > > > footnotes are not supported (please correct me). > > > > > > I tried with `--reference-location=3Dblock|section|document` in my=20 > Makefile > > > like follows: > > > > > > ``` > > > all: save typeset open > > > > > > .PHONY: all > > > save: > > > w > > > > > > typeset: > > > pandoc \ > > > --from markdown \ > > > --to latex \ > > > --out articles.pdf \ > > > --pdf-engine pdflatex \ > > > --bibliography articles.bib \ > > > -F pandoc-crossref \ > > > --reference-location=3Dsection \ > > > --citeproc \ > > > --csl csl/din-1505-2-numeric-alphabetical.csl \ > > > --lua-filter pandoc-gls.lua \ > > > articles.md > > > > > > open: > > > open articles.pdf > > > ``` > > > > > > Probably wrong idea. Perhaps somebody could point me to the right > > direction > > > > > > marek > > > > > > -- > > > You received this message because you are subscribed to the Google=20 > Groups > > > "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > an > > email > > > to [1][2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit [2][3] > https://groups.google.com/ > > d/msgid/ > > > pandoc-discuss/2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%[4] > > 40googlegroups.com. > > > > > > References: > > > > > > [1] mailto:[5]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > [2] [6]https://groups.google.com/d/msgid/pandoc-discuss/ > > 2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en% > 40googlegroups.com?utm_medium=3Demail& > > utm_source=3Dfooter > >=20 > >=20 > > -- > > 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= =20 > an email > > to [7]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [8] > https://groups.google.com/d/msgid/ > > pandoc-discuss/53b53720-9cfc-449f-a3a9-e7948c7b3f21n%40googlegroups.com= . > >=20 > > References: > >=20 > > [1] https://ctan.org/pkg/endnotes > > [2] - > > [3] https://groups.google.com/d/msgid/ > > [4] http://40googlegroups.com/ > > [5] - > > [6]=20 > https://groups.google.com/d/msgid/pandoc-discuss/2f1b62af-3a08-487e-9a44-= 3e8ed0d3cd5en%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > > [7] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [8]=20 > https://groups.google.com/d/msgid/pandoc-discuss/53b53720-9cfc-449f-a3a9-= e7948c7b3f21n%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/4af3664b-3552-4f66-b86e-b63bad2d59e9n%40googlegroups.com. ------=_Part_2673_873744048.1658090647896 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thx again. `texman endnotes` does not tell anything about a package. I trie= d but an error pops up: 
One moment! I tried again. Apparently I i= nserted the wrong package name in singular. Now it is working! 
<= div>
For other users to resume:

in t= he 

header-includes:
- \usepackage{= endnotes}
- |
 ```{=3Dlatex}
   \let\footnote=3D\= endnote
 ```
In the text body:

= text text text \endnote[1]{This is a footnote at the end}
<= br>
New Paragraph \endnote[2]{This is a footnote at the end}= with text

And in the Sources & Footnotes Chap= ter

```{=3Dlatex}
\theendnotes
```

Inconvenient although is: you have to number your foot= notes yourself! And John MacFarlane will be shouting on me, mixing up marku= p with LaTeX...


On Sunday, July 17, 2022 at 9:36:= 19 PM UTC+2 Bastien Dumont wrote:
Did you add "\usepackage{endnotes}" before &= quot;\let\footnote=3D\endnote"? Unfortunately (or fortunately) no, I n= ever had to use endnotes... pandoc-crossref will not help you here, you mus= t configure this in LaTeX.

Le Sunday 17 July 2022 =C3=A0 11:34:22AM, 'Marek Stepanek' via = pandoc-discuss a =C3=A9crit :
> Merci infiniment Bastien,
>=20
> Did you succeeded to implement `\endnotes` into a mark-down docume= nt? What I
> did so far: I added in my Yaml Meta Datablock=20
>=20
> - |
> ```{=3Dlatex}
> \let\footnote=3D\endnote
> ```
>=20
> In my text body
>=20
> ```{=3Dlatex}
> \endnote[1]{This is a footnote at the end}
> ```
>=20
> And in my Sources chapter=20
>=20
> ```{=3Dlatex}
> \theendnotes
> ```
>=20
> With and without the enclosing ```{=3Dlatex} ... pandoc does not l= ike `\endnote`
>=20
> Perhaps `pandoc-crossref` is the way to go?
>=20
>=20
> marek
>=20
>=20
>=20
> On Sunday, July 17, 2022 at 4:28:03 PM UTC+2 Bastien Dumont wrote:
>=20
> Have you tried to use a dedicated LaTeX package such as endnot= es ([1]https:
> //ctan.org/pkg/endnotes)?
>=20
> Le Sunday 17 July 2022 =C3=A0 02:01:15AM, 'Marek Stepanek&= #39; via pandoc-discuss a
> =C3=A9crit :
> > Some more explanations, to provoke an answer. I need inli= ne References,
> wich
> > are collected at the end of each article. I tried with [1= ] or [(1)] or
> [1]
> > [Fn:1] etc
> >
> > But in my section:
> >
> > ## References and sources
> >
> > [1]: First Footnote
> > [(1)]: First Footnote
> > [Fn:1]: First Footnote
> >
> > is printed nothing. In the pdf-file the anchor seems to b= e linked, but on
> click
> > leading to nothing.
> >
> > in my Header includes is also
> >
> > ___
> >
> > - \usepackage{hyperref}
> > - \hypersetup{pdftitle=3D{Articles 22022},pdfauthor=3D{my= self},pdfsubject=3D
> > {Subjects}}
> >
> > ___
> >
> > Are these informations sufficient to help me out?
> >
> > I would be very grateful for any hint in the right direct= ion
> >
> >
> > marek
> >
> >
> >
> >
> >
> > On Saturday, July 16, 2022 at 10:20:50 AM UTC+2 Marek Ste= panek wrote:
> >
> >
> > I am compiling with pandoc markdown with documentclass sc= rartcl over
> LaTeX
> > to pdf. I have several articles in one file and would lik= e to print the
> > footnotes at the end of each article.
> >
> > I tried pandoc-crossref, but apparently it is not support= ing footnotes
> and
> > needs in the anchor a leading keyword like `@fig:` or `@s= ec:` `@lst:`.
> But
> > footnotes are not supported (please correct me).
> >
> > I tried with `--reference-location=3Dblock|section|docume= nt` in my Makefile
> > like follows:
> >
> > ```
> > all: save typeset open
> >
> > .PHONY: all
> > save:
> > w
> >
> > typeset:
> > pandoc = \
> > --from markdown = \
> > --to latex = \
> > --out articles.pdf = \
> > --pdf-engine pdflatex = \
> > --bibliography articles.bib = \
> > -F pandoc-crossref = \
> > --reference-location=3Dsection = \
> > --citeproc = \
> > --csl csl/din-1505-2-numeric-alphabetical.= csl \
> > --lua-filter pandoc-gls.lua = \
> > articles.md
> >
> > open:
> > open articles.pdf
> > ```
> >
> > Probably wrong idea. Perhaps somebody could point me to t= he right
> direction
> >
> > marek
> >
> > --
> > You received this message because you are subscribed to t= he Google Groups
> > "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails = from it, send an
> email
> > to [1][2]pando= c-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit [2][3]https://groups.google.com/
> d/msgid/
> > pandoc-discuss/2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%[4]
> 40googlegroups.com.
> >
> > References:
> >
> > [1] mailto:[5]= pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [2] [6]https://groups.google.com/d/msgid/pandoc-discuss/<= /a>
> 2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%
40googlegroups.com?utm_med= ium=3Demail&
> utm_source=3Dfooter
>=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 email
> to [7]pandoc-discus...@= googlegroups.com.
> To view this discussion on the web visit [8]https://groups.google.com/d/msgid/
> pandoc-discuss/53b53720-9cfc-449f-a3a9-e7948c7b3f21n%40googlegroups.com.
>=20
> References:
>=20
> [1] https://ctan.org/pkg/endnot= es
> [2] -
> [3] https://groups.= google.com/d/msgid/
> [4] http://40googlegroups.com/
> [5] -
> [6] https://groups= .google.com/d/msgid/pandoc-discuss/2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%40= googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter
> [7] mailto:pandoc-discu= s...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [8] https://groups= .google.com/d/msgid/pandoc-discuss/53b53720-9cfc-449f-a3a9-e7948c7b3f21n%40= googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter

--
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/4af3664b-3552-4f66-b86e-b63bad2d59e9n%40googlegroups.= com.
------=_Part_2673_873744048.1658090647896-- ------=_Part_2672_1406881989.1658090647896--