Navigation Menu

Skip to content
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

Incorrect font size for the powers of units using siunitx package #191

Closed
josephwright opened this issue May 16, 2013 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@josephwright
Copy link
Owner

[Anonymous report]

I am using KOMA script style for my thesis. To use SI units, I have included the package siunitx. It is pretty appealing to use this, owing to its ease. However, I find one issue in doing so.

In the per-mode = reciprocal, the font size of the power appears as the same size as the normal number size. (e.g. 10\si{\radian\per\second} yields a rad s^-1, but the size of the power "-1" is same as the size of the "10" following it.

I hence switched to the per-mode = symbol. However, even in this case, 10\si{\radian\per\second\squared} gives a power of "-2" with the font size of normal numbers. I need the font size of the powers to be smaller, as the rest of the powers in my document.

@ghost ghost assigned josephwright May 16, 2013
@josephwright
Copy link
Owner Author

Please can you post an example of your input. There is no issue with

\documentclass{scrartcl}
\usepackage{siunitx}
\begin{document}
\si{\radian\per\second} $\textrm{rad}\,\textrm{s}^{-1}$
\end{document}

@josephwright
Copy link
Owner Author

[Anonymous comment]

I found exactly which package was not compatible and causing the incorrect font size of powers. Its the breqn package, used for breaking long equations. I tried the code below.

\documentclass{scrreprt}
\usepackage{breqn}
\usepackage{siunitx}

\begin{document}
10 \si{\radian\per\second} $\textrm{rad}\,\textrm{s}^{-1}$
\end{document}

On compiling, the 1st rad/s is improper, while the 2nd is correct. Please help me find a fix for this issue, as the use of breqn package is inevitable in my thesis. Thank you very much.

@josephwright
Copy link
Owner Author

Fixed by ba52916.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant