antoinelejay / currency

LaTeX package for dealing with currencies
4 stars 2 forks source link

Space between $ and value #5

Closed khatchad closed 3 years ago

khatchad commented 3 years ago

I can't seem to figure out how to get rid of the space between $ and the value for USD:

\DefineCurrency{USD}{name={dollar},plural={dollars},iso={USD},kind=symbol,symbol={\$},pre}
\dUSD{500000}

Gives $ 500,000 but I want is $500,000.

antoinelejay commented 3 years ago

There is a pre-between key, by default set to ~

\DefineCurrency{USD}{name={dollar},plural={dollars},iso={USD},kind=symbol,symbol={\$},pre, pre-between={}}

Best regards Antoine Lejay

On 30 Aug 2021, at 18:17, Raffi Khatchadourian @.***> wrote:

\DefineCurrency{USD}{name={dollar},plural={dollars},iso={USD},kind=symbol,symbol={\$ },pre}

\dUSD{500000}

khatchad commented 3 years ago

Just what I was looking for, thanks!