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

Support for the k notation in the \num command #378

Open
maxfrei750 opened this issue Mar 7, 2020 · 0 comments
Open

Support for the k notation in the \num command #378

maxfrei750 opened this issue Mar 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@maxfrei750
Copy link

First: thanks for the awesome work you're doing.

I have a feature request:

In some fields of science (e.g. computer science, e.g. this paper) large numbers without units are often abbreviated using the kilo prefix.

Examples:

After 21k iterations, the loop was terminated.

There are possible workarounds:

\documentclass{article}
\usepackage{siunitx}
\DeclareSIUnit\k{k}
\begin{document}
After \SI{21}{\k} iterations, the loop was terminated
\end{document}
\documentclass{article}
\usepackage{siunitx}
\begin{document}
After \SI{21}{\kilo{}} iterations, the loop was terminated.
\end{document}

However, both seem hacky and not very elegant.

I would much more prefer a solution like:
\num{21k} or \num[k-notation = true]{21000}

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants