Custom citation label [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • Separate Biblatex bibliographies with newest entry and highest reference number at the top

    1 answer




I have been trying to cite different publication types using different labels for each. For instance, having the following bib file



begin{filecontents}{references.bib}

@article{Anonymous:2013,
Author = {Anonymous, Arthur},
Journal = {Somewhere},
Pages = {46-54},
Title = {Arthur's article},
Volume = {25 (2013)},
Year = {2013},
sorttitle = {b}}

@article{Anonymous:2012c,

Author = {Anonymous, Arthur},
Journal = {Somewhere else},
Pages = {6-12},
Title = {Last words},
Volume = {43 (2012)},
Year = {2012},
sorttitle = {c}}

@book{Anonymous:2012a,
Address = {Someplace},
Author = {Anonymous, Arthur},
Publisher = {Nobody},
Title = {Book by Arthur},
Year = {2012},
sorttitle = {a}}

end{filecontents}

bibliography{references.bib}


How can I produce a citation list with biblatex as follows:



Books



[B1] A. Anonymous, Book by Arthur, bla bla



Articles



[J2] A. Anonymous, Arthur's article, Somewhere, 2013, bla bla



[J1] A. Anonymous, Last words, Somewhere else, 2012, bla bla










share|improve this question













marked as duplicate by moewe biblatex
Users with the  biblatex badge can single-handedly close biblatex questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 6 at 8:34


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















    up vote
    0
    down vote

    favorite













    This question already has an answer here:




    • Separate Biblatex bibliographies with newest entry and highest reference number at the top

      1 answer




    I have been trying to cite different publication types using different labels for each. For instance, having the following bib file



    begin{filecontents}{references.bib}

    @article{Anonymous:2013,
    Author = {Anonymous, Arthur},
    Journal = {Somewhere},
    Pages = {46-54},
    Title = {Arthur's article},
    Volume = {25 (2013)},
    Year = {2013},
    sorttitle = {b}}

    @article{Anonymous:2012c,

    Author = {Anonymous, Arthur},
    Journal = {Somewhere else},
    Pages = {6-12},
    Title = {Last words},
    Volume = {43 (2012)},
    Year = {2012},
    sorttitle = {c}}

    @book{Anonymous:2012a,
    Address = {Someplace},
    Author = {Anonymous, Arthur},
    Publisher = {Nobody},
    Title = {Book by Arthur},
    Year = {2012},
    sorttitle = {a}}

    end{filecontents}

    bibliography{references.bib}


    How can I produce a citation list with biblatex as follows:



    Books



    [B1] A. Anonymous, Book by Arthur, bla bla



    Articles



    [J2] A. Anonymous, Arthur's article, Somewhere, 2013, bla bla



    [J1] A. Anonymous, Last words, Somewhere else, 2012, bla bla










    share|improve this question













    marked as duplicate by moewe biblatex
    Users with the  biblatex badge can single-handedly close biblatex questions as duplicates and reopen them as needed.

    StackExchange.ready(function() {
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function() {
    $hover.showInfoMessage('', {
    messageElement: $msg.clone().show(),
    transient: false,
    position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
    dismissable: false,
    relativeToBody: true
    });
    },
    function() {
    StackExchange.helpers.removeMessages();
    }
    );
    });
    });
    Dec 6 at 8:34


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite












      This question already has an answer here:




      • Separate Biblatex bibliographies with newest entry and highest reference number at the top

        1 answer




      I have been trying to cite different publication types using different labels for each. For instance, having the following bib file



      begin{filecontents}{references.bib}

      @article{Anonymous:2013,
      Author = {Anonymous, Arthur},
      Journal = {Somewhere},
      Pages = {46-54},
      Title = {Arthur's article},
      Volume = {25 (2013)},
      Year = {2013},
      sorttitle = {b}}

      @article{Anonymous:2012c,

      Author = {Anonymous, Arthur},
      Journal = {Somewhere else},
      Pages = {6-12},
      Title = {Last words},
      Volume = {43 (2012)},
      Year = {2012},
      sorttitle = {c}}

      @book{Anonymous:2012a,
      Address = {Someplace},
      Author = {Anonymous, Arthur},
      Publisher = {Nobody},
      Title = {Book by Arthur},
      Year = {2012},
      sorttitle = {a}}

      end{filecontents}

      bibliography{references.bib}


      How can I produce a citation list with biblatex as follows:



      Books



      [B1] A. Anonymous, Book by Arthur, bla bla



      Articles



      [J2] A. Anonymous, Arthur's article, Somewhere, 2013, bla bla



      [J1] A. Anonymous, Last words, Somewhere else, 2012, bla bla










      share|improve this question














      This question already has an answer here:




      • Separate Biblatex bibliographies with newest entry and highest reference number at the top

        1 answer




      I have been trying to cite different publication types using different labels for each. For instance, having the following bib file



      begin{filecontents}{references.bib}

      @article{Anonymous:2013,
      Author = {Anonymous, Arthur},
      Journal = {Somewhere},
      Pages = {46-54},
      Title = {Arthur's article},
      Volume = {25 (2013)},
      Year = {2013},
      sorttitle = {b}}

      @article{Anonymous:2012c,

      Author = {Anonymous, Arthur},
      Journal = {Somewhere else},
      Pages = {6-12},
      Title = {Last words},
      Volume = {43 (2012)},
      Year = {2012},
      sorttitle = {c}}

      @book{Anonymous:2012a,
      Address = {Someplace},
      Author = {Anonymous, Arthur},
      Publisher = {Nobody},
      Title = {Book by Arthur},
      Year = {2012},
      sorttitle = {a}}

      end{filecontents}

      bibliography{references.bib}


      How can I produce a citation list with biblatex as follows:



      Books



      [B1] A. Anonymous, Book by Arthur, bla bla



      Articles



      [J2] A. Anonymous, Arthur's article, Somewhere, 2013, bla bla



      [J1] A. Anonymous, Last words, Somewhere else, 2012, bla bla





      This question already has an answer here:




      • Separate Biblatex bibliographies with newest entry and highest reference number at the top

        1 answer








      biblatex bibliographies xetex pdftex






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 6 at 3:04









      Humberto

      143111




      143111




      marked as duplicate by moewe biblatex
      Users with the  biblatex badge can single-handedly close biblatex questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Dec 6 at 8:34


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by moewe biblatex
      Users with the  biblatex badge can single-handedly close biblatex questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Dec 6 at 8:34


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You can easily add a prefix to a numeric/alphabetic label with the labelprefix option to newrefcontext. labelprefix needs defernumbers enabled globally. The bibliography can be split by type as described in Sectioning bibliography by type of referred item with the type option to printbibliography.



          An entry in a bibliography always applies the current refcontext. Citations apply the last refcontext (last for implementational simplicity) in which an entry was printed in a bibliography



          documentclass[british]{article}
          usepackage[T1]{fontenc}
          usepackage[utf8]{inputenc}
          usepackage{babel}
          usepackage{csquotes}

          usepackage[style=numeric, backend=biber, defernumbers]{biblatex}

          addbibresource{biblatex-examples.bib}

          begin{document}
          cite{sigfridsson,worman,baez/article,nussbaum,aksin}

          printbibheading
          newrefcontext[labelprefix=B]
          printbibliography[type=book, title=Books, heading=subbibliography]
          newrefcontext[labelprefix=J]
          printbibliography[type=article, title=Articles, heading=subbibliography]
          end{document}


          Split bibliographies with different prefixes for their labels.






          share|improve this answer























          • tex.stackexchange.com/q/434348/35864 describes something similar, but the question already had the split and it made sense to expand slightly on the short answer there.
            – moewe
            Dec 6 at 7:01










          • Thanks for that answer! One detail is the following. How can change counting such that it starts from the oldest to lattest? In your MWE, the order is correct, however the numbering should be [J3] Ozge [J2] John [J1] Emma
            – Humberto
            Dec 6 at 7:44






          • 1




            @HSS Argh, I missed that. Sorry. Does tex.stackexchange.com/q/367163/35864 help?
            – moewe
            Dec 6 at 7:47












          • It does, thanks!
            – Humberto
            Dec 6 at 7:57










          • @HSS In that case we should probably close this question as a duplicate to avoid confusion. Is that alright with you?
            – moewe
            Dec 6 at 7:58


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          You can easily add a prefix to a numeric/alphabetic label with the labelprefix option to newrefcontext. labelprefix needs defernumbers enabled globally. The bibliography can be split by type as described in Sectioning bibliography by type of referred item with the type option to printbibliography.



          An entry in a bibliography always applies the current refcontext. Citations apply the last refcontext (last for implementational simplicity) in which an entry was printed in a bibliography



          documentclass[british]{article}
          usepackage[T1]{fontenc}
          usepackage[utf8]{inputenc}
          usepackage{babel}
          usepackage{csquotes}

          usepackage[style=numeric, backend=biber, defernumbers]{biblatex}

          addbibresource{biblatex-examples.bib}

          begin{document}
          cite{sigfridsson,worman,baez/article,nussbaum,aksin}

          printbibheading
          newrefcontext[labelprefix=B]
          printbibliography[type=book, title=Books, heading=subbibliography]
          newrefcontext[labelprefix=J]
          printbibliography[type=article, title=Articles, heading=subbibliography]
          end{document}


          Split bibliographies with different prefixes for their labels.






          share|improve this answer























          • tex.stackexchange.com/q/434348/35864 describes something similar, but the question already had the split and it made sense to expand slightly on the short answer there.
            – moewe
            Dec 6 at 7:01










          • Thanks for that answer! One detail is the following. How can change counting such that it starts from the oldest to lattest? In your MWE, the order is correct, however the numbering should be [J3] Ozge [J2] John [J1] Emma
            – Humberto
            Dec 6 at 7:44






          • 1




            @HSS Argh, I missed that. Sorry. Does tex.stackexchange.com/q/367163/35864 help?
            – moewe
            Dec 6 at 7:47












          • It does, thanks!
            – Humberto
            Dec 6 at 7:57










          • @HSS In that case we should probably close this question as a duplicate to avoid confusion. Is that alright with you?
            – moewe
            Dec 6 at 7:58















          up vote
          1
          down vote



          accepted










          You can easily add a prefix to a numeric/alphabetic label with the labelprefix option to newrefcontext. labelprefix needs defernumbers enabled globally. The bibliography can be split by type as described in Sectioning bibliography by type of referred item with the type option to printbibliography.



          An entry in a bibliography always applies the current refcontext. Citations apply the last refcontext (last for implementational simplicity) in which an entry was printed in a bibliography



          documentclass[british]{article}
          usepackage[T1]{fontenc}
          usepackage[utf8]{inputenc}
          usepackage{babel}
          usepackage{csquotes}

          usepackage[style=numeric, backend=biber, defernumbers]{biblatex}

          addbibresource{biblatex-examples.bib}

          begin{document}
          cite{sigfridsson,worman,baez/article,nussbaum,aksin}

          printbibheading
          newrefcontext[labelprefix=B]
          printbibliography[type=book, title=Books, heading=subbibliography]
          newrefcontext[labelprefix=J]
          printbibliography[type=article, title=Articles, heading=subbibliography]
          end{document}


          Split bibliographies with different prefixes for their labels.






          share|improve this answer























          • tex.stackexchange.com/q/434348/35864 describes something similar, but the question already had the split and it made sense to expand slightly on the short answer there.
            – moewe
            Dec 6 at 7:01










          • Thanks for that answer! One detail is the following. How can change counting such that it starts from the oldest to lattest? In your MWE, the order is correct, however the numbering should be [J3] Ozge [J2] John [J1] Emma
            – Humberto
            Dec 6 at 7:44






          • 1




            @HSS Argh, I missed that. Sorry. Does tex.stackexchange.com/q/367163/35864 help?
            – moewe
            Dec 6 at 7:47












          • It does, thanks!
            – Humberto
            Dec 6 at 7:57










          • @HSS In that case we should probably close this question as a duplicate to avoid confusion. Is that alright with you?
            – moewe
            Dec 6 at 7:58













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You can easily add a prefix to a numeric/alphabetic label with the labelprefix option to newrefcontext. labelprefix needs defernumbers enabled globally. The bibliography can be split by type as described in Sectioning bibliography by type of referred item with the type option to printbibliography.



          An entry in a bibliography always applies the current refcontext. Citations apply the last refcontext (last for implementational simplicity) in which an entry was printed in a bibliography



          documentclass[british]{article}
          usepackage[T1]{fontenc}
          usepackage[utf8]{inputenc}
          usepackage{babel}
          usepackage{csquotes}

          usepackage[style=numeric, backend=biber, defernumbers]{biblatex}

          addbibresource{biblatex-examples.bib}

          begin{document}
          cite{sigfridsson,worman,baez/article,nussbaum,aksin}

          printbibheading
          newrefcontext[labelprefix=B]
          printbibliography[type=book, title=Books, heading=subbibliography]
          newrefcontext[labelprefix=J]
          printbibliography[type=article, title=Articles, heading=subbibliography]
          end{document}


          Split bibliographies with different prefixes for their labels.






          share|improve this answer














          You can easily add a prefix to a numeric/alphabetic label with the labelprefix option to newrefcontext. labelprefix needs defernumbers enabled globally. The bibliography can be split by type as described in Sectioning bibliography by type of referred item with the type option to printbibliography.



          An entry in a bibliography always applies the current refcontext. Citations apply the last refcontext (last for implementational simplicity) in which an entry was printed in a bibliography



          documentclass[british]{article}
          usepackage[T1]{fontenc}
          usepackage[utf8]{inputenc}
          usepackage{babel}
          usepackage{csquotes}

          usepackage[style=numeric, backend=biber, defernumbers]{biblatex}

          addbibresource{biblatex-examples.bib}

          begin{document}
          cite{sigfridsson,worman,baez/article,nussbaum,aksin}

          printbibheading
          newrefcontext[labelprefix=B]
          printbibliography[type=book, title=Books, heading=subbibliography]
          newrefcontext[labelprefix=J]
          printbibliography[type=article, title=Articles, heading=subbibliography]
          end{document}


          Split bibliographies with different prefixes for their labels.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 6 at 7:00

























          answered Dec 6 at 6:55









          moewe

          84.7k9108325




          84.7k9108325












          • tex.stackexchange.com/q/434348/35864 describes something similar, but the question already had the split and it made sense to expand slightly on the short answer there.
            – moewe
            Dec 6 at 7:01










          • Thanks for that answer! One detail is the following. How can change counting such that it starts from the oldest to lattest? In your MWE, the order is correct, however the numbering should be [J3] Ozge [J2] John [J1] Emma
            – Humberto
            Dec 6 at 7:44






          • 1




            @HSS Argh, I missed that. Sorry. Does tex.stackexchange.com/q/367163/35864 help?
            – moewe
            Dec 6 at 7:47












          • It does, thanks!
            – Humberto
            Dec 6 at 7:57










          • @HSS In that case we should probably close this question as a duplicate to avoid confusion. Is that alright with you?
            – moewe
            Dec 6 at 7:58


















          • tex.stackexchange.com/q/434348/35864 describes something similar, but the question already had the split and it made sense to expand slightly on the short answer there.
            – moewe
            Dec 6 at 7:01










          • Thanks for that answer! One detail is the following. How can change counting such that it starts from the oldest to lattest? In your MWE, the order is correct, however the numbering should be [J3] Ozge [J2] John [J1] Emma
            – Humberto
            Dec 6 at 7:44






          • 1




            @HSS Argh, I missed that. Sorry. Does tex.stackexchange.com/q/367163/35864 help?
            – moewe
            Dec 6 at 7:47












          • It does, thanks!
            – Humberto
            Dec 6 at 7:57










          • @HSS In that case we should probably close this question as a duplicate to avoid confusion. Is that alright with you?
            – moewe
            Dec 6 at 7:58
















          tex.stackexchange.com/q/434348/35864 describes something similar, but the question already had the split and it made sense to expand slightly on the short answer there.
          – moewe
          Dec 6 at 7:01




          tex.stackexchange.com/q/434348/35864 describes something similar, but the question already had the split and it made sense to expand slightly on the short answer there.
          – moewe
          Dec 6 at 7:01












          Thanks for that answer! One detail is the following. How can change counting such that it starts from the oldest to lattest? In your MWE, the order is correct, however the numbering should be [J3] Ozge [J2] John [J1] Emma
          – Humberto
          Dec 6 at 7:44




          Thanks for that answer! One detail is the following. How can change counting such that it starts from the oldest to lattest? In your MWE, the order is correct, however the numbering should be [J3] Ozge [J2] John [J1] Emma
          – Humberto
          Dec 6 at 7:44




          1




          1




          @HSS Argh, I missed that. Sorry. Does tex.stackexchange.com/q/367163/35864 help?
          – moewe
          Dec 6 at 7:47






          @HSS Argh, I missed that. Sorry. Does tex.stackexchange.com/q/367163/35864 help?
          – moewe
          Dec 6 at 7:47














          It does, thanks!
          – Humberto
          Dec 6 at 7:57




          It does, thanks!
          – Humberto
          Dec 6 at 7:57












          @HSS In that case we should probably close this question as a duplicate to avoid confusion. Is that alright with you?
          – moewe
          Dec 6 at 7:58




          @HSS In that case we should probably close this question as a duplicate to avoid confusion. Is that alright with you?
          – moewe
          Dec 6 at 7:58



          Popular posts from this blog

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?