Different colors for each bib file and custom prefix [Elsevier]












0















I have multiple bib files. I would like to use different text colors for all the references mentioned in different bib files. Secondly, I would like a custom prefix for each bib file.



Please let me know how can I do it?



The result should be similar to as follows:




[R1] uses [O1] and [R2] is based on [O2].



References



[R1] .....



[R2] .....



Other References



[O1] ....



[O2] ....




The color of references mentioned in section "References" should be black, where as color of references mentioned in section "Other references" should be blue.



Any example should work with the elsarticle class such as



documentclass[5p,preprint,10pt,authoryear]{elsarticle}
usepackage{ecrc}









share|improve this question

























  • I guess it would make sense to remove the biblatex tag since elsarticle is incompatible with biblatex. (For those interested: the biblatex answer to the question is at tex.stackexchange.com/q/470852/35864)

    – moewe
    Jan 19 at 19:36













  • That said: I see only one reason to use elsarticle, namely when you submit to an Elsevier journal. In that case it is unlikely that you will be able to use any of the (quite likely) tricky solutions that one might come up with to achieve what you want. As I wrote in tex.stackexchange.com/q/468152/35864, if a publisher class can't do what you want, ask the editor how to do it or don't do it at all. If, on the other hand, you don't plan to submit to Elsevier I would not use elsarticle at all.

    – moewe
    Jan 19 at 19:39













  • Actually, I need to submit the paper to Elsevier journal, and for this purpose, I cannot avoid elsarticle. If there is any solution for the above mentioned problem which can also work with elsarticle, that will be great.

    – Muhammad Hammad
    Jan 19 at 19:44











  • Firstly, not everything that is theoretically possible is a good idea when you want to submit a paper to a publisher. I suppose they have quite strict guidelines on their bibliographies and I doubt that they allow for split references with colours and such. Have you ever seen the scheme you have in mind in the journal you want to publish with? It is possible to change the entire text colour to red and the font to Comic Sans MS, but Elsevier will probably not like that. So even if it can be done chances are it goes against policy or style guides of your journal.

    – moewe
    Jan 19 at 20:39











  • Secondly, it might be tricky to get exactly what you want within the limits that your document class imposes. elsarticle uses natbib, which is nice, but you would probably have to load multibib or a similar package and would have to hack quite a few commands. Those technicalities make it not only difficult to implement something, it also makes it less likely that the workflow on the Elsevier side will be compatible with what you have to conjure up.

    – moewe
    Jan 19 at 20:43
















0















I have multiple bib files. I would like to use different text colors for all the references mentioned in different bib files. Secondly, I would like a custom prefix for each bib file.



Please let me know how can I do it?



The result should be similar to as follows:




[R1] uses [O1] and [R2] is based on [O2].



References



[R1] .....



[R2] .....



Other References



[O1] ....



[O2] ....




The color of references mentioned in section "References" should be black, where as color of references mentioned in section "Other references" should be blue.



Any example should work with the elsarticle class such as



documentclass[5p,preprint,10pt,authoryear]{elsarticle}
usepackage{ecrc}









share|improve this question

























  • I guess it would make sense to remove the biblatex tag since elsarticle is incompatible with biblatex. (For those interested: the biblatex answer to the question is at tex.stackexchange.com/q/470852/35864)

    – moewe
    Jan 19 at 19:36













  • That said: I see only one reason to use elsarticle, namely when you submit to an Elsevier journal. In that case it is unlikely that you will be able to use any of the (quite likely) tricky solutions that one might come up with to achieve what you want. As I wrote in tex.stackexchange.com/q/468152/35864, if a publisher class can't do what you want, ask the editor how to do it or don't do it at all. If, on the other hand, you don't plan to submit to Elsevier I would not use elsarticle at all.

    – moewe
    Jan 19 at 19:39













  • Actually, I need to submit the paper to Elsevier journal, and for this purpose, I cannot avoid elsarticle. If there is any solution for the above mentioned problem which can also work with elsarticle, that will be great.

    – Muhammad Hammad
    Jan 19 at 19:44











  • Firstly, not everything that is theoretically possible is a good idea when you want to submit a paper to a publisher. I suppose they have quite strict guidelines on their bibliographies and I doubt that they allow for split references with colours and such. Have you ever seen the scheme you have in mind in the journal you want to publish with? It is possible to change the entire text colour to red and the font to Comic Sans MS, but Elsevier will probably not like that. So even if it can be done chances are it goes against policy or style guides of your journal.

    – moewe
    Jan 19 at 20:39











  • Secondly, it might be tricky to get exactly what you want within the limits that your document class imposes. elsarticle uses natbib, which is nice, but you would probably have to load multibib or a similar package and would have to hack quite a few commands. Those technicalities make it not only difficult to implement something, it also makes it less likely that the workflow on the Elsevier side will be compatible with what you have to conjure up.

    – moewe
    Jan 19 at 20:43














0












0








0








I have multiple bib files. I would like to use different text colors for all the references mentioned in different bib files. Secondly, I would like a custom prefix for each bib file.



Please let me know how can I do it?



The result should be similar to as follows:




[R1] uses [O1] and [R2] is based on [O2].



References



[R1] .....



[R2] .....



Other References



[O1] ....



[O2] ....




The color of references mentioned in section "References" should be black, where as color of references mentioned in section "Other references" should be blue.



Any example should work with the elsarticle class such as



documentclass[5p,preprint,10pt,authoryear]{elsarticle}
usepackage{ecrc}









share|improve this question
















I have multiple bib files. I would like to use different text colors for all the references mentioned in different bib files. Secondly, I would like a custom prefix for each bib file.



Please let me know how can I do it?



The result should be similar to as follows:




[R1] uses [O1] and [R2] is based on [O2].



References



[R1] .....



[R2] .....



Other References



[O1] ....



[O2] ....




The color of references mentioned in section "References" should be black, where as color of references mentioned in section "Other references" should be blue.



Any example should work with the elsarticle class such as



documentclass[5p,preprint,10pt,authoryear]{elsarticle}
usepackage{ecrc}






color elsarticle multibib






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 19 at 20:37









moewe

89k9110339




89k9110339










asked Jan 19 at 19:35









Muhammad HammadMuhammad Hammad

103




103













  • I guess it would make sense to remove the biblatex tag since elsarticle is incompatible with biblatex. (For those interested: the biblatex answer to the question is at tex.stackexchange.com/q/470852/35864)

    – moewe
    Jan 19 at 19:36













  • That said: I see only one reason to use elsarticle, namely when you submit to an Elsevier journal. In that case it is unlikely that you will be able to use any of the (quite likely) tricky solutions that one might come up with to achieve what you want. As I wrote in tex.stackexchange.com/q/468152/35864, if a publisher class can't do what you want, ask the editor how to do it or don't do it at all. If, on the other hand, you don't plan to submit to Elsevier I would not use elsarticle at all.

    – moewe
    Jan 19 at 19:39













  • Actually, I need to submit the paper to Elsevier journal, and for this purpose, I cannot avoid elsarticle. If there is any solution for the above mentioned problem which can also work with elsarticle, that will be great.

    – Muhammad Hammad
    Jan 19 at 19:44











  • Firstly, not everything that is theoretically possible is a good idea when you want to submit a paper to a publisher. I suppose they have quite strict guidelines on their bibliographies and I doubt that they allow for split references with colours and such. Have you ever seen the scheme you have in mind in the journal you want to publish with? It is possible to change the entire text colour to red and the font to Comic Sans MS, but Elsevier will probably not like that. So even if it can be done chances are it goes against policy or style guides of your journal.

    – moewe
    Jan 19 at 20:39











  • Secondly, it might be tricky to get exactly what you want within the limits that your document class imposes. elsarticle uses natbib, which is nice, but you would probably have to load multibib or a similar package and would have to hack quite a few commands. Those technicalities make it not only difficult to implement something, it also makes it less likely that the workflow on the Elsevier side will be compatible with what you have to conjure up.

    – moewe
    Jan 19 at 20:43



















  • I guess it would make sense to remove the biblatex tag since elsarticle is incompatible with biblatex. (For those interested: the biblatex answer to the question is at tex.stackexchange.com/q/470852/35864)

    – moewe
    Jan 19 at 19:36













  • That said: I see only one reason to use elsarticle, namely when you submit to an Elsevier journal. In that case it is unlikely that you will be able to use any of the (quite likely) tricky solutions that one might come up with to achieve what you want. As I wrote in tex.stackexchange.com/q/468152/35864, if a publisher class can't do what you want, ask the editor how to do it or don't do it at all. If, on the other hand, you don't plan to submit to Elsevier I would not use elsarticle at all.

    – moewe
    Jan 19 at 19:39













  • Actually, I need to submit the paper to Elsevier journal, and for this purpose, I cannot avoid elsarticle. If there is any solution for the above mentioned problem which can also work with elsarticle, that will be great.

    – Muhammad Hammad
    Jan 19 at 19:44











  • Firstly, not everything that is theoretically possible is a good idea when you want to submit a paper to a publisher. I suppose they have quite strict guidelines on their bibliographies and I doubt that they allow for split references with colours and such. Have you ever seen the scheme you have in mind in the journal you want to publish with? It is possible to change the entire text colour to red and the font to Comic Sans MS, but Elsevier will probably not like that. So even if it can be done chances are it goes against policy or style guides of your journal.

    – moewe
    Jan 19 at 20:39











  • Secondly, it might be tricky to get exactly what you want within the limits that your document class imposes. elsarticle uses natbib, which is nice, but you would probably have to load multibib or a similar package and would have to hack quite a few commands. Those technicalities make it not only difficult to implement something, it also makes it less likely that the workflow on the Elsevier side will be compatible with what you have to conjure up.

    – moewe
    Jan 19 at 20:43

















I guess it would make sense to remove the biblatex tag since elsarticle is incompatible with biblatex. (For those interested: the biblatex answer to the question is at tex.stackexchange.com/q/470852/35864)

– moewe
Jan 19 at 19:36







I guess it would make sense to remove the biblatex tag since elsarticle is incompatible with biblatex. (For those interested: the biblatex answer to the question is at tex.stackexchange.com/q/470852/35864)

– moewe
Jan 19 at 19:36















That said: I see only one reason to use elsarticle, namely when you submit to an Elsevier journal. In that case it is unlikely that you will be able to use any of the (quite likely) tricky solutions that one might come up with to achieve what you want. As I wrote in tex.stackexchange.com/q/468152/35864, if a publisher class can't do what you want, ask the editor how to do it or don't do it at all. If, on the other hand, you don't plan to submit to Elsevier I would not use elsarticle at all.

– moewe
Jan 19 at 19:39







That said: I see only one reason to use elsarticle, namely when you submit to an Elsevier journal. In that case it is unlikely that you will be able to use any of the (quite likely) tricky solutions that one might come up with to achieve what you want. As I wrote in tex.stackexchange.com/q/468152/35864, if a publisher class can't do what you want, ask the editor how to do it or don't do it at all. If, on the other hand, you don't plan to submit to Elsevier I would not use elsarticle at all.

– moewe
Jan 19 at 19:39















Actually, I need to submit the paper to Elsevier journal, and for this purpose, I cannot avoid elsarticle. If there is any solution for the above mentioned problem which can also work with elsarticle, that will be great.

– Muhammad Hammad
Jan 19 at 19:44





Actually, I need to submit the paper to Elsevier journal, and for this purpose, I cannot avoid elsarticle. If there is any solution for the above mentioned problem which can also work with elsarticle, that will be great.

– Muhammad Hammad
Jan 19 at 19:44













Firstly, not everything that is theoretically possible is a good idea when you want to submit a paper to a publisher. I suppose they have quite strict guidelines on their bibliographies and I doubt that they allow for split references with colours and such. Have you ever seen the scheme you have in mind in the journal you want to publish with? It is possible to change the entire text colour to red and the font to Comic Sans MS, but Elsevier will probably not like that. So even if it can be done chances are it goes against policy or style guides of your journal.

– moewe
Jan 19 at 20:39





Firstly, not everything that is theoretically possible is a good idea when you want to submit a paper to a publisher. I suppose they have quite strict guidelines on their bibliographies and I doubt that they allow for split references with colours and such. Have you ever seen the scheme you have in mind in the journal you want to publish with? It is possible to change the entire text colour to red and the font to Comic Sans MS, but Elsevier will probably not like that. So even if it can be done chances are it goes against policy or style guides of your journal.

– moewe
Jan 19 at 20:39













Secondly, it might be tricky to get exactly what you want within the limits that your document class imposes. elsarticle uses natbib, which is nice, but you would probably have to load multibib or a similar package and would have to hack quite a few commands. Those technicalities make it not only difficult to implement something, it also makes it less likely that the workflow on the Elsevier side will be compatible with what you have to conjure up.

– moewe
Jan 19 at 20:43





Secondly, it might be tricky to get exactly what you want within the limits that your document class imposes. elsarticle uses natbib, which is nice, but you would probably have to load multibib or a similar package and would have to hack quite a few commands. Those technicalities make it not only difficult to implement something, it also makes it less likely that the workflow on the Elsevier side will be compatible with what you have to conjure up.

– moewe
Jan 19 at 20:43










0






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%2f470923%2fdifferent-colors-for-each-bib-file-and-custom-prefix-elsevier%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470923%2fdifferent-colors-for-each-bib-file-and-custom-prefix-elsevier%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

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

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents