Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [numprint]

A package for printing numbers in standard format dependent on context (text, math, language).

1
vote
0answers
56 views

periodic digits and numprint

I want to use numprint to add separators every three digits of a decimal representation of a rational BUT with an overline over the repeating digits. For example, for the unitary fraction 1/42, I get:...
6
votes
2answers
128 views

How to change only the color of numbers (and not units) with numprint?

This question is related to this one: Colour only the text in a tabularx environment I want to write as a succession of equality in blue (only the numbers) so that each line of the table has a ...
1
vote
2answers
55 views

Tabular: columnwidth of e.g. 3cm, but numprint column

The numprint package provides some things I need: Rounding after the decimal sign, adding missing zeros, german thousand- and decimalseparator. But I'd like to have a column with numbers formatted ...
6
votes
2answers
151 views

Formatting numbers with smaller glyphs for decimals

I am currently writing up a coursebook in which I handle sets of decimal numbers. As the language of the coursebook is French, the decimal separator has to be a comma and the thousands separator a ...
2
votes
1answer
147 views

How to migrate from numprint to siunitx while keeping the same font?

Until now I used the numprint package to display the units correctly. But since the solution given by @egreg to this question: package eurosym: how to change the decimal separator?, I try to code ...
1
vote
2answers
199 views

Comma separated number representation fed to latex math mode from \sage{}

I came across other tex questions where people asked ways to represent numbers in comma-separated format. That is writing 1234567 as 1,234,567. I need this while teaching addition/subtraction to my ...
11
votes
2answers
399 views

Unexpected behaviour of numprint command

I am using the numprint package. This package is basically great, but sometimes it shows unexpected behaviour. Here is an example of such a case: \documentclass{article} \usepackage{numprint} \begin{...
0
votes
0answers
129 views

Installing The Numprint Package Style [duplicate]

ftp://ftp.dante.de/tex-archive/macros/latex/contrib/numprint/ http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/numprint/ do not contain the numprint.sty files. Neither does the .zip ...
1
vote
1answer
153 views

Can I combine numprint, longtable and sideways?

I can create a longtable with numprint: \documentclass{article} \usepackage{numprint} \usepackage{longtable} \npdecimalsign{,} \nprounddigits{2} \begin{document} \begin{longtable}{n{3}{2}} -11,...
2
votes
0answers
273 views

How to get a “thousands” separator in `spreadtab` (wrapping `longtable`)?

I'm trying to use Pandoc for the semi-automatic generation of billing statements from YAML text inputs: For doing sum calculations I use the spreadtab package. For getting automatic page breaks if ...
4
votes
1answer
92 views

numprint and similar packages ignore ADF Fonts

I'm using the Venturis font for my documents. Because all of tabular number alignment packages I tried interfere with fonts, numbers in these columns look quite out of place. Is there a way around ...
4
votes
1answer
129 views

How to get a customized number of decimal places in tex.sprint / directlua / qrCode?

The number of decimal places is "9" in the following example: string.format("\%0.9f", X). How can one achieve the replacement of the fixed "9" decimal places with "NumberOfDecimalPlaces" (in ...
4
votes
2answers
355 views

numprint makes \rho_{ij} not work

I didn't find a good title to this subject. Maybe someone can improve it? I want to create this table: The problem is that I need the package numprint. But then the table looks like this You see ...
6
votes
1answer
2k views

Wrong formatting with numprint package and nprounddigits

I'm using the numprint package to format my numbers, some of them which are rounded with \nprounddigits, but sometimes the formatting is wrong, like if it was somehow done before rounding, ie \...