hyperref adds vertical space at the beginning of enumerate environment when the latter nested in tblr environment
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 205
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
hyperref package adds vertical space at the beginning of the enumerate environment.
Please compare two different compiled result:
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{varwidth}
\begin{document}
\begin{tblr}{
hlines,vlines,
measure = vbox, stretch = -1,
}
test & \begin{enumerate}
\item test 1
\item test 2
\end{enumerate} \\
test & test
\end{tblr}
\end{document}
The code gets the result:
When hyperref package is used, there appears some space at the beginning of the enumerate environment:
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{varwidth}
\usepackage{hyperref}
\begin{document}
\begin{tblr}{
hlines,vlines,
measure = vbox, stretch = -1,
}
test & \begin{enumerate}
\item test 1
\item test 2
\end{enumerate} \\
test & test
\end{tblr}
\end{document}
The code above gets the result:
which may not desired result.
OS: Win 10 Home Edition
Distribution: TeX Live 2024
Compiler: xelatex
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by compiling the two minimal LaTeX examples with XeLaTeX, comparing the output with and without hyperref. Investigate the interaction between hyperref, tabularray's varwidth library, and the nested enumerate environment; done means the package no longer introduces the unwanted vertical space.
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