josephwright / josephwright/siunitx
Problem with sffamily
Open
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 407
- Forks
- 29
- Avg merge
- 11h 20m
- Merged PRs (30d)
- 3
Description
with this code, the \pi and \alpha disappear when \sffamily is active.
\documentclass{article}
\usepackage[warnings-off={mathtools-colon,mathtools-overbracket},math-style=french]{unicode-math}
\usepackage[default]{fontsetup}
\usepackage{siunitx}
\sisetup{%
text-family-to-math = true,%
text-series-to-math = true,%
}%
\begin{document}
2$\pi$ -- 3$\alpha$ --
\SI[parse-numbers=false]{2\pi}{\centi\meter} --
\SI[parse-numbers=false]{3\alpha}{\centi\meter}
{\bfseries
2$\pi$ -- 3$\alpha$ --
\SI[parse-numbers=false]{2\pi}{\centi\meter} --
\SI[parse-numbers=false]{3\alpha}{\centi\meter}
}
{\sffamily
2$\pi$ -- 3$\alpha$ --
\SI[parse-numbers=false]{2\pi}{\centi\meter} --
\SI[parse-numbers=false]{3\alpha}{\centi\meter}
}
{\sffamily\bfseries
2$\pi$ -- 3$\alpha$ --
\SI[parse-numbers=false]{2\pi}{\centi\meter} --
\SI[parse-numbers=false]{3\alpha}{\centi\meter}
}
\end{document}
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 minimal LaTeX document in the report with unicode-math, fontsetup, and siunitx, then compare the normal, bold, sans-serif, and bold sans-serif cases. Trace the siunitx handling of text-family-to-math and text-series-to-math for the failing cases. Done means that \pi and \alpha render in all four contexts, including both \SI examples.
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
- 38/100