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

Break links for reference citation are not working in hypdvips.sty

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
latex
Ambito
tooling

Direzione di ricerca

Inizia con l’esempio LaTeX minimo nell’issue e riproduci la compilazione LaTeX → PS → PDF usando hyperref, hypdvips.sty e natbib.sty. Esamina come hypdvips.sty gestisce i link alle citazioni che si estendono su più righe, confrontandoli con i link multilinea funzionanti dell’indice. Il lavoro è completato quando i link alle citazioni dei riferimenti vengono visualizzati correttamente nel PDF generato.

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

Descrizione

Break links for reference citation are not working in hypdvips.sty (with natbib.sty citations)

There are reference citation entries that span more than one line. Since I compile with LaTeX -> PS -> PDF, the links created by hyperref are not correctly displayed in the output file (pdf). To fix this issue, I added \usepackage{hypdvips} in my preamble. But I am not getting the links (at the same time I am getting links for toc that span more than one line)

\documentclass{book}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[draft=false,dvips,ps2pdf=true,colorlinks,pdfborderstyle={/S/U/W 0},bookmarksnumbered,bookmarksopen=false,unicode=true,pdfpagelabels=false]{hyperref}%
\usepackage[emptypagelabels=false]{hypdvips}
\makeatletter
\renewcommand*{\Hy@backout}[1]{}
\providecommand*{\backrefsetup}[1]{}
\makeatother

\begin{document}

The second breakthrough was the development of the semiconductor laser.
Demonstrations of laser action\enlargethispage{12pt}
in semiconductors were reported in \citet*{Hall1962}, in \citet*{Nathan1962}, in
\citet*{Holonyak1962}, and in \citet*{Quist1962}.
All of the papers were independently submitted within a span of less than three months in 1962. The practical breakthrough of the first
continuous-wave room-temperature semiconductor laser was reported by
\citet*{Alferov1970}.

\begin{thebibliography}{}
\bibitem[\protect\citeauthoryear{Hall, Fenner, Kingsley, Soltys, and Carlson}{Hall et~al.}{1962}]{Hall1962}
Hall, R.~N., G.~E. Fenner, J.~D. Kingsley, T.~J. Soltys, and R.~O. Carlson.
\newblock Coherent light emission from {Ga--As} junctions.
\newblock \textit{Physics Review Letters}, 9(9):366--8, 1962.

\bibitem[\protect\citeauthoryear{Nathan, Dumke, Burns, Dill, and Lasher}{Nathan et~al.}{1962}]{Nathan1962}
Nathan, M., W.~Dumke, G.~Burns, F.~Dill, and G.~Lasher.
\newblock Stimulated emission of radiation from {GaAs P--N} junctions.
\newblock \textit{Applied Physics Letters}, 1(3):62--4, 1962.

\bibitem[Holonyak and Bevacqua(1962)]{Holonyak1962}
Holonyak, N. and S.~F. Bevacqua.
\newblock Coherent (visible) light emission from {$\textrm{Ga}(\textrm{As}_{1 - x}\textrm{P}_x)$} junctions.
\newblock \textit{Applied Physics Letters}, 1(4):82--3, 1962.

\bibitem[\protect\citeauthoryear{Quist, Rediker, Keyes, Krag, Lax, and
  Zeigler}{Quist et~al.}{1962}]{Quist1962}
Quist, T.~M., R.~H. Rediker, R.~J. Keyes, W.~E. Krag, B.~Lax, A.~L. McWhorter, and H.~J. Zeigler.
\newblock Semiconductor maser of {GaAs}.
\newblock \textit{Applied Physics Letters}, 1(4):91--2, 1962.

\bibitem[\protect\citeauthoryear{Alferov, Andreev, Portnoi, and Turkan}{Alferov et~al.}{1970}]{Alferov1970}
Alferov, Zh.~I., V.~M. Andreev, E.~L. Portnoi, and M.~K. Turkan.
\newblock {AlAs--GaAs} heterojunction injection lasers with a low room-temperature threshold.
\newblock \textit{Soviet Physics Semiconductors}, \hbox{3:460--3}, 1970.

\end{thebibliography}
\end{document} 
Lingua principale
TeX
Stelle
207
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.