Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Les renvois en pied de page sont cassés dans les PDF #450

Open
SpaceFox opened this issue Mar 7, 2022 · 1 comment
Open

Les renvois en pied de page sont cassés dans les PDF #450

SpaceFox opened this issue Mar 7, 2022 · 1 comment
Labels
blocked/upstream Awaiting for upstream changes semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem

Comments

@SpaceFox
Copy link

SpaceFox commented Mar 7, 2022

Cf https://zestedesavoir.com/tutoriels/pdf/3843/dates-durees-et-horloges-en-informatique.pdf par exemple.

Les liens de renvoi aux notes de pied de page sont affichées sous la forme 1 footnote:1 où seul le premier chiffre est un lien. Le renvoi au texte dans le pied de page est de la même forme. Les liens ne renvoient vers aucune ancre valide.

Je soupçonne que c’est un effet de bord des renvois dans un moyen-tuto (donc dans plusieurs fichiers markdown distincts, en terme de stockage).

@StaloneLab StaloneLab added semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem labels Mar 7, 2022
@StaloneLab
Copy link
Member

Note : still unresolved.

Linking to footnotes has been removed (please note it never worked properly), but numbers have been fixed, so that display is way better than before.

Two problems still remain if we want to enable linking:

  • a global footnote counter needs to be enabled in order to have a consistent count between multiple sections of a manifest;
  • the hyperref LaTeX package cannot link footnotes properly, as stated in their documentation:

LaTeX allows the separation of the footnote mark and the footnote text (\footnotemark, \footnotetext). This interface might be enough for visual typesetting. But the relation between \footnotemark to \footnotetext is not as strong as \ref to \label. Therefore it is not clear in general which \footnotemark references which \footnotetext. But that is necessary to implement hyperlinking. Thus the implementation of hyperref does not support the optional argument of \footnotemark and \footnotetext.

Therefore, using another package on LaTeX side would be necessary. Before, we used \label and \ref, but the link was not made to the footnote but to the section title instead. As a matter of consequence, I am issuing a fix on ZMdv11, removing linking, and marking this issue blocked until problem solved on the LaTeX template. I will open an issue as soon as possible on this repository.

@StaloneLab StaloneLab added the blocked/upstream Awaiting for upstream changes label Mar 27, 2022
StaloneLab added a commit to StaloneLab/zmarkdown that referenced this issue Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/upstream Awaiting for upstream changes semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem
Projects
None yet
Development

No branches or pull requests

2 participants