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 (https://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]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%40googlegroups.com.
>
> References:
>
> [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://groups.google.com/d/msgid/pandoc-discuss/2f1b62af-3a08-487e-9a44-3e8ed0d3cd5en%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/53b53720-9cfc-449f-a3a9-e7948c7b3f21n%40googlegroups.com.