-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
per in math mode: Improper `at' size (0.0pt), eplaced by 10pt #775
Comments
I will need a complete example: for me \documentclass{article}
\usepackage{xfrac}
\usepackage{siunitx}%[=v2]
\sisetup{per-mode=fraction}
\sisetup{fraction-function=\sfrac}
\begin{document}
$[-\qty{11}{\meter\per\second},\qty{11}{\meter\per\second}]$
\end{document} works with the latest release, and if I replace |
I see. \documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{anyfontsize}
\usepackage{xfrac}
\usepackage{siunitx}
\sisetup{per-mode = fraction}
\sisetup{fraction-function=\sfrac}
\ifdefined\qty\else
\ifdefined\NewCommandCopy
\NewCommandCopy\qty\SI
\else
\NewDocumentCommand\qty{O{}mm}{\SI[#1]{#2}{#3}}
\fi
\fi
\ifdefined\unit\else
\ifdefined\NewCommandCopy
\NewCommandCopy\unit\si
\else
\NewDocumentCommand\unit{O{}m}{\si[#1]{#2}}
\fi
\fi
\begin{document}
Nevertheless, we suggest a range of $[-\qty{11}{\meter\per\second},\qty{11}{\meter\per\second}]$.
We could spedify a range $[-\qty{90}{\meter\per\second},\qty{90}{\meter/\second}]$. % <----------- this is the line to fail.
\end{document} As you can see, i use I wonder what the As you will see, if you remove the line |
Aside - you shouldn't be using |
Your example compile fine with v3 - I have no plans to make changes to the v2 code unless it breaks with core LaTeX changes. |
So you can reconstruct problem with v2? By the way? why not T1 with luatex? |
ah, fontspec: thank you. |
Yes, although my feeling is this is an issue outside of
LuaTeX is Unicode, and the font slots are therefore wrong for some parts of T1. |
can you tell me about the meaning of the mysterious {O{}m} in your compatibility definition for v2 users wanting v3 feeling? |
This is standard LaTeX syntax for
See |
I use
siunitx
version28b
.Thus I added the patch
https://www.texdev.net/2021/06/30/siunitx-v2-to-v3
.Also I configure with
Then all works fine as long as I am in text mode.
Even math modes works frequently, but for example
yields an error:
but
works.
It is strange, that in some places even the following works:
The text was updated successfully, but these errors were encountered: