elsarticle error: You can't pop an empty literal stack for entry
Consider the input
documentclass{elsarticle}%%% V3.1 from CTAN
usepackage{hyperref}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@misc{MITRE-CWE-ConcurrencyIssues,
author = {{The {MITRE} corporation}},
title = {{CWE} category: concurrency issues},
year = 2017,
month = may,
note={url{http://cwe.mitre.org/data/definitions/557.html}}
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% Version 2.1 from http://mirrors.ctan.org/macros/latex/contrib/elsarticle/elsarticle-num.bst
begin{document}
cite{MITRE-CWE-ConcurrencyIssues}
bibliography{jobname}
end{document}
Running the usual pdflatex-bibtex loop on it produces an error message:
You can't pop an empty literal stack for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
ptr=1, stack=
(May 2017)
---the literal stack isn't empty for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
Bibtex does its job but returns error code 2, which prevents further automatic processing. Is there any error in the input, in bibtex or in the .bst file? In the latter case, how to repair elsarticle-num.bst?
bibtex elsarticle
add a comment |
Consider the input
documentclass{elsarticle}%%% V3.1 from CTAN
usepackage{hyperref}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@misc{MITRE-CWE-ConcurrencyIssues,
author = {{The {MITRE} corporation}},
title = {{CWE} category: concurrency issues},
year = 2017,
month = may,
note={url{http://cwe.mitre.org/data/definitions/557.html}}
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% Version 2.1 from http://mirrors.ctan.org/macros/latex/contrib/elsarticle/elsarticle-num.bst
begin{document}
cite{MITRE-CWE-ConcurrencyIssues}
bibliography{jobname}
end{document}
Running the usual pdflatex-bibtex loop on it produces an error message:
You can't pop an empty literal stack for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
ptr=1, stack=
(May 2017)
---the literal stack isn't empty for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
Bibtex does its job but returns error code 2, which prevents further automatic processing. Is there any error in the input, in bibtex or in the .bst file? In the latter case, how to repair elsarticle-num.bst?
bibtex elsarticle
add a comment |
Consider the input
documentclass{elsarticle}%%% V3.1 from CTAN
usepackage{hyperref}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@misc{MITRE-CWE-ConcurrencyIssues,
author = {{The {MITRE} corporation}},
title = {{CWE} category: concurrency issues},
year = 2017,
month = may,
note={url{http://cwe.mitre.org/data/definitions/557.html}}
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% Version 2.1 from http://mirrors.ctan.org/macros/latex/contrib/elsarticle/elsarticle-num.bst
begin{document}
cite{MITRE-CWE-ConcurrencyIssues}
bibliography{jobname}
end{document}
Running the usual pdflatex-bibtex loop on it produces an error message:
You can't pop an empty literal stack for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
ptr=1, stack=
(May 2017)
---the literal stack isn't empty for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
Bibtex does its job but returns error code 2, which prevents further automatic processing. Is there any error in the input, in bibtex or in the .bst file? In the latter case, how to repair elsarticle-num.bst?
bibtex elsarticle
Consider the input
documentclass{elsarticle}%%% V3.1 from CTAN
usepackage{hyperref}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@misc{MITRE-CWE-ConcurrencyIssues,
author = {{The {MITRE} corporation}},
title = {{CWE} category: concurrency issues},
year = 2017,
month = may,
note={url{http://cwe.mitre.org/data/definitions/557.html}}
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% Version 2.1 from http://mirrors.ctan.org/macros/latex/contrib/elsarticle/elsarticle-num.bst
begin{document}
cite{MITRE-CWE-ConcurrencyIssues}
bibliography{jobname}
end{document}
Running the usual pdflatex-bibtex loop on it produces an error message:
You can't pop an empty literal stack for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
ptr=1, stack=
(May 2017)
---the literal stack isn't empty for entry MITRE-CWE-ConcurrencyIssues
while executing---line 1499 of file elsarticle-num.bst
Bibtex does its job but returns error code 2, which prevents further automatic processing. Is there any error in the input, in bibtex or in the .bst file? In the latter case, how to repair elsarticle-num.bst?
bibtex elsarticle
bibtex elsarticle
edited 7 hours ago
user49915
asked 7 hours ago
user49915user49915
715122
715122
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
It looks like there is a duplicate line in elsarticle-num.bst
which is trying to use an item from the stack which isn't there anymore. I think that the function misc
(line 1360 of elsarticle-num.bst
), which looks like this:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
format.date "year" output.check
write.url
empty.misc.check
}
should have the second format.date "year" output.check
removed:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
% format.date "year" output.check <-- Remove/comment this
write.url
empty.misc.check
}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482870%2felsarticle-error-you-cant-pop-an-empty-literal-stack-for-entry%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
It looks like there is a duplicate line in elsarticle-num.bst
which is trying to use an item from the stack which isn't there anymore. I think that the function misc
(line 1360 of elsarticle-num.bst
), which looks like this:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
format.date "year" output.check
write.url
empty.misc.check
}
should have the second format.date "year" output.check
removed:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
% format.date "year" output.check <-- Remove/comment this
write.url
empty.misc.check
}
add a comment |
It looks like there is a duplicate line in elsarticle-num.bst
which is trying to use an item from the stack which isn't there anymore. I think that the function misc
(line 1360 of elsarticle-num.bst
), which looks like this:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
format.date "year" output.check
write.url
empty.misc.check
}
should have the second format.date "year" output.check
removed:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
% format.date "year" output.check <-- Remove/comment this
write.url
empty.misc.check
}
add a comment |
It looks like there is a duplicate line in elsarticle-num.bst
which is trying to use an item from the stack which isn't there anymore. I think that the function misc
(line 1360 of elsarticle-num.bst
), which looks like this:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
format.date "year" output.check
write.url
empty.misc.check
}
should have the second format.date "year" output.check
removed:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
% format.date "year" output.check <-- Remove/comment this
write.url
empty.misc.check
}
It looks like there is a duplicate line in elsarticle-num.bst
which is trying to use an item from the stack which isn't there anymore. I think that the function misc
(line 1360 of elsarticle-num.bst
), which looks like this:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
format.date "year" output.check
write.url
empty.misc.check
}
should have the second format.date "year" output.check
removed:
FUNCTION {misc}
{ output.bibitem
format.authors output
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title output
howpublished output
format.note output
format.date "year" output.check
fin.entry
% format.date "year" output.check <-- Remove/comment this
write.url
empty.misc.check
}
answered 7 hours ago
Phelype OleinikPhelype Oleinik
24.7k54688
24.7k54688
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482870%2felsarticle-error-you-cant-pop-an-empty-literal-stack-for-entry%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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