Format page numbers in biblatexBiblatex: Format the date of an article differently for different...

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

How does one intimidate enemies without having the capacity for violence?

Why, historically, did Gödel think CH was false?

Is it important to consider tone, melody, and musical form while writing a song?

Why don't electron-positron collisions release infinite energy?

How do I create uniquely male characters?

Minkowski space

How to format long polynomial?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Why do I get two different answers for this counting problem?

Is a tag line useful on a cover?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)

can i play a electric guitar through a bass amp?

tikz: show 0 at the axis origin

Why Is Death Allowed In the Matrix?

Problem of parity - Can we draw a closed path made up of 20 line segments...

Can I ask the recruiters in my resume to put the reason why I am rejected?

Is it legal for company to use my work email to pretend I still work there?

Arthur Somervell: 1000 Exercises - Meaning of this notation

Smoothness of finite-dimensional functional calculus

Theorems that impeded progress

To string or not to string



Format page numbers in biblatex


Biblatex: Format the date of an article differently for different journalsElsevier style citation for biblatexbiblatex with verbose-trad2: how not to print page range of article if a page number is set?Vancouver biblatex referencing stylebiblatex messing up citation entry with lots of authorsBibliography in LaTeX with Biblatex and Biber as backendCiting (author, journalabbr., year) neededHow to put citations in footnote using square bracket style?Citing from an Encyclopedia with sub voceWhere are the biblatex files located / biblatex macros defined on a win 7 /miktex system?













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

      450k729981705




      450k729981705






















          1 Answer
          1






          active

          oldest

          votes


















          4














          We can modify the command mknormrange 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 (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 numbers (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 blx@normrange@process 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 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 (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 numbers (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 blx@normrange@process 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 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 (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 numbers (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 blx@normrange@process 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 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 (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 numbers (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 blx@normrange@process 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 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 (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 numbers (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 blx@normrange@process 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








                edited 10 hours ago

























                answered Feb 11 at 7:56









                moewemoewe

                96.2k10117361




                96.2k10117361






























                    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

                    Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

                    Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

                    How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...