Wrong numbering of second biblatex bibliography list with same entries












0














I need to have two bibliography lists: one with original titles (and all info) and second with non-english titles translated to English.



I have all my non-english entries translated to english with eng_ prefix. With help of this answer, I succeed to create such bibliography lists automatically.



documentclass[article,a4paper,14pt,oneside,openany]{memoir}
usepackage[defernumbers=true,sorting=none]{biblatex}

begin{filecontents*}{cite.bib}
@article{work1, author = {x y}, title = {Some title of first work in russian}, journal = {j}, year = {2001}}
@article{eng_work1, author = {x y}, title = {Title of first work translated to english}, journal = {j}, year = {2001}}
@article{work2, author = {x y}, title = {Some title of second work published in english}, journal = {j}, year = {2002}}
@article{work3, author = {x y}, title = {Some title of third work in russian}, journal = {j}, year = {2003}}
@article{eng_work3, author = {x y}, title = {Title of third work translated to english}, journal = {j}, year = {2003}}
end{filecontents*}
addbibresource{cite.bib}

DeclareBibliographyCategory{orig}
DeclareBibliographyCategory{eng}

makeatletter
AtEveryCitekey{%
addtocategory{orig}{thefield{entrykey}}%
nocite{eng_thefield{entrykey}}%
blx@ifdata{eng_thefield{entrykey}}%
{addtocategory{eng}{eng_thefield{entrykey}}}%
{addtocategory{eng}{thefield{entrykey}}}}
makeatother

begin{document}
text cite{work1} text

text cite{work2} text

text cite{work3} text

printbibliography[category=orig,title={Original bibliography}]
printbibliography[category=eng,resetnumbers=true,title={Translated bibliography}]
end{document}


result



Unfortunately numbering of second list, doesn't work as expected with resetnumbers option.



I expect numbers of "same" (logically) entries to be the same, but instead it seems that entries with original English titles get its numbers directly from previous list, and don't affect counter of second list.



Is there a way to fix it, so second list, so won't have duplicates in numbers?










share|improve this question



























    0














    I need to have two bibliography lists: one with original titles (and all info) and second with non-english titles translated to English.



    I have all my non-english entries translated to english with eng_ prefix. With help of this answer, I succeed to create such bibliography lists automatically.



    documentclass[article,a4paper,14pt,oneside,openany]{memoir}
    usepackage[defernumbers=true,sorting=none]{biblatex}

    begin{filecontents*}{cite.bib}
    @article{work1, author = {x y}, title = {Some title of first work in russian}, journal = {j}, year = {2001}}
    @article{eng_work1, author = {x y}, title = {Title of first work translated to english}, journal = {j}, year = {2001}}
    @article{work2, author = {x y}, title = {Some title of second work published in english}, journal = {j}, year = {2002}}
    @article{work3, author = {x y}, title = {Some title of third work in russian}, journal = {j}, year = {2003}}
    @article{eng_work3, author = {x y}, title = {Title of third work translated to english}, journal = {j}, year = {2003}}
    end{filecontents*}
    addbibresource{cite.bib}

    DeclareBibliographyCategory{orig}
    DeclareBibliographyCategory{eng}

    makeatletter
    AtEveryCitekey{%
    addtocategory{orig}{thefield{entrykey}}%
    nocite{eng_thefield{entrykey}}%
    blx@ifdata{eng_thefield{entrykey}}%
    {addtocategory{eng}{eng_thefield{entrykey}}}%
    {addtocategory{eng}{thefield{entrykey}}}}
    makeatother

    begin{document}
    text cite{work1} text

    text cite{work2} text

    text cite{work3} text

    printbibliography[category=orig,title={Original bibliography}]
    printbibliography[category=eng,resetnumbers=true,title={Translated bibliography}]
    end{document}


    result



    Unfortunately numbering of second list, doesn't work as expected with resetnumbers option.



    I expect numbers of "same" (logically) entries to be the same, but instead it seems that entries with original English titles get its numbers directly from previous list, and don't affect counter of second list.



    Is there a way to fix it, so second list, so won't have duplicates in numbers?










    share|improve this question

























      0












      0








      0







      I need to have two bibliography lists: one with original titles (and all info) and second with non-english titles translated to English.



      I have all my non-english entries translated to english with eng_ prefix. With help of this answer, I succeed to create such bibliography lists automatically.



      documentclass[article,a4paper,14pt,oneside,openany]{memoir}
      usepackage[defernumbers=true,sorting=none]{biblatex}

      begin{filecontents*}{cite.bib}
      @article{work1, author = {x y}, title = {Some title of first work in russian}, journal = {j}, year = {2001}}
      @article{eng_work1, author = {x y}, title = {Title of first work translated to english}, journal = {j}, year = {2001}}
      @article{work2, author = {x y}, title = {Some title of second work published in english}, journal = {j}, year = {2002}}
      @article{work3, author = {x y}, title = {Some title of third work in russian}, journal = {j}, year = {2003}}
      @article{eng_work3, author = {x y}, title = {Title of third work translated to english}, journal = {j}, year = {2003}}
      end{filecontents*}
      addbibresource{cite.bib}

      DeclareBibliographyCategory{orig}
      DeclareBibliographyCategory{eng}

      makeatletter
      AtEveryCitekey{%
      addtocategory{orig}{thefield{entrykey}}%
      nocite{eng_thefield{entrykey}}%
      blx@ifdata{eng_thefield{entrykey}}%
      {addtocategory{eng}{eng_thefield{entrykey}}}%
      {addtocategory{eng}{thefield{entrykey}}}}
      makeatother

      begin{document}
      text cite{work1} text

      text cite{work2} text

      text cite{work3} text

      printbibliography[category=orig,title={Original bibliography}]
      printbibliography[category=eng,resetnumbers=true,title={Translated bibliography}]
      end{document}


      result



      Unfortunately numbering of second list, doesn't work as expected with resetnumbers option.



      I expect numbers of "same" (logically) entries to be the same, but instead it seems that entries with original English titles get its numbers directly from previous list, and don't affect counter of second list.



      Is there a way to fix it, so second list, so won't have duplicates in numbers?










      share|improve this question













      I need to have two bibliography lists: one with original titles (and all info) and second with non-english titles translated to English.



      I have all my non-english entries translated to english with eng_ prefix. With help of this answer, I succeed to create such bibliography lists automatically.



      documentclass[article,a4paper,14pt,oneside,openany]{memoir}
      usepackage[defernumbers=true,sorting=none]{biblatex}

      begin{filecontents*}{cite.bib}
      @article{work1, author = {x y}, title = {Some title of first work in russian}, journal = {j}, year = {2001}}
      @article{eng_work1, author = {x y}, title = {Title of first work translated to english}, journal = {j}, year = {2001}}
      @article{work2, author = {x y}, title = {Some title of second work published in english}, journal = {j}, year = {2002}}
      @article{work3, author = {x y}, title = {Some title of third work in russian}, journal = {j}, year = {2003}}
      @article{eng_work3, author = {x y}, title = {Title of third work translated to english}, journal = {j}, year = {2003}}
      end{filecontents*}
      addbibresource{cite.bib}

      DeclareBibliographyCategory{orig}
      DeclareBibliographyCategory{eng}

      makeatletter
      AtEveryCitekey{%
      addtocategory{orig}{thefield{entrykey}}%
      nocite{eng_thefield{entrykey}}%
      blx@ifdata{eng_thefield{entrykey}}%
      {addtocategory{eng}{eng_thefield{entrykey}}}%
      {addtocategory{eng}{thefield{entrykey}}}}
      makeatother

      begin{document}
      text cite{work1} text

      text cite{work2} text

      text cite{work3} text

      printbibliography[category=orig,title={Original bibliography}]
      printbibliography[category=eng,resetnumbers=true,title={Translated bibliography}]
      end{document}


      result



      Unfortunately numbering of second list, doesn't work as expected with resetnumbers option.



      I expect numbers of "same" (logically) entries to be the same, but instead it seems that entries with original English titles get its numbers directly from previous list, and don't affect counter of second list.



      Is there a way to fix it, so second list, so won't have duplicates in numbers?







      biblatex numbering subdividing






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 12 '18 at 17:08









      Ivan Naydonov

      11




      11



























          active

          oldest

          votes











          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%2f464560%2fwrong-numbering-of-second-biblatex-bibliography-list-with-same-entries%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f464560%2fwrong-numbering-of-second-biblatex-bibliography-list-with-same-entries%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

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?