Bastien! Working!!! I should have thought of this solution myself: replace \endnote[1]{My Footnote} with ^[My Footnote] in the markdown body

Thx again! 

On Sunday, July 17, 2022 at 10:58:26 PM UTC+2 Bastien Dumont wrote:
Fortunately for John MacFarlane, he will not need shouting on you, for you can do all this one a more simple way! See the attached file.

Le Sunday 17 July 2022 à 01:44:07PM, 'Marek Stepanek' via pandoc-discuss a écrit :
> Thx again. `texman endnotes` does not tell anything about a package. I tried
> but an error pops up:
> One moment! I tried again. Apparently I inserted the wrong package name in
> singular. Now it is working!
>
> For other users to resume:
>
> in the
>
> header-includes:
> - \usepackage{endnotes}
> - |
> ```{=latex}
> \let\footnote=\endnote
> ```
> In the text body:
>
> text text text \endnote[1]{This is a footnote at the end}
>
> New Paragraph \endnote[2]{This is a footnote at the end} with text
>
> And in the Sources & Footnotes Chapter
>
> ```{=latex}
> \theendnotes
> ```
>
> Inconvenient although is: you have to number your footnotes yourself! And 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=\endnote"?
> Unfortunately (or fortunately) no, I never had to use endnotes...
> pandoc-crossref will not help you here, you must configure this in LaTeX.
>
> Le Sunday 17 July 2022 à 11:34:22AM, 'Marek Stepanek' via pandoc-discuss a
> écrit :
> > Merci infiniment Bastien,
> >
> > Did you succeeded to implement `\endnotes` into a mark-down document?
> What I
> > did so far: I added in my Yaml Meta Datablock
> >
> > - |
> > ```{=latex}
> > \let\footnote=\endnote
> > ```
> >
> > In my text body
> >
> > ```{=latex}
> > \endnote[1]{This is a footnote at the end}
> > ```
> >
> > And in my Sources chapter
> >
> > ```{=latex}
> > \theendnotes
> > ```
> >
> > With and without the enclosing ```{=latex} ... pandoc does not like `\
> endnote`
> >
> > Perhaps `pandoc-crossref` is the way to go?
> >
> >
> > marek
> >
> >
> >
> > On Sunday, July 17, 2022 at 4:28:03 PM UTC+2 Bastien Dumont wrote:
> >
> > Have you tried to use a dedicated LaTeX package such as endnotes ([1]
> https:
> > //[1]ctan.org/pkg/endnotes)?
> >
> > Le Sunday 17 July 2022 à 02:01:15AM, 'Marek Stepanek' via pandoc-discuss
> a
> > écrit :
> > > Some more explanations, to provoke an answer. I need inline 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 be linked, but
> on
> > click
> > > leading to nothing.
> > >
> > > in my Header includes is also
> > >
> > > ___
> > >
> > > - \usepackage{hyperref}
> > > - \hypersetup{pdftitle={Articles 22022},pdfauthor={myself},pdfsubject=
> > > {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 the
> > > footnotes at the end of each article.
> > >
> > > I tried pandoc-crossref, but apparently it is not supporting footnotes
> > 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=block|section|document` 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=section \
> > > --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
> Groups
> > > "pandoc-discuss" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an
> > email
> > > to [1][2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > > To view this discussion on the web visit [2][3][2]https://
> groups.google.com/
> > d/msgid/
> > > pandoc-discuss/2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%[4]
> > [3]40googlegroups.com.
> > >
> > > References:
> > >
> > > [1] mailto:[5]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > > [2] [6][4]https://groups.google.com/d/msgid/pandoc-discuss/
> > 2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%[5]40googlegroups.com?utm_medium=
> email&
> > utm_source=footer
> >
> >
> > --
> > 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit [8][6]https://groups.google.com/
> d/msgid/
> > pandoc-discuss/53b53720-9cfc-449f-a3a9-e7948c7b3f21n%[7]
> 40googlegroups.com.
> >
> > References:
> >
> > [1] [8]https://ctan.org/pkg/endnotes
> > [2] -
> > [3] [9]https://groups.google.com/d/msgid/
> > [4] [10]http://40googlegroups.com/
> > [5] -
> > [6] [11]https://groups.google.com/d/msgid/pandoc-discuss/
> 2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%40googlegroups.com?utm_medium=email&
> utm_source=footer
> > [7] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [8] [12]https://groups.google.com/d/msgid/pandoc-discuss/
> 53b53720-9cfc-449f-a3a9-e7948c7b3f21n%40googlegroups.com?utm_medium=email&
> utm_source=footer
>
>
> --
> 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 [13]pandoc-discus...@googlegroups.com.
> To view this discussion on the web visit [14]https://groups.google.com/d/msgid/
> pandoc-discuss/4af3664b-3552-4f66-b86e-b63bad2d59e9n%40googlegroups.com.
>
> References:
>
> [1] http://ctan.org/pkg/endnotes
> [2] https://groups.google.com/
> [3] http://40googlegroups.com/
> [4] https://groups.google.com/d/msgid/pandoc-discuss/
> [5] http://40googlegroups.com/?utm_medium=email&
> [6] https://groups.google.com/d/msgid/
> [7] http://40googlegroups.com/
> [8] https://ctan.org/pkg/endnotes
> [9] https://groups.google.com/d/msgid/
> [10] http://40googlegroups.com/
> [11] https://groups.google.com/d/msgid/pandoc-discuss/2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%40googlegroups.com?utm_medium=email&utm_source=footer
> [12] https://groups.google.com/d/msgid/pandoc-discuss/53b53720-9cfc-449f-a3a9-e7948c7b3f21n%40googlegroups.com?utm_medium=email&utm_source=footer
> [13] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [14] https://groups.google.com/d/msgid/pandoc-discuss/4af3664b-3552-4f66-b86e-b63bad2d59e9n%40googlegroups.com?utm_medium=email&utm_source=footer

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7998f3df-f6e5-407e-a10e-a3fe22566f1en%40googlegroups.com.