Use of currency symbols along with a thousand separator












2















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?










share|improve this question




















  • 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
    2 days ago













  • Not yet, I'll check that out

    – E. Sommer
    2 days ago
















2















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?










share|improve this question




















  • 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
    2 days ago













  • Not yet, I'll check that out

    – E. Sommer
    2 days ago














2












2








2








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







E. Sommer

















asked 2 days ago









E. SommerE. Sommer

1255




1255








  • 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
    2 days ago













  • Not yet, I'll check that out

    – E. Sommer
    2 days ago














  • 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
    2 days ago













  • Not yet, I'll check that out

    – E. Sommer
    2 days 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
2 days 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
2 days ago















Not yet, I'll check that out

– E. Sommer
2 days ago





Not yet, I'll check that out

– E. Sommer
2 days ago










2 Answers
2






active

oldest

votes


















3














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.



enter image description here



The same but with usepackage[right]{eurosym}:



enter image description here






share|improve this answer































    2














    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:



    enter image description here



    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{...}:



    enter image description here



    Also, note that you can use just euro as well.






    share|improve this answer



















    • 1





      I like EUR{} because that way I don't have to bother about the language I'm writing in ;)

      – E. Sommer
      2 days ago











    • What do you mean by that?

      – Raaja
      2 days ago











    • Because EUR{} recognizes the babel setting and sets the euro sign to the left or the right accordingly.

      – E. Sommer
      2 days ago











    • I don't know much about that, but it introduces an unwanted spurious space.

      – Raaja
      2 days ago











    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    3














    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.



    enter image description here



    The same but with usepackage[right]{eurosym}:



    enter image description here






    share|improve this answer




























      3














      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.



      enter image description here



      The same but with usepackage[right]{eurosym}:



      enter image description here






      share|improve this answer


























        3












        3








        3







        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.



        enter image description here



        The same but with usepackage[right]{eurosym}:



        enter image description here






        share|improve this answer













        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.



        enter image description here



        The same but with usepackage[right]{eurosym}:



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        egregegreg

        713k8618933182




        713k8618933182























            2














            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:



            enter image description here



            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{...}:



            enter image description here



            Also, note that you can use just euro as well.






            share|improve this answer



















            • 1





              I like EUR{} because that way I don't have to bother about the language I'm writing in ;)

              – E. Sommer
              2 days ago











            • What do you mean by that?

              – Raaja
              2 days ago











            • Because EUR{} recognizes the babel setting and sets the euro sign to the left or the right accordingly.

              – E. Sommer
              2 days ago











            • I don't know much about that, but it introduces an unwanted spurious space.

              – Raaja
              2 days ago
















            2














            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:



            enter image description here



            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{...}:



            enter image description here



            Also, note that you can use just euro as well.






            share|improve this answer



















            • 1





              I like EUR{} because that way I don't have to bother about the language I'm writing in ;)

              – E. Sommer
              2 days ago











            • What do you mean by that?

              – Raaja
              2 days ago











            • Because EUR{} recognizes the babel setting and sets the euro sign to the left or the right accordingly.

              – E. Sommer
              2 days ago











            • I don't know much about that, but it introduces an unwanted spurious space.

              – Raaja
              2 days ago














            2












            2








            2







            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:



            enter image description here



            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{...}:



            enter image description here



            Also, note that you can use just euro as well.






            share|improve this answer













            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:



            enter image description here



            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{...}:



            enter image description here



            Also, note that you can use just euro as well.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 2 days ago









            RaajaRaaja

            2,5902732




            2,5902732








            • 1





              I like EUR{} because that way I don't have to bother about the language I'm writing in ;)

              – E. Sommer
              2 days ago











            • What do you mean by that?

              – Raaja
              2 days ago











            • Because EUR{} recognizes the babel setting and sets the euro sign to the left or the right accordingly.

              – E. Sommer
              2 days ago











            • I don't know much about that, but it introduces an unwanted spurious space.

              – Raaja
              2 days ago














            • 1





              I like EUR{} because that way I don't have to bother about the language I'm writing in ;)

              – E. Sommer
              2 days ago











            • What do you mean by that?

              – Raaja
              2 days ago











            • Because EUR{} recognizes the babel setting and sets the euro sign to the left or the right accordingly.

              – E. Sommer
              2 days ago











            • I don't know much about that, but it introduces an unwanted spurious space.

              – Raaja
              2 days ago








            1




            1





            I like EUR{} because that way I don't have to bother about the language I'm writing in ;)

            – E. Sommer
            2 days ago





            I like EUR{} because that way I don't have to bother about the language I'm writing in ;)

            – E. Sommer
            2 days ago













            What do you mean by that?

            – Raaja
            2 days ago





            What do you mean by that?

            – Raaja
            2 days ago













            Because EUR{} recognizes the babel setting and sets the euro sign to the left or the right accordingly.

            – E. Sommer
            2 days ago





            Because EUR{} recognizes the babel setting and sets the euro sign to the left or the right accordingly.

            – E. Sommer
            2 days ago













            I don't know much about that, but it introduces an unwanted spurious space.

            – Raaja
            2 days ago





            I don't know much about that, but it introduces an unwanted spurious space.

            – Raaja
            2 days ago


















            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            If I really need a card on my start hand, how many mulligans make sense? [duplicate]

            Alcedinidae

            Can an atomic nucleus contain both particles and antiparticles? [duplicate]