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
    Jan 15 at 13:28













  • Not yet, I'll check that out

    – E. Sommer
    Jan 15 at 13:36
















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
    Jan 15 at 13:28













  • Not yet, I'll check that out

    – E. Sommer
    Jan 15 at 13:36














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 Jan 15 at 13:25







E. Sommer

















asked Jan 15 at 13:19









E. SommerE. Sommer

1246




1246








  • 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
    Jan 15 at 13:28













  • Not yet, I'll check that out

    – E. Sommer
    Jan 15 at 13:36














  • 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
    Jan 15 at 13:28













  • Not yet, I'll check that out

    – E. Sommer
    Jan 15 at 13:36








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
Jan 15 at 13:28







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
Jan 15 at 13:28















Not yet, I'll check that out

– E. Sommer
Jan 15 at 13:36





Not yet, I'll check that out

– E. Sommer
Jan 15 at 13:36










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
      Jan 15 at 21:12











    • What do you mean by that?

      – Raaja
      Jan 15 at 21:20











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

      – E. Sommer
      Jan 15 at 21:27











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

      – Raaja
      Jan 15 at 21:37











    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 Jan 15 at 15:01









        egregegreg

        721k8719093209




        721k8719093209























            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
              Jan 15 at 21:12











            • What do you mean by that?

              – Raaja
              Jan 15 at 21:20











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

              – E. Sommer
              Jan 15 at 21:27











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

              – Raaja
              Jan 15 at 21:37
















            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
              Jan 15 at 21:12











            • What do you mean by that?

              – Raaja
              Jan 15 at 21:20











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

              – E. Sommer
              Jan 15 at 21:27











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

              – Raaja
              Jan 15 at 21:37














            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 Jan 15 at 14:24









            RaajaRaaja

            4,07121038




            4,07121038








            • 1





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

              – E. Sommer
              Jan 15 at 21:12











            • What do you mean by that?

              – Raaja
              Jan 15 at 21:20











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

              – E. Sommer
              Jan 15 at 21:27











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

              – Raaja
              Jan 15 at 21:37














            • 1





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

              – E. Sommer
              Jan 15 at 21:12











            • What do you mean by that?

              – Raaja
              Jan 15 at 21:20











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

              – E. Sommer
              Jan 15 at 21:27











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

              – Raaja
              Jan 15 at 21:37








            1




            1





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

            – E. Sommer
            Jan 15 at 21:12





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

            – E. Sommer
            Jan 15 at 21:12













            What do you mean by that?

            – Raaja
            Jan 15 at 21:20





            What do you mean by that?

            – Raaja
            Jan 15 at 21:20













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

            – E. Sommer
            Jan 15 at 21:27





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

            – E. Sommer
            Jan 15 at 21:27













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

            – Raaja
            Jan 15 at 21:37





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

            – Raaja
            Jan 15 at 21:37


















            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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith