How to re-number biblatex citations












0















I am writing a long dissertation with lots of included files, and my supervisor has suggested numbering my citations in order of appearance rather than by author. I understand that I can achieve this by changing from:



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=nty, defernumbers=true]{biblatex}


to



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=none, defernumbers=true]{biblatex}


However, when I recompile my document, the numbering doesn't change. I have tried recompiling several times, and re-running biber. I have eventually got the re-numbering to work by deleting all the aux files and all the other files automatically generated by the various latex tools, then recompiling from scratch. This seems a bit awkward, and I'm scared of deleting the wrong thing by accident if I try it again when I'm working too late at night!



My question is, what is the "proper" way of re-numbering? Should I have run a particular tool to force the numbers to be regenerated? Or deleted a particular temporary file?



I have found several questions asking about changing the numbering style, but not anything that comments on how to actually apply the new style.



If it makes a difference, I am using TeXstudio with biber as the default bibliography tool, on top of TeX Live 2018. I have seen some comments that latex has to be run twice after running biber. I think TeXstudio does this anyway, and I tried manually recompiling too.










share|improve this question




















  • 1





    It is usually safe to delete auxiliary files. Texstudio does have a menu item for it, under "Tools" -> "Clean Auxiliary Files". Anyway, you should not have to do it normally, once you settled for sorting=none.

    – gusbrs
    Feb 7 at 13:53











  • It is safe to delete auxiliary files. In this case you will want to look for .aux, .bbl and .bcf, these three are the only files involved in sorting your bibliography and the labelnumber handling. Usually it should only be necessary to delete these files manually, if you changed your sorting scheme or some things went wrong on the last run. As soon as sorting=none is up and running with the LaTeX, Biber, LaTeX, LaTeX cycle there should normally be no need to delete the auxiliary files even if you rearrange citations and add new ones or drop others.

    – moewe
    Feb 7 at 14:29











  • @gusbrs Do you want to type up a quick answer here? The official stance is certainly that deleting the aux files is safe and that it should not be necessary once sorting=none has settled in. If something else is going on here we would need to see code to investigate.

    – moewe
    Feb 10 at 22:54











  • @moewe If you'd like to answer, please do so. At the moment I can't. But I could answer tomorrow, if you prefer that I do so.

    – gusbrs
    Feb 10 at 23:08











  • @gusbrs I should really be going to bed now, so I can certainly wait until tomorrow.

    – moewe
    Feb 10 at 23:21
















0















I am writing a long dissertation with lots of included files, and my supervisor has suggested numbering my citations in order of appearance rather than by author. I understand that I can achieve this by changing from:



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=nty, defernumbers=true]{biblatex}


to



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=none, defernumbers=true]{biblatex}


However, when I recompile my document, the numbering doesn't change. I have tried recompiling several times, and re-running biber. I have eventually got the re-numbering to work by deleting all the aux files and all the other files automatically generated by the various latex tools, then recompiling from scratch. This seems a bit awkward, and I'm scared of deleting the wrong thing by accident if I try it again when I'm working too late at night!



My question is, what is the "proper" way of re-numbering? Should I have run a particular tool to force the numbers to be regenerated? Or deleted a particular temporary file?



I have found several questions asking about changing the numbering style, but not anything that comments on how to actually apply the new style.



If it makes a difference, I am using TeXstudio with biber as the default bibliography tool, on top of TeX Live 2018. I have seen some comments that latex has to be run twice after running biber. I think TeXstudio does this anyway, and I tried manually recompiling too.










share|improve this question




















  • 1





    It is usually safe to delete auxiliary files. Texstudio does have a menu item for it, under "Tools" -> "Clean Auxiliary Files". Anyway, you should not have to do it normally, once you settled for sorting=none.

    – gusbrs
    Feb 7 at 13:53











  • It is safe to delete auxiliary files. In this case you will want to look for .aux, .bbl and .bcf, these three are the only files involved in sorting your bibliography and the labelnumber handling. Usually it should only be necessary to delete these files manually, if you changed your sorting scheme or some things went wrong on the last run. As soon as sorting=none is up and running with the LaTeX, Biber, LaTeX, LaTeX cycle there should normally be no need to delete the auxiliary files even if you rearrange citations and add new ones or drop others.

    – moewe
    Feb 7 at 14:29











  • @gusbrs Do you want to type up a quick answer here? The official stance is certainly that deleting the aux files is safe and that it should not be necessary once sorting=none has settled in. If something else is going on here we would need to see code to investigate.

    – moewe
    Feb 10 at 22:54











  • @moewe If you'd like to answer, please do so. At the moment I can't. But I could answer tomorrow, if you prefer that I do so.

    – gusbrs
    Feb 10 at 23:08











  • @gusbrs I should really be going to bed now, so I can certainly wait until tomorrow.

    – moewe
    Feb 10 at 23:21














0












0








0








I am writing a long dissertation with lots of included files, and my supervisor has suggested numbering my citations in order of appearance rather than by author. I understand that I can achieve this by changing from:



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=nty, defernumbers=true]{biblatex}


to



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=none, defernumbers=true]{biblatex}


However, when I recompile my document, the numbering doesn't change. I have tried recompiling several times, and re-running biber. I have eventually got the re-numbering to work by deleting all the aux files and all the other files automatically generated by the various latex tools, then recompiling from scratch. This seems a bit awkward, and I'm scared of deleting the wrong thing by accident if I try it again when I'm working too late at night!



My question is, what is the "proper" way of re-numbering? Should I have run a particular tool to force the numbers to be regenerated? Or deleted a particular temporary file?



I have found several questions asking about changing the numbering style, but not anything that comments on how to actually apply the new style.



If it makes a difference, I am using TeXstudio with biber as the default bibliography tool, on top of TeX Live 2018. I have seen some comments that latex has to be run twice after running biber. I think TeXstudio does this anyway, and I tried manually recompiling too.










share|improve this question
















I am writing a long dissertation with lots of included files, and my supervisor has suggested numbering my citations in order of appearance rather than by author. I understand that I can achieve this by changing from:



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=nty, defernumbers=true]{biblatex}


to



usepackage[bibstyle=ieee, citestyle=numeric-comp, sorting=none, defernumbers=true]{biblatex}


However, when I recompile my document, the numbering doesn't change. I have tried recompiling several times, and re-running biber. I have eventually got the re-numbering to work by deleting all the aux files and all the other files automatically generated by the various latex tools, then recompiling from scratch. This seems a bit awkward, and I'm scared of deleting the wrong thing by accident if I try it again when I'm working too late at night!



My question is, what is the "proper" way of re-numbering? Should I have run a particular tool to force the numbers to be regenerated? Or deleted a particular temporary file?



I have found several questions asking about changing the numbering style, but not anything that comments on how to actually apply the new style.



If it makes a difference, I am using TeXstudio with biber as the default bibliography tool, on top of TeX Live 2018. I have seen some comments that latex has to be run twice after running biber. I think TeXstudio does this anyway, and I tried manually recompiling too.







biblatex biber






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 at 14:02









moewe

90.8k10114343




90.8k10114343










asked Feb 7 at 13:47









JRIJRI

1053




1053








  • 1





    It is usually safe to delete auxiliary files. Texstudio does have a menu item for it, under "Tools" -> "Clean Auxiliary Files". Anyway, you should not have to do it normally, once you settled for sorting=none.

    – gusbrs
    Feb 7 at 13:53











  • It is safe to delete auxiliary files. In this case you will want to look for .aux, .bbl and .bcf, these three are the only files involved in sorting your bibliography and the labelnumber handling. Usually it should only be necessary to delete these files manually, if you changed your sorting scheme or some things went wrong on the last run. As soon as sorting=none is up and running with the LaTeX, Biber, LaTeX, LaTeX cycle there should normally be no need to delete the auxiliary files even if you rearrange citations and add new ones or drop others.

    – moewe
    Feb 7 at 14:29











  • @gusbrs Do you want to type up a quick answer here? The official stance is certainly that deleting the aux files is safe and that it should not be necessary once sorting=none has settled in. If something else is going on here we would need to see code to investigate.

    – moewe
    Feb 10 at 22:54











  • @moewe If you'd like to answer, please do so. At the moment I can't. But I could answer tomorrow, if you prefer that I do so.

    – gusbrs
    Feb 10 at 23:08











  • @gusbrs I should really be going to bed now, so I can certainly wait until tomorrow.

    – moewe
    Feb 10 at 23:21














  • 1





    It is usually safe to delete auxiliary files. Texstudio does have a menu item for it, under "Tools" -> "Clean Auxiliary Files". Anyway, you should not have to do it normally, once you settled for sorting=none.

    – gusbrs
    Feb 7 at 13:53











  • It is safe to delete auxiliary files. In this case you will want to look for .aux, .bbl and .bcf, these three are the only files involved in sorting your bibliography and the labelnumber handling. Usually it should only be necessary to delete these files manually, if you changed your sorting scheme or some things went wrong on the last run. As soon as sorting=none is up and running with the LaTeX, Biber, LaTeX, LaTeX cycle there should normally be no need to delete the auxiliary files even if you rearrange citations and add new ones or drop others.

    – moewe
    Feb 7 at 14:29











  • @gusbrs Do you want to type up a quick answer here? The official stance is certainly that deleting the aux files is safe and that it should not be necessary once sorting=none has settled in. If something else is going on here we would need to see code to investigate.

    – moewe
    Feb 10 at 22:54











  • @moewe If you'd like to answer, please do so. At the moment I can't. But I could answer tomorrow, if you prefer that I do so.

    – gusbrs
    Feb 10 at 23:08











  • @gusbrs I should really be going to bed now, so I can certainly wait until tomorrow.

    – moewe
    Feb 10 at 23:21








1




1





It is usually safe to delete auxiliary files. Texstudio does have a menu item for it, under "Tools" -> "Clean Auxiliary Files". Anyway, you should not have to do it normally, once you settled for sorting=none.

– gusbrs
Feb 7 at 13:53





It is usually safe to delete auxiliary files. Texstudio does have a menu item for it, under "Tools" -> "Clean Auxiliary Files". Anyway, you should not have to do it normally, once you settled for sorting=none.

– gusbrs
Feb 7 at 13:53













It is safe to delete auxiliary files. In this case you will want to look for .aux, .bbl and .bcf, these three are the only files involved in sorting your bibliography and the labelnumber handling. Usually it should only be necessary to delete these files manually, if you changed your sorting scheme or some things went wrong on the last run. As soon as sorting=none is up and running with the LaTeX, Biber, LaTeX, LaTeX cycle there should normally be no need to delete the auxiliary files even if you rearrange citations and add new ones or drop others.

– moewe
Feb 7 at 14:29





It is safe to delete auxiliary files. In this case you will want to look for .aux, .bbl and .bcf, these three are the only files involved in sorting your bibliography and the labelnumber handling. Usually it should only be necessary to delete these files manually, if you changed your sorting scheme or some things went wrong on the last run. As soon as sorting=none is up and running with the LaTeX, Biber, LaTeX, LaTeX cycle there should normally be no need to delete the auxiliary files even if you rearrange citations and add new ones or drop others.

– moewe
Feb 7 at 14:29













@gusbrs Do you want to type up a quick answer here? The official stance is certainly that deleting the aux files is safe and that it should not be necessary once sorting=none has settled in. If something else is going on here we would need to see code to investigate.

– moewe
Feb 10 at 22:54





@gusbrs Do you want to type up a quick answer here? The official stance is certainly that deleting the aux files is safe and that it should not be necessary once sorting=none has settled in. If something else is going on here we would need to see code to investigate.

– moewe
Feb 10 at 22:54













@moewe If you'd like to answer, please do so. At the moment I can't. But I could answer tomorrow, if you prefer that I do so.

– gusbrs
Feb 10 at 23:08





@moewe If you'd like to answer, please do so. At the moment I can't. But I could answer tomorrow, if you prefer that I do so.

– gusbrs
Feb 10 at 23:08













@gusbrs I should really be going to bed now, so I can certainly wait until tomorrow.

– moewe
Feb 10 at 23:21





@gusbrs I should really be going to bed now, so I can certainly wait until tomorrow.

– moewe
Feb 10 at 23:21










1 Answer
1






active

oldest

votes


















1














There is no harm in deleting your auxiliary files, it is safe to do so. And it seems to be needed in this case. Furthermore, once the auxiliary files have been rebuilt with option sorting=none you should not have to worry of having to delete them again. The usual build cycle, latex -> biber -> latex (2x) will capture changes in your citations and references, as usual and expected.



As far as biblatex and biber are concerned, the relevant auxiliary files to deal with are .aux, .bcf, and .bbl.



Finally, TeXstudio offers an easy way to clean auxiliary files, with the menu entry under "Tools" -> "Clean auxiliary files".






share|improve this answer
























  • Thanks. Deleting the auxiliary files fixed the problem. Once sorting=none was working, I was then able to switch back and forth between that and sorting=nty with no need to delete anything; just the normal build cycle. It's still useful to know about the "Clean auxiliary files" tool though.

    – JRI
    Feb 11 at 21:39











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%2f473764%2fhow-to-re-number-biblatex-citations%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









1














There is no harm in deleting your auxiliary files, it is safe to do so. And it seems to be needed in this case. Furthermore, once the auxiliary files have been rebuilt with option sorting=none you should not have to worry of having to delete them again. The usual build cycle, latex -> biber -> latex (2x) will capture changes in your citations and references, as usual and expected.



As far as biblatex and biber are concerned, the relevant auxiliary files to deal with are .aux, .bcf, and .bbl.



Finally, TeXstudio offers an easy way to clean auxiliary files, with the menu entry under "Tools" -> "Clean auxiliary files".






share|improve this answer
























  • Thanks. Deleting the auxiliary files fixed the problem. Once sorting=none was working, I was then able to switch back and forth between that and sorting=nty with no need to delete anything; just the normal build cycle. It's still useful to know about the "Clean auxiliary files" tool though.

    – JRI
    Feb 11 at 21:39
















1














There is no harm in deleting your auxiliary files, it is safe to do so. And it seems to be needed in this case. Furthermore, once the auxiliary files have been rebuilt with option sorting=none you should not have to worry of having to delete them again. The usual build cycle, latex -> biber -> latex (2x) will capture changes in your citations and references, as usual and expected.



As far as biblatex and biber are concerned, the relevant auxiliary files to deal with are .aux, .bcf, and .bbl.



Finally, TeXstudio offers an easy way to clean auxiliary files, with the menu entry under "Tools" -> "Clean auxiliary files".






share|improve this answer
























  • Thanks. Deleting the auxiliary files fixed the problem. Once sorting=none was working, I was then able to switch back and forth between that and sorting=nty with no need to delete anything; just the normal build cycle. It's still useful to know about the "Clean auxiliary files" tool though.

    – JRI
    Feb 11 at 21:39














1












1








1







There is no harm in deleting your auxiliary files, it is safe to do so. And it seems to be needed in this case. Furthermore, once the auxiliary files have been rebuilt with option sorting=none you should not have to worry of having to delete them again. The usual build cycle, latex -> biber -> latex (2x) will capture changes in your citations and references, as usual and expected.



As far as biblatex and biber are concerned, the relevant auxiliary files to deal with are .aux, .bcf, and .bbl.



Finally, TeXstudio offers an easy way to clean auxiliary files, with the menu entry under "Tools" -> "Clean auxiliary files".






share|improve this answer













There is no harm in deleting your auxiliary files, it is safe to do so. And it seems to be needed in this case. Furthermore, once the auxiliary files have been rebuilt with option sorting=none you should not have to worry of having to delete them again. The usual build cycle, latex -> biber -> latex (2x) will capture changes in your citations and references, as usual and expected.



As far as biblatex and biber are concerned, the relevant auxiliary files to deal with are .aux, .bcf, and .bbl.



Finally, TeXstudio offers an easy way to clean auxiliary files, with the menu entry under "Tools" -> "Clean auxiliary files".







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 11 at 10:55









gusbrsgusbrs

7,8562840




7,8562840













  • Thanks. Deleting the auxiliary files fixed the problem. Once sorting=none was working, I was then able to switch back and forth between that and sorting=nty with no need to delete anything; just the normal build cycle. It's still useful to know about the "Clean auxiliary files" tool though.

    – JRI
    Feb 11 at 21:39



















  • Thanks. Deleting the auxiliary files fixed the problem. Once sorting=none was working, I was then able to switch back and forth between that and sorting=nty with no need to delete anything; just the normal build cycle. It's still useful to know about the "Clean auxiliary files" tool though.

    – JRI
    Feb 11 at 21:39

















Thanks. Deleting the auxiliary files fixed the problem. Once sorting=none was working, I was then able to switch back and forth between that and sorting=nty with no need to delete anything; just the normal build cycle. It's still useful to know about the "Clean auxiliary files" tool though.

– JRI
Feb 11 at 21:39





Thanks. Deleting the auxiliary files fixed the problem. Once sorting=none was working, I was then able to switch back and forth between that and sorting=nty with no need to delete anything; just the normal build cycle. It's still useful to know about the "Clean auxiliary files" tool though.

– JRI
Feb 11 at 21:39


















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%2f473764%2fhow-to-re-number-biblatex-citations%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?