Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

footmisc 2011/06/06 v5.5b and hyperref's option hyperfootnotes=false

Aperta
#77 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
latex
Ambito
tooling

Direzione di ricerca

Inizia dal punto di ingresso \footref e dallo switch dell’opzione di hyperref \ifHy@hyperfootnotes, quindi confronta il comportamento con hyperfootnotes=true e hyperfootnotes=false. Il lavoro è completato quando \footref rispetta l’opzione e la sua area cliccabile corrisponde al comportamento previsto del collegamento alla nota a piè di pagina descritto nell’issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

This was originally posted here: https://github.com/FrankMittelbach/fmitex/issues/5#issue-383991035
but I think it really should be resolved from the hyperref side ...


The issue was brought up by Axel Berger in the German-language usenet-newsgroup de.comp.text.tex in the discussion with subject "Fussnoten widerholen" :

When loading both the package footmisc and the package hyperref, some problems arise:

With hyperref's option hyperfootnotes=true, the macro \footref will deliver a hyperlink where the measurements of the clickable area is considerably smaller than the clickable area of hyperlinks that come into being due to \footnote-commands.

With hyperref's option hyperfootnotes=false, the macro \footref will disobey the hyperref-option and deliver such a hyperlink anyway.

Therefore in case of the hyperref-package being loaded I suggest having the \footref-command

  • check for the switch \ifHy@hyperfootnotes
  • not place the hyperlink inside the footnotemark (as happens when simply applying the \ref-command within \@thefnmark) but having the \footref-command apply the starred-variant of the \ref-command within \@thefnmark (which does not deliver a hyperlink) and wrap a call to the \hyperref- macro around the footnote-mark when it gets paced:

In the above-mentioned usenet-discussion I suggested the following patch:

\documentclass{article} 
\usepackage{footmisc} 
%\usepackage{hyperref} 
\usepackage[hyperfootnotes=false]{hyperref} 

\makeatletter 
\@ifpackageloaded{hyperref}{% 
  \renewcommand\footref[1]{% 
    \begingroup 
    \unrestored@protected@xdef\@thefnmark{% 
      \ref*{#1}% 
    }% 
    \endgroup 
    \ifHy@hyperfootnotes 
       \expandafter\@firstoftwo 
    \else 
       \expandafter\@secondoftwo 
    \fi 
    {\hyperref[#1]{\strut\H@@footnotemark}}{\@footnotemark}% 
  }% 
}{}% 
\makeatother 

\begin{document} 

argument of the footnote command that is being 
labelled\footnote{Note text\label{fnlabel}} 
potato head\footref{fnlabel} 

\end{document} 
Lingua principale
TeX
Stelle
210
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di latex3/hyperref

Tutte le issue di latex3/hyperref

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.