latex3 / latex3/hyperref

too much vertical space between text and an equation if text line is full

Open
#404 1 comment 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

TeXing

\documentclass[
    fleqn,
        ]{article}
\usepackage{amsmath}
\usepackage{hyperref}
\begin{document}

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
volu.
%
    \begin{equation}
        a = b
    \end{equation}
%
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure
\dots

\end{document}

gives

Image

As you can see the vertical space between the text and the equation is too large.

Comment either fleqn, one of the \usepackages or the "volu" text line and the vertical space is "normal" again.

Is this a bug or a feature?

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

Use the provided LaTeX minimal example as the entry point; compile it with fleqn, amsmath, and hyperref, then repeat after removing each reported condition. Compare the resulting spacing to isolate the responsible interaction and establish whether the behavior is a hyperref bug or expected TeX behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, tex
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.