footmisc 2011/06/06 v5.5b and hyperref's option hyperfootnotes=false
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di latex3/hyperref
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
Tutte le issue di latex3/hyperref
Issue simili
-
area: cli difficulty: easy first-timers-only good first issue help wanted mentor available
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
hayagrivai-labs/phantom#121 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
alunduil/alunduil-chezmoi#1041 ·
I maintainer di solito rispondono entro 1 giorno
-
category/ui priority/P3 roadmap/session-management scope/session-management scope/web-shell type/feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
QwenLM/qwen-code#15678 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
fossasia/scrum_helper#949 ·
I maintainer di solito rispondono entro 2 giorni
-
good first issue hacktoberfest
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100