Use of currency symbols along with a thousand separator
I frequently use the eurosym
package to typeset Euro values.
documentclass{article}
usepackage{eurosym}
begin{document}
EUR{100000}
end{document}
This translates into '€ 100000'.
It however misses the option for thousands separators. For an English text, I'd like to convert this into '€ 100,000'. In a German text, one would rather do '100.000 €'. The placement of the Euro sign is already taken care of by the eurosym package.
Is there a way (ideally, a package) that provides this or does someone have an idea how to achieve this easily?
units
add a comment |
I frequently use the eurosym
package to typeset Euro values.
documentclass{article}
usepackage{eurosym}
begin{document}
EUR{100000}
end{document}
This translates into '€ 100000'.
It however misses the option for thousands separators. For an English text, I'd like to convert this into '€ 100,000'. In a German text, one would rather do '100.000 €'. The placement of the Euro sign is already taken care of by the eurosym package.
Is there a way (ideally, a package) that provides this or does someone have an idea how to achieve this easily?
units
3
Have you had a look at thesiunitx
package? It can also handle currency with a special syntax. And includes various tools to format numbers
– daleif
3 hours ago
Not yet, I'll check that out
– E. Sommer
3 hours ago
add a comment |
I frequently use the eurosym
package to typeset Euro values.
documentclass{article}
usepackage{eurosym}
begin{document}
EUR{100000}
end{document}
This translates into '€ 100000'.
It however misses the option for thousands separators. For an English text, I'd like to convert this into '€ 100,000'. In a German text, one would rather do '100.000 €'. The placement of the Euro sign is already taken care of by the eurosym package.
Is there a way (ideally, a package) that provides this or does someone have an idea how to achieve this easily?
units
I frequently use the eurosym
package to typeset Euro values.
documentclass{article}
usepackage{eurosym}
begin{document}
EUR{100000}
end{document}
This translates into '€ 100000'.
It however misses the option for thousands separators. For an English text, I'd like to convert this into '€ 100,000'. In a German text, one would rather do '100.000 €'. The placement of the Euro sign is already taken care of by the eurosym package.
Is there a way (ideally, a package) that provides this or does someone have an idea how to achieve this easily?
units
units
edited 3 hours ago
E. Sommer
asked 3 hours ago
E. SommerE. Sommer
1234
1234
3
Have you had a look at thesiunitx
package? It can also handle currency with a special syntax. And includes various tools to format numbers
– daleif
3 hours ago
Not yet, I'll check that out
– E. Sommer
3 hours ago
add a comment |
3
Have you had a look at thesiunitx
package? It can also handle currency with a special syntax. And includes various tools to format numbers
– daleif
3 hours ago
Not yet, I'll check that out
– E. Sommer
3 hours ago
3
3
Have you had a look at the
siunitx
package? It can also handle currency with a special syntax. And includes various tools to format numbers– daleif
3 hours ago
Have you had a look at the
siunitx
package? It can also handle currency with a special syntax. And includes various tools to format numbers– daleif
3 hours ago
Not yet, I'll check that out
– E. Sommer
3 hours ago
Not yet, I'll check that out
– E. Sommer
3 hours ago
add a comment |
2 Answers
2
active
oldest
votes
Combine eurosym
with siunitx
:
documentclass{article}
usepackage{eurosym}
usepackage{siunitx}
newcommand{eur}[2]{EUR{num[#1]{#2}}}
begin{document}
eur{10000}
eur[group-separator={,}]{10000}
sisetup{group-separator={,}}
eur{10000}
end{document}
A particular option for number formatting can be passed as optional argument or set by default with sisetup
.
The same but with usepackage[right]{eurosym}
:
add a comment |
Just use the same eurosym
package along with sistyle
package in which you define the separator location to be thousand using SIthousandsep{,}
. Then you can use this
documentclass{article}
usepackage{eurosym}
usepackage{sistyle}
SIthousandsep{,}
newcommand{euros}[1]{euro{num{#1}}}
begin{document}
I have a 5-figure pay check with euros{40000}.
Now I am a millionaire with euros{4000000}.
I wish I own a Ferrari worth of euros{400000000000} (I have no idea how much that costs).
end{document}
to get:
PS: I prefer to use euro{...}
instead of EUR{...}
. Because, the latter gives an additional spurious space which, I personally do not prefer ;)
The output with EUR{...}
:
Also, note that you can use just euro
as well.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470232%2fuse-of-currency-symbols-along-with-a-thousand-separator%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Combine eurosym
with siunitx
:
documentclass{article}
usepackage{eurosym}
usepackage{siunitx}
newcommand{eur}[2]{EUR{num[#1]{#2}}}
begin{document}
eur{10000}
eur[group-separator={,}]{10000}
sisetup{group-separator={,}}
eur{10000}
end{document}
A particular option for number formatting can be passed as optional argument or set by default with sisetup
.
The same but with usepackage[right]{eurosym}
:
add a comment |
Combine eurosym
with siunitx
:
documentclass{article}
usepackage{eurosym}
usepackage{siunitx}
newcommand{eur}[2]{EUR{num[#1]{#2}}}
begin{document}
eur{10000}
eur[group-separator={,}]{10000}
sisetup{group-separator={,}}
eur{10000}
end{document}
A particular option for number formatting can be passed as optional argument or set by default with sisetup
.
The same but with usepackage[right]{eurosym}
:
add a comment |
Combine eurosym
with siunitx
:
documentclass{article}
usepackage{eurosym}
usepackage{siunitx}
newcommand{eur}[2]{EUR{num[#1]{#2}}}
begin{document}
eur{10000}
eur[group-separator={,}]{10000}
sisetup{group-separator={,}}
eur{10000}
end{document}
A particular option for number formatting can be passed as optional argument or set by default with sisetup
.
The same but with usepackage[right]{eurosym}
:
Combine eurosym
with siunitx
:
documentclass{article}
usepackage{eurosym}
usepackage{siunitx}
newcommand{eur}[2]{EUR{num[#1]{#2}}}
begin{document}
eur{10000}
eur[group-separator={,}]{10000}
sisetup{group-separator={,}}
eur{10000}
end{document}
A particular option for number formatting can be passed as optional argument or set by default with sisetup
.
The same but with usepackage[right]{eurosym}
:
answered 2 hours ago
egregegreg
712k8618933179
712k8618933179
add a comment |
add a comment |
Just use the same eurosym
package along with sistyle
package in which you define the separator location to be thousand using SIthousandsep{,}
. Then you can use this
documentclass{article}
usepackage{eurosym}
usepackage{sistyle}
SIthousandsep{,}
newcommand{euros}[1]{euro{num{#1}}}
begin{document}
I have a 5-figure pay check with euros{40000}.
Now I am a millionaire with euros{4000000}.
I wish I own a Ferrari worth of euros{400000000000} (I have no idea how much that costs).
end{document}
to get:
PS: I prefer to use euro{...}
instead of EUR{...}
. Because, the latter gives an additional spurious space which, I personally do not prefer ;)
The output with EUR{...}
:
Also, note that you can use just euro
as well.
add a comment |
Just use the same eurosym
package along with sistyle
package in which you define the separator location to be thousand using SIthousandsep{,}
. Then you can use this
documentclass{article}
usepackage{eurosym}
usepackage{sistyle}
SIthousandsep{,}
newcommand{euros}[1]{euro{num{#1}}}
begin{document}
I have a 5-figure pay check with euros{40000}.
Now I am a millionaire with euros{4000000}.
I wish I own a Ferrari worth of euros{400000000000} (I have no idea how much that costs).
end{document}
to get:
PS: I prefer to use euro{...}
instead of EUR{...}
. Because, the latter gives an additional spurious space which, I personally do not prefer ;)
The output with EUR{...}
:
Also, note that you can use just euro
as well.
add a comment |
Just use the same eurosym
package along with sistyle
package in which you define the separator location to be thousand using SIthousandsep{,}
. Then you can use this
documentclass{article}
usepackage{eurosym}
usepackage{sistyle}
SIthousandsep{,}
newcommand{euros}[1]{euro{num{#1}}}
begin{document}
I have a 5-figure pay check with euros{40000}.
Now I am a millionaire with euros{4000000}.
I wish I own a Ferrari worth of euros{400000000000} (I have no idea how much that costs).
end{document}
to get:
PS: I prefer to use euro{...}
instead of EUR{...}
. Because, the latter gives an additional spurious space which, I personally do not prefer ;)
The output with EUR{...}
:
Also, note that you can use just euro
as well.
Just use the same eurosym
package along with sistyle
package in which you define the separator location to be thousand using SIthousandsep{,}
. Then you can use this
documentclass{article}
usepackage{eurosym}
usepackage{sistyle}
SIthousandsep{,}
newcommand{euros}[1]{euro{num{#1}}}
begin{document}
I have a 5-figure pay check with euros{40000}.
Now I am a millionaire with euros{4000000}.
I wish I own a Ferrari worth of euros{400000000000} (I have no idea how much that costs).
end{document}
to get:
PS: I prefer to use euro{...}
instead of EUR{...}
. Because, the latter gives an additional spurious space which, I personally do not prefer ;)
The output with EUR{...}
:
Also, note that you can use just euro
as well.
answered 2 hours ago
RaajaRaaja
2,5252732
2,5252732
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470232%2fuse-of-currency-symbols-along-with-a-thousand-separator%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Have you had a look at the
siunitx
package? It can also handle currency with a special syntax. And includes various tools to format numbers– daleif
3 hours ago
Not yet, I'll check that out
– E. Sommer
3 hours ago