latex3 / latex3/hyperref

Way too normal size of references in stackrel when running `latex`

Open
#46 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
205
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Consider the code

\documentclass{article}
\usepackage{algorithm2e}
\usepackage[hidelinks]{hyperref}
\begin{document}
\newtheorem{thm}{Theorem}
\begin{thm}\label{BC}B=C.\end{thm}
\LinesNumbered
\begin{algorithm}
  A:=B\nllabel{lineFoo}\;
\end{algorithm}
$A\stackrel{\mathrm{line}\ \ref{lineFoo}}{=}B\stackrel{\mathrm{Thm.}\ \ref{BC}}{=}C$.
\end{document}

When running latex on it, the resulting dvi file has normal-sized labels 1, while the labels should be, in fact, small-sized.

output

Later, when dvi is translated to postscript or to pdf, the normal size of 1 is maintained, resulting in an unpleasant output. (Remark: when running pdflatex, the size is small as expected.)

Thanks for repairing in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied example with latex, then compare its DVI-derived PostScript or PDF output with pdflatex. Start by tracing the hyperref handling of \stackrel references and the interaction with algorithm2e; done means the lineFoo and BC references remain small in output converted from DVI as they do with pdflatex.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.