Mulitple reference citation with usepackage{cite}











up vote
0
down vote

favorite












since i want that multiple citations look like [1-5], instead of [1,2,3,4,5] i did the following thing as suggested here "http://texblog.org/2007/05/28/mulitple-reference-citation/"



I load the package usepackage{cite}, but now i get a lot of error messages:



Paragraph ended before @citex was complete.



for every empty line in the editor (I do this to get a better overview).



Example:



@misc{A01,

author = {Jones, A. and James, C., and Giannini, J.},

year = {2001},

title = {Title of journal article},

}


documentclass[preprint,12pt]{elsarticle}
usepackage{cite}
usepackage{amssymb}

usepackage{lineno}
usepackage{graphicx}
usepackage{amsmath}
usepackage{caption}
usepackage{subcaption}

journal{Energy}



begin{document}
lasjfsjlf


sjflsjdlfj cite{A01}

bibliographystyle{ieeetr}
end{document}


Hope someone can help me; thank you










share|improve this question




















  • 1




    Can you please include a minimal working example exhibiting this error?
    – Emma
    Oct 19 '16 at 16:08












  • Added an example --> perhaps citep works?
    – Math_reald
    Oct 19 '16 at 16:57










  • It seems elsarticle is not compatible with the cite package. Fortunately, elsarticle itself provides the functionality you want. In your example citep still works because it is provided by elsarticle and not cite, whereas cite is provided by elsarticle and then incompatibly overwritten by cite.
    – Emma
    Oct 19 '16 at 18:57















up vote
0
down vote

favorite












since i want that multiple citations look like [1-5], instead of [1,2,3,4,5] i did the following thing as suggested here "http://texblog.org/2007/05/28/mulitple-reference-citation/"



I load the package usepackage{cite}, but now i get a lot of error messages:



Paragraph ended before @citex was complete.



for every empty line in the editor (I do this to get a better overview).



Example:



@misc{A01,

author = {Jones, A. and James, C., and Giannini, J.},

year = {2001},

title = {Title of journal article},

}


documentclass[preprint,12pt]{elsarticle}
usepackage{cite}
usepackage{amssymb}

usepackage{lineno}
usepackage{graphicx}
usepackage{amsmath}
usepackage{caption}
usepackage{subcaption}

journal{Energy}



begin{document}
lasjfsjlf


sjflsjdlfj cite{A01}

bibliographystyle{ieeetr}
end{document}


Hope someone can help me; thank you










share|improve this question




















  • 1




    Can you please include a minimal working example exhibiting this error?
    – Emma
    Oct 19 '16 at 16:08












  • Added an example --> perhaps citep works?
    – Math_reald
    Oct 19 '16 at 16:57










  • It seems elsarticle is not compatible with the cite package. Fortunately, elsarticle itself provides the functionality you want. In your example citep still works because it is provided by elsarticle and not cite, whereas cite is provided by elsarticle and then incompatibly overwritten by cite.
    – Emma
    Oct 19 '16 at 18:57













up vote
0
down vote

favorite









up vote
0
down vote

favorite











since i want that multiple citations look like [1-5], instead of [1,2,3,4,5] i did the following thing as suggested here "http://texblog.org/2007/05/28/mulitple-reference-citation/"



I load the package usepackage{cite}, but now i get a lot of error messages:



Paragraph ended before @citex was complete.



for every empty line in the editor (I do this to get a better overview).



Example:



@misc{A01,

author = {Jones, A. and James, C., and Giannini, J.},

year = {2001},

title = {Title of journal article},

}


documentclass[preprint,12pt]{elsarticle}
usepackage{cite}
usepackage{amssymb}

usepackage{lineno}
usepackage{graphicx}
usepackage{amsmath}
usepackage{caption}
usepackage{subcaption}

journal{Energy}



begin{document}
lasjfsjlf


sjflsjdlfj cite{A01}

bibliographystyle{ieeetr}
end{document}


Hope someone can help me; thank you










share|improve this question















since i want that multiple citations look like [1-5], instead of [1,2,3,4,5] i did the following thing as suggested here "http://texblog.org/2007/05/28/mulitple-reference-citation/"



I load the package usepackage{cite}, but now i get a lot of error messages:



Paragraph ended before @citex was complete.



for every empty line in the editor (I do this to get a better overview).



Example:



@misc{A01,

author = {Jones, A. and James, C., and Giannini, J.},

year = {2001},

title = {Title of journal article},

}


documentclass[preprint,12pt]{elsarticle}
usepackage{cite}
usepackage{amssymb}

usepackage{lineno}
usepackage{graphicx}
usepackage{amsmath}
usepackage{caption}
usepackage{subcaption}

journal{Energy}



begin{document}
lasjfsjlf


sjflsjdlfj cite{A01}

bibliographystyle{ieeetr}
end{document}


Hope someone can help me; thank you







citing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 19 '16 at 16:56

























asked Oct 19 '16 at 15:02









Math_reald

184




184








  • 1




    Can you please include a minimal working example exhibiting this error?
    – Emma
    Oct 19 '16 at 16:08












  • Added an example --> perhaps citep works?
    – Math_reald
    Oct 19 '16 at 16:57










  • It seems elsarticle is not compatible with the cite package. Fortunately, elsarticle itself provides the functionality you want. In your example citep still works because it is provided by elsarticle and not cite, whereas cite is provided by elsarticle and then incompatibly overwritten by cite.
    – Emma
    Oct 19 '16 at 18:57














  • 1




    Can you please include a minimal working example exhibiting this error?
    – Emma
    Oct 19 '16 at 16:08












  • Added an example --> perhaps citep works?
    – Math_reald
    Oct 19 '16 at 16:57










  • It seems elsarticle is not compatible with the cite package. Fortunately, elsarticle itself provides the functionality you want. In your example citep still works because it is provided by elsarticle and not cite, whereas cite is provided by elsarticle and then incompatibly overwritten by cite.
    – Emma
    Oct 19 '16 at 18:57








1




1




Can you please include a minimal working example exhibiting this error?
– Emma
Oct 19 '16 at 16:08






Can you please include a minimal working example exhibiting this error?
– Emma
Oct 19 '16 at 16:08














Added an example --> perhaps citep works?
– Math_reald
Oct 19 '16 at 16:57




Added an example --> perhaps citep works?
– Math_reald
Oct 19 '16 at 16:57












It seems elsarticle is not compatible with the cite package. Fortunately, elsarticle itself provides the functionality you want. In your example citep still works because it is provided by elsarticle and not cite, whereas cite is provided by elsarticle and then incompatibly overwritten by cite.
– Emma
Oct 19 '16 at 18:57




It seems elsarticle is not compatible with the cite package. Fortunately, elsarticle itself provides the functionality you want. In your example citep still works because it is provided by elsarticle and not cite, whereas cite is provided by elsarticle and then incompatibly overwritten by cite.
– Emma
Oct 19 '16 at 18:57















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',
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%2f334823%2fmulitple-reference-citation-with-usepackagecite%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



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f334823%2fmulitple-reference-citation-with-usepackagecite%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

Entries order in /etc/network/interfaces

新発田市

Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)