Format page numbers in biblatex












2















Consider the following biblatex/biber minimal example:



enter image description here



documentclass{article}

usepackage{filecontents}
begin{filecontents*}{references.bib}
@article{abc,
author = {A Author},
title = {The title},
journal = {Journal of Journals},
volume = {12},
number = {34},
year = {1234},
pages = {12345-23456}
}
end{filecontents*}

usepackage{biblatex,siunitx}

addbibresource{references.bib}

begin{document}

nocite{*}

printbibliography

Current page number format: 12345--23456

Ideal page number format: num{12345}--num{23456}

end{document}


I'd like to format the page numbers using siunitx's num command, yielding a range that looks like this:



enter image description here



How can I do that?










share|improve this question



























    2















    Consider the following biblatex/biber minimal example:



    enter image description here



    documentclass{article}

    usepackage{filecontents}
    begin{filecontents*}{references.bib}
    @article{abc,
    author = {A Author},
    title = {The title},
    journal = {Journal of Journals},
    volume = {12},
    number = {34},
    year = {1234},
    pages = {12345-23456}
    }
    end{filecontents*}

    usepackage{biblatex,siunitx}

    addbibresource{references.bib}

    begin{document}

    nocite{*}

    printbibliography

    Current page number format: 12345--23456

    Ideal page number format: num{12345}--num{23456}

    end{document}


    I'd like to format the page numbers using siunitx's num command, yielding a range that looks like this:



    enter image description here



    How can I do that?










    share|improve this question

























      2












      2








      2








      Consider the following biblatex/biber minimal example:



      enter image description here



      documentclass{article}

      usepackage{filecontents}
      begin{filecontents*}{references.bib}
      @article{abc,
      author = {A Author},
      title = {The title},
      journal = {Journal of Journals},
      volume = {12},
      number = {34},
      year = {1234},
      pages = {12345-23456}
      }
      end{filecontents*}

      usepackage{biblatex,siunitx}

      addbibresource{references.bib}

      begin{document}

      nocite{*}

      printbibliography

      Current page number format: 12345--23456

      Ideal page number format: num{12345}--num{23456}

      end{document}


      I'd like to format the page numbers using siunitx's num command, yielding a range that looks like this:



      enter image description here



      How can I do that?










      share|improve this question














      Consider the following biblatex/biber minimal example:



      enter image description here



      documentclass{article}

      usepackage{filecontents}
      begin{filecontents*}{references.bib}
      @article{abc,
      author = {A Author},
      title = {The title},
      journal = {Journal of Journals},
      volume = {12},
      number = {34},
      year = {1234},
      pages = {12345-23456}
      }
      end{filecontents*}

      usepackage{biblatex,siunitx}

      addbibresource{references.bib}

      begin{document}

      nocite{*}

      printbibliography

      Current page number format: 12345--23456

      Ideal page number format: num{12345}--num{23456}

      end{document}


      I'd like to format the page numbers using siunitx's num command, yielding a range that looks like this:



      enter image description here



      How can I do that?







      biblatex formatting siunitx






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 11 at 1:06









      WernerWerner

      444k699791681




      444k699791681






















          1 Answer
          1






          active

          oldest

          votes


















          4














          We can modify the command mknormrange in to wrap all page numbers in siunitx's num command. Then we only need to make sure to apply mknormrange also to the pages field format format (it normally is not applied to that field because Biber does enough pre-processing already).



          biblatex is quite lenient as to what is regarded as a page number and allows strings other than integers to pass as page number (for example 122a, iv), this solution only applies num to those strings passing the stricter ifinteger test. The original definition of the macros modified here can be found in biblatex.sty. Essentially we just add the ifinteger test at each call to blx@range@out@value and wrap the page number in num if it is true. For example the original definition of was



          defblx@normrange@process#1#2{%
          blx@range@out@value{#1bibrangedash#2}}


          and we make that read



          defblx@normrange@process#1#2{%
          ifinteger{#1}
          {ifinteger{#2}}
          {@secondoftwo}
          {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
          {blx@range@out@value{#1bibrangedash#2}}}


          In total



          documentclass{article}

          usepackage{biblatex,siunitx}

          DeclareFieldFormat{pages}{mkpageprefix[pagination][mknormrange]{#1}}
          makeatletter
          defblx@normrange@split#1{%
          defblx@normrange@abort{%
          ifinteger{#1}
          {blx@range@out@value{num{#1}}}
          {blx@range@out@value{#1}}}%
          blx@imc@ifpages{#1}
          {blx@normrange@range#1bibrangedashbibrangedash&}
          {blx@normrange@abort}}

          defblx@normrange@range#1bibrangedash#2bibrangedash#3&{%
          ifblank{#3}
          {blx@normrange@hyphen#1--&}
          {ifblank{#2}
          {ifinteger{#1}
          {blx@range@out@value{num{#1}bibrangedash}}
          {blx@range@out@value{#1bibrangedash}}}
          {ifblank{#1}
          {ifinteger{#2}
          {blx@range@out@value{bibrangedashnum{#2}}}
          {blx@range@out@value{bibrangedash#2}}}
          {blx@range@process{#1}{#2}}}}}

          defblx@normrange@hyphen#1-#2-#3&{%
          ifblank{#3}
          {blx@normrange@abort}
          {ifblank{#2}
          {ifblank{#1}
          {letblx@tempb@empty}
          {defblx@tempb{#1}}%
          blx@normrange@hyphen@i#3&}
          {ifblank{#1}
          {ifinteger{#2}
          {blx@range@out@value{bibrangedashnum{#2}}}
          {blx@range@out@value{bibrangedash#2}}}
          {blx@range@process{#1}{#2}}}}}

          defblx@normrange@hyphen@i#1-#2&{%
          defblx@range@out@value@numdash{blx@range@out@value{num{#1}bibrangedash}}%
          ifblank{#1#2}
          {expandafterifintegerexpandafter{blx@tempb}
          {expandafterblx@range@out@value@numdash
          expandafter{blx@tempb}}
          {expandafterblx@range@out@value
          expandafter{blx@tempbbibrangedash}}}
          {notblank{#1}
          {ifdefemptyblx@tempb
          {ifinteger{#1}
          {blx@range@out@value{bibrangedashnum{#1}}}
          {blx@range@out@value{bibrangedash#1}}}
          {expandafterblx@range@process
          expandafter{blx@tempb}{#1}}}
          {blx@normrange@hyphen@i#2&}}}

          defblx@normrange@process#1#2{%
          ifinteger{#1}
          {ifinteger{#2}}
          {@secondoftwo}
          {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
          {blx@range@out@value{#1bibrangedash#2}}}
          makeatother

          usepackage{filecontents}
          begin{filecontents*}{jobname.bib}
          @article{abc,
          author = {A Author},
          title = {The title},
          journal = {Journal of Journals},
          volume = {12},
          number = {34},
          year = {1234},
          pages = {12345-23456},
          }
          end{filecontents*}
          addbibresource{jobname.bib}

          begin{document}
          nocite{*}
          printbibliography

          Current page number format: 12345--23456

          Ideal page number format: num{12345}--num{23456}
          end{document}


          The page numbers in the bibliography show up as formatted with <code>num</code>: There is a small space between the hundred and the thousand place.






          share|improve this answer























            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%2f474259%2fformat-page-numbers-in-biblatex%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            We can modify the command mknormrange in to wrap all page numbers in siunitx's num command. Then we only need to make sure to apply mknormrange also to the pages field format format (it normally is not applied to that field because Biber does enough pre-processing already).



            biblatex is quite lenient as to what is regarded as a page number and allows strings other than integers to pass as page number (for example 122a, iv), this solution only applies num to those strings passing the stricter ifinteger test. The original definition of the macros modified here can be found in biblatex.sty. Essentially we just add the ifinteger test at each call to blx@range@out@value and wrap the page number in num if it is true. For example the original definition of was



            defblx@normrange@process#1#2{%
            blx@range@out@value{#1bibrangedash#2}}


            and we make that read



            defblx@normrange@process#1#2{%
            ifinteger{#1}
            {ifinteger{#2}}
            {@secondoftwo}
            {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
            {blx@range@out@value{#1bibrangedash#2}}}


            In total



            documentclass{article}

            usepackage{biblatex,siunitx}

            DeclareFieldFormat{pages}{mkpageprefix[pagination][mknormrange]{#1}}
            makeatletter
            defblx@normrange@split#1{%
            defblx@normrange@abort{%
            ifinteger{#1}
            {blx@range@out@value{num{#1}}}
            {blx@range@out@value{#1}}}%
            blx@imc@ifpages{#1}
            {blx@normrange@range#1bibrangedashbibrangedash&}
            {blx@normrange@abort}}

            defblx@normrange@range#1bibrangedash#2bibrangedash#3&{%
            ifblank{#3}
            {blx@normrange@hyphen#1--&}
            {ifblank{#2}
            {ifinteger{#1}
            {blx@range@out@value{num{#1}bibrangedash}}
            {blx@range@out@value{#1bibrangedash}}}
            {ifblank{#1}
            {ifinteger{#2}
            {blx@range@out@value{bibrangedashnum{#2}}}
            {blx@range@out@value{bibrangedash#2}}}
            {blx@range@process{#1}{#2}}}}}

            defblx@normrange@hyphen#1-#2-#3&{%
            ifblank{#3}
            {blx@normrange@abort}
            {ifblank{#2}
            {ifblank{#1}
            {letblx@tempb@empty}
            {defblx@tempb{#1}}%
            blx@normrange@hyphen@i#3&}
            {ifblank{#1}
            {ifinteger{#2}
            {blx@range@out@value{bibrangedashnum{#2}}}
            {blx@range@out@value{bibrangedash#2}}}
            {blx@range@process{#1}{#2}}}}}

            defblx@normrange@hyphen@i#1-#2&{%
            defblx@range@out@value@numdash{blx@range@out@value{num{#1}bibrangedash}}%
            ifblank{#1#2}
            {expandafterifintegerexpandafter{blx@tempb}
            {expandafterblx@range@out@value@numdash
            expandafter{blx@tempb}}
            {expandafterblx@range@out@value
            expandafter{blx@tempbbibrangedash}}}
            {notblank{#1}
            {ifdefemptyblx@tempb
            {ifinteger{#1}
            {blx@range@out@value{bibrangedashnum{#1}}}
            {blx@range@out@value{bibrangedash#1}}}
            {expandafterblx@range@process
            expandafter{blx@tempb}{#1}}}
            {blx@normrange@hyphen@i#2&}}}

            defblx@normrange@process#1#2{%
            ifinteger{#1}
            {ifinteger{#2}}
            {@secondoftwo}
            {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
            {blx@range@out@value{#1bibrangedash#2}}}
            makeatother

            usepackage{filecontents}
            begin{filecontents*}{jobname.bib}
            @article{abc,
            author = {A Author},
            title = {The title},
            journal = {Journal of Journals},
            volume = {12},
            number = {34},
            year = {1234},
            pages = {12345-23456},
            }
            end{filecontents*}
            addbibresource{jobname.bib}

            begin{document}
            nocite{*}
            printbibliography

            Current page number format: 12345--23456

            Ideal page number format: num{12345}--num{23456}
            end{document}


            The page numbers in the bibliography show up as formatted with <code>num</code>: There is a small space between the hundred and the thousand place.






            share|improve this answer




























              4














              We can modify the command mknormrange in to wrap all page numbers in siunitx's num command. Then we only need to make sure to apply mknormrange also to the pages field format format (it normally is not applied to that field because Biber does enough pre-processing already).



              biblatex is quite lenient as to what is regarded as a page number and allows strings other than integers to pass as page number (for example 122a, iv), this solution only applies num to those strings passing the stricter ifinteger test. The original definition of the macros modified here can be found in biblatex.sty. Essentially we just add the ifinteger test at each call to blx@range@out@value and wrap the page number in num if it is true. For example the original definition of was



              defblx@normrange@process#1#2{%
              blx@range@out@value{#1bibrangedash#2}}


              and we make that read



              defblx@normrange@process#1#2{%
              ifinteger{#1}
              {ifinteger{#2}}
              {@secondoftwo}
              {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
              {blx@range@out@value{#1bibrangedash#2}}}


              In total



              documentclass{article}

              usepackage{biblatex,siunitx}

              DeclareFieldFormat{pages}{mkpageprefix[pagination][mknormrange]{#1}}
              makeatletter
              defblx@normrange@split#1{%
              defblx@normrange@abort{%
              ifinteger{#1}
              {blx@range@out@value{num{#1}}}
              {blx@range@out@value{#1}}}%
              blx@imc@ifpages{#1}
              {blx@normrange@range#1bibrangedashbibrangedash&}
              {blx@normrange@abort}}

              defblx@normrange@range#1bibrangedash#2bibrangedash#3&{%
              ifblank{#3}
              {blx@normrange@hyphen#1--&}
              {ifblank{#2}
              {ifinteger{#1}
              {blx@range@out@value{num{#1}bibrangedash}}
              {blx@range@out@value{#1bibrangedash}}}
              {ifblank{#1}
              {ifinteger{#2}
              {blx@range@out@value{bibrangedashnum{#2}}}
              {blx@range@out@value{bibrangedash#2}}}
              {blx@range@process{#1}{#2}}}}}

              defblx@normrange@hyphen#1-#2-#3&{%
              ifblank{#3}
              {blx@normrange@abort}
              {ifblank{#2}
              {ifblank{#1}
              {letblx@tempb@empty}
              {defblx@tempb{#1}}%
              blx@normrange@hyphen@i#3&}
              {ifblank{#1}
              {ifinteger{#2}
              {blx@range@out@value{bibrangedashnum{#2}}}
              {blx@range@out@value{bibrangedash#2}}}
              {blx@range@process{#1}{#2}}}}}

              defblx@normrange@hyphen@i#1-#2&{%
              defblx@range@out@value@numdash{blx@range@out@value{num{#1}bibrangedash}}%
              ifblank{#1#2}
              {expandafterifintegerexpandafter{blx@tempb}
              {expandafterblx@range@out@value@numdash
              expandafter{blx@tempb}}
              {expandafterblx@range@out@value
              expandafter{blx@tempbbibrangedash}}}
              {notblank{#1}
              {ifdefemptyblx@tempb
              {ifinteger{#1}
              {blx@range@out@value{bibrangedashnum{#1}}}
              {blx@range@out@value{bibrangedash#1}}}
              {expandafterblx@range@process
              expandafter{blx@tempb}{#1}}}
              {blx@normrange@hyphen@i#2&}}}

              defblx@normrange@process#1#2{%
              ifinteger{#1}
              {ifinteger{#2}}
              {@secondoftwo}
              {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
              {blx@range@out@value{#1bibrangedash#2}}}
              makeatother

              usepackage{filecontents}
              begin{filecontents*}{jobname.bib}
              @article{abc,
              author = {A Author},
              title = {The title},
              journal = {Journal of Journals},
              volume = {12},
              number = {34},
              year = {1234},
              pages = {12345-23456},
              }
              end{filecontents*}
              addbibresource{jobname.bib}

              begin{document}
              nocite{*}
              printbibliography

              Current page number format: 12345--23456

              Ideal page number format: num{12345}--num{23456}
              end{document}


              The page numbers in the bibliography show up as formatted with <code>num</code>: There is a small space between the hundred and the thousand place.






              share|improve this answer


























                4












                4








                4







                We can modify the command mknormrange in to wrap all page numbers in siunitx's num command. Then we only need to make sure to apply mknormrange also to the pages field format format (it normally is not applied to that field because Biber does enough pre-processing already).



                biblatex is quite lenient as to what is regarded as a page number and allows strings other than integers to pass as page number (for example 122a, iv), this solution only applies num to those strings passing the stricter ifinteger test. The original definition of the macros modified here can be found in biblatex.sty. Essentially we just add the ifinteger test at each call to blx@range@out@value and wrap the page number in num if it is true. For example the original definition of was



                defblx@normrange@process#1#2{%
                blx@range@out@value{#1bibrangedash#2}}


                and we make that read



                defblx@normrange@process#1#2{%
                ifinteger{#1}
                {ifinteger{#2}}
                {@secondoftwo}
                {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
                {blx@range@out@value{#1bibrangedash#2}}}


                In total



                documentclass{article}

                usepackage{biblatex,siunitx}

                DeclareFieldFormat{pages}{mkpageprefix[pagination][mknormrange]{#1}}
                makeatletter
                defblx@normrange@split#1{%
                defblx@normrange@abort{%
                ifinteger{#1}
                {blx@range@out@value{num{#1}}}
                {blx@range@out@value{#1}}}%
                blx@imc@ifpages{#1}
                {blx@normrange@range#1bibrangedashbibrangedash&}
                {blx@normrange@abort}}

                defblx@normrange@range#1bibrangedash#2bibrangedash#3&{%
                ifblank{#3}
                {blx@normrange@hyphen#1--&}
                {ifblank{#2}
                {ifinteger{#1}
                {blx@range@out@value{num{#1}bibrangedash}}
                {blx@range@out@value{#1bibrangedash}}}
                {ifblank{#1}
                {ifinteger{#2}
                {blx@range@out@value{bibrangedashnum{#2}}}
                {blx@range@out@value{bibrangedash#2}}}
                {blx@range@process{#1}{#2}}}}}

                defblx@normrange@hyphen#1-#2-#3&{%
                ifblank{#3}
                {blx@normrange@abort}
                {ifblank{#2}
                {ifblank{#1}
                {letblx@tempb@empty}
                {defblx@tempb{#1}}%
                blx@normrange@hyphen@i#3&}
                {ifblank{#1}
                {ifinteger{#2}
                {blx@range@out@value{bibrangedashnum{#2}}}
                {blx@range@out@value{bibrangedash#2}}}
                {blx@range@process{#1}{#2}}}}}

                defblx@normrange@hyphen@i#1-#2&{%
                defblx@range@out@value@numdash{blx@range@out@value{num{#1}bibrangedash}}%
                ifblank{#1#2}
                {expandafterifintegerexpandafter{blx@tempb}
                {expandafterblx@range@out@value@numdash
                expandafter{blx@tempb}}
                {expandafterblx@range@out@value
                expandafter{blx@tempbbibrangedash}}}
                {notblank{#1}
                {ifdefemptyblx@tempb
                {ifinteger{#1}
                {blx@range@out@value{bibrangedashnum{#1}}}
                {blx@range@out@value{bibrangedash#1}}}
                {expandafterblx@range@process
                expandafter{blx@tempb}{#1}}}
                {blx@normrange@hyphen@i#2&}}}

                defblx@normrange@process#1#2{%
                ifinteger{#1}
                {ifinteger{#2}}
                {@secondoftwo}
                {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
                {blx@range@out@value{#1bibrangedash#2}}}
                makeatother

                usepackage{filecontents}
                begin{filecontents*}{jobname.bib}
                @article{abc,
                author = {A Author},
                title = {The title},
                journal = {Journal of Journals},
                volume = {12},
                number = {34},
                year = {1234},
                pages = {12345-23456},
                }
                end{filecontents*}
                addbibresource{jobname.bib}

                begin{document}
                nocite{*}
                printbibliography

                Current page number format: 12345--23456

                Ideal page number format: num{12345}--num{23456}
                end{document}


                The page numbers in the bibliography show up as formatted with <code>num</code>: There is a small space between the hundred and the thousand place.






                share|improve this answer













                We can modify the command mknormrange in to wrap all page numbers in siunitx's num command. Then we only need to make sure to apply mknormrange also to the pages field format format (it normally is not applied to that field because Biber does enough pre-processing already).



                biblatex is quite lenient as to what is regarded as a page number and allows strings other than integers to pass as page number (for example 122a, iv), this solution only applies num to those strings passing the stricter ifinteger test. The original definition of the macros modified here can be found in biblatex.sty. Essentially we just add the ifinteger test at each call to blx@range@out@value and wrap the page number in num if it is true. For example the original definition of was



                defblx@normrange@process#1#2{%
                blx@range@out@value{#1bibrangedash#2}}


                and we make that read



                defblx@normrange@process#1#2{%
                ifinteger{#1}
                {ifinteger{#2}}
                {@secondoftwo}
                {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
                {blx@range@out@value{#1bibrangedash#2}}}


                In total



                documentclass{article}

                usepackage{biblatex,siunitx}

                DeclareFieldFormat{pages}{mkpageprefix[pagination][mknormrange]{#1}}
                makeatletter
                defblx@normrange@split#1{%
                defblx@normrange@abort{%
                ifinteger{#1}
                {blx@range@out@value{num{#1}}}
                {blx@range@out@value{#1}}}%
                blx@imc@ifpages{#1}
                {blx@normrange@range#1bibrangedashbibrangedash&}
                {blx@normrange@abort}}

                defblx@normrange@range#1bibrangedash#2bibrangedash#3&{%
                ifblank{#3}
                {blx@normrange@hyphen#1--&}
                {ifblank{#2}
                {ifinteger{#1}
                {blx@range@out@value{num{#1}bibrangedash}}
                {blx@range@out@value{#1bibrangedash}}}
                {ifblank{#1}
                {ifinteger{#2}
                {blx@range@out@value{bibrangedashnum{#2}}}
                {blx@range@out@value{bibrangedash#2}}}
                {blx@range@process{#1}{#2}}}}}

                defblx@normrange@hyphen#1-#2-#3&{%
                ifblank{#3}
                {blx@normrange@abort}
                {ifblank{#2}
                {ifblank{#1}
                {letblx@tempb@empty}
                {defblx@tempb{#1}}%
                blx@normrange@hyphen@i#3&}
                {ifblank{#1}
                {ifinteger{#2}
                {blx@range@out@value{bibrangedashnum{#2}}}
                {blx@range@out@value{bibrangedash#2}}}
                {blx@range@process{#1}{#2}}}}}

                defblx@normrange@hyphen@i#1-#2&{%
                defblx@range@out@value@numdash{blx@range@out@value{num{#1}bibrangedash}}%
                ifblank{#1#2}
                {expandafterifintegerexpandafter{blx@tempb}
                {expandafterblx@range@out@value@numdash
                expandafter{blx@tempb}}
                {expandafterblx@range@out@value
                expandafter{blx@tempbbibrangedash}}}
                {notblank{#1}
                {ifdefemptyblx@tempb
                {ifinteger{#1}
                {blx@range@out@value{bibrangedashnum{#1}}}
                {blx@range@out@value{bibrangedash#1}}}
                {expandafterblx@range@process
                expandafter{blx@tempb}{#1}}}
                {blx@normrange@hyphen@i#2&}}}

                defblx@normrange@process#1#2{%
                ifinteger{#1}
                {ifinteger{#2}}
                {@secondoftwo}
                {blx@range@out@value{num{#1}bibrangedashnum{#2}}}
                {blx@range@out@value{#1bibrangedash#2}}}
                makeatother

                usepackage{filecontents}
                begin{filecontents*}{jobname.bib}
                @article{abc,
                author = {A Author},
                title = {The title},
                journal = {Journal of Journals},
                volume = {12},
                number = {34},
                year = {1234},
                pages = {12345-23456},
                }
                end{filecontents*}
                addbibresource{jobname.bib}

                begin{document}
                nocite{*}
                printbibliography

                Current page number format: 12345--23456

                Ideal page number format: num{12345}--num{23456}
                end{document}


                The page numbers in the bibliography show up as formatted with <code>num</code>: There is a small space between the hundred and the thousand place.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 11 at 7:56









                moewemoewe

                91.3k10114344




                91.3k10114344






























                    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%2f474259%2fformat-page-numbers-in-biblatex%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

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents