elsarticle-num.bst: year appears twice in the bibliography entryelsarticle error: You can't pop an empty...

Pact of Blade Warlock with Dancing Blade

Getting extremely large arrows with tikzcd

Why are UK visa biometrics appointments suspended at USCIS Application Support Centers?

How obscure is the use of 令 in 令和?

What is required to make GPS signals available indoors?

How seriously should I take size and weight limits of hand luggage?

Bullying boss launched a smear campaign and made me unemployable

Car headlights in a world without electricity

How to remove border from elements in the last row?

Obtaining database information and values in extended properties

OP Amp not amplifying audio signal

What does the same-ish mean?

Label inside tikzcd square

Can compressed videos be decoded back to their uncompresed original format?

What is the most common color to indicate the input-field is disabled?

GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?

Why didn't Boeing produce its own regional jet?

How to prevent "they're falling in love" trope

How do conventional missiles fly?

Is it possible to create a QR code using text?

Where would I need my direct neural interface to be implanted?

What is a Samsaran Word™?

Can someone clarify Hamming's notion of important problems in relation to modern academia?

How to travel to Japan while expressing milk?



elsarticle-num.bst: year appears twice in the bibliography entry


elsarticle error: You can't pop an empty literal stack for entryYear is missing for articles entries in elsarticle-num bibilographyMissing year in bibliography entryBibligraphy ordering - ignore entryElsarticle no bibliography on the pdf outputLabels of the authors in elsarticleYear Missing in Bibliography Entries - elsarticleHow to include the doi in only one single bibtex reference and exclude it from all others?elsarticle: problems with begin{cases}elsarticle - same author, same year - show year twiceelsarticle error: You can't pop an empty literal stack for entry













1















Continuing resolving the misc entry in https://tex.stackexchange.com/a/482872, let's conside the input



documentclass{elsarticle}%% V3.1 from https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{LevesonTurner-InvestigationOfTheTherac25Accidents,
author = {Nancy Gail Leveson and Clark Savage Turner},
title = {Investigation of the {Therac}-25 accidents},
journal = {{IEEE} Computer},
volume = 26,
number = 7,
pages = {18--41},
year = 1993
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% V2.1 From https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
begin{document}
cite{LevesonTurner-InvestigationOfTheTherac25Accidents}
bibliography{jobname}
end{document}


Running the standard pdflatex-bibtex loop on it produces the year (1993) twice:year twice



When I look at the style file around line 1177, I see that the year is being processed only once:



FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title "title" output.check
crossref missing$
{ journal
"journal" output.check
% add.blank
before.all 'output.state :=
format.vol.num.pages output
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
format.journal.pages
format.note output
format.date "year" output.check
fin.entry
write.url
}


I don't see what's wrong. Any bugfix?










share|improve this question


















  • 1





    This one, I think, is in the format.journal.pages function which contains a call to format.year, for some reason. If you comment that whole line (804) the extra year disappears. I'm not sure what this will do to other entry types, though... Hm... It looks like format.journal.pages is only used by article, so I think it's safe to remove that line... This style is really annoying you :)

    – Phelype Oleinik
    5 mins ago













  • @PhelypeOleinik Oh, I see. Thanks. I'm new to bst files. Is there any reason you prefer to comment out line 804 over line 1177?

    – user49915
    10 secs ago
















1















Continuing resolving the misc entry in https://tex.stackexchange.com/a/482872, let's conside the input



documentclass{elsarticle}%% V3.1 from https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{LevesonTurner-InvestigationOfTheTherac25Accidents,
author = {Nancy Gail Leveson and Clark Savage Turner},
title = {Investigation of the {Therac}-25 accidents},
journal = {{IEEE} Computer},
volume = 26,
number = 7,
pages = {18--41},
year = 1993
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% V2.1 From https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
begin{document}
cite{LevesonTurner-InvestigationOfTheTherac25Accidents}
bibliography{jobname}
end{document}


Running the standard pdflatex-bibtex loop on it produces the year (1993) twice:year twice



When I look at the style file around line 1177, I see that the year is being processed only once:



FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title "title" output.check
crossref missing$
{ journal
"journal" output.check
% add.blank
before.all 'output.state :=
format.vol.num.pages output
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
format.journal.pages
format.note output
format.date "year" output.check
fin.entry
write.url
}


I don't see what's wrong. Any bugfix?










share|improve this question


















  • 1





    This one, I think, is in the format.journal.pages function which contains a call to format.year, for some reason. If you comment that whole line (804) the extra year disappears. I'm not sure what this will do to other entry types, though... Hm... It looks like format.journal.pages is only used by article, so I think it's safe to remove that line... This style is really annoying you :)

    – Phelype Oleinik
    5 mins ago













  • @PhelypeOleinik Oh, I see. Thanks. I'm new to bst files. Is there any reason you prefer to comment out line 804 over line 1177?

    – user49915
    10 secs ago














1












1








1








Continuing resolving the misc entry in https://tex.stackexchange.com/a/482872, let's conside the input



documentclass{elsarticle}%% V3.1 from https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{LevesonTurner-InvestigationOfTheTherac25Accidents,
author = {Nancy Gail Leveson and Clark Savage Turner},
title = {Investigation of the {Therac}-25 accidents},
journal = {{IEEE} Computer},
volume = 26,
number = 7,
pages = {18--41},
year = 1993
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% V2.1 From https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
begin{document}
cite{LevesonTurner-InvestigationOfTheTherac25Accidents}
bibliography{jobname}
end{document}


Running the standard pdflatex-bibtex loop on it produces the year (1993) twice:year twice



When I look at the style file around line 1177, I see that the year is being processed only once:



FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title "title" output.check
crossref missing$
{ journal
"journal" output.check
% add.blank
before.all 'output.state :=
format.vol.num.pages output
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
format.journal.pages
format.note output
format.date "year" output.check
fin.entry
write.url
}


I don't see what's wrong. Any bugfix?










share|improve this question














Continuing resolving the misc entry in https://tex.stackexchange.com/a/482872, let's conside the input



documentclass{elsarticle}%% V3.1 from https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{LevesonTurner-InvestigationOfTheTherac25Accidents,
author = {Nancy Gail Leveson and Clark Savage Turner},
title = {Investigation of the {Therac}-25 accidents},
journal = {{IEEE} Computer},
volume = 26,
number = 7,
pages = {18--41},
year = 1993
}
end{filecontents}
bibliographystyle{elsarticle-num}%%% V2.1 From https://ctan.org/tex-archive/macros/latex/contrib/elsarticle
begin{document}
cite{LevesonTurner-InvestigationOfTheTherac25Accidents}
bibliography{jobname}
end{document}


Running the standard pdflatex-bibtex loop on it produces the year (1993) twice:year twice



When I look at the style file around line 1177, I see that the year is being processed only once:



FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
format.title "title" output.check
crossref missing$
{ journal
"journal" output.check
% add.blank
before.all 'output.state :=
format.vol.num.pages output
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
format.journal.pages
format.note output
format.date "year" output.check
fin.entry
write.url
}


I don't see what's wrong. Any bugfix?







bibtex elsarticle






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 13 mins ago









user49915user49915

703122




703122








  • 1





    This one, I think, is in the format.journal.pages function which contains a call to format.year, for some reason. If you comment that whole line (804) the extra year disappears. I'm not sure what this will do to other entry types, though... Hm... It looks like format.journal.pages is only used by article, so I think it's safe to remove that line... This style is really annoying you :)

    – Phelype Oleinik
    5 mins ago













  • @PhelypeOleinik Oh, I see. Thanks. I'm new to bst files. Is there any reason you prefer to comment out line 804 over line 1177?

    – user49915
    10 secs ago














  • 1





    This one, I think, is in the format.journal.pages function which contains a call to format.year, for some reason. If you comment that whole line (804) the extra year disappears. I'm not sure what this will do to other entry types, though... Hm... It looks like format.journal.pages is only used by article, so I think it's safe to remove that line... This style is really annoying you :)

    – Phelype Oleinik
    5 mins ago













  • @PhelypeOleinik Oh, I see. Thanks. I'm new to bst files. Is there any reason you prefer to comment out line 804 over line 1177?

    – user49915
    10 secs ago








1




1





This one, I think, is in the format.journal.pages function which contains a call to format.year, for some reason. If you comment that whole line (804) the extra year disappears. I'm not sure what this will do to other entry types, though... Hm... It looks like format.journal.pages is only used by article, so I think it's safe to remove that line... This style is really annoying you :)

– Phelype Oleinik
5 mins ago







This one, I think, is in the format.journal.pages function which contains a call to format.year, for some reason. If you comment that whole line (804) the extra year disappears. I'm not sure what this will do to other entry types, though... Hm... It looks like format.journal.pages is only used by article, so I think it's safe to remove that line... This style is really annoying you :)

– Phelype Oleinik
5 mins ago















@PhelypeOleinik Oh, I see. Thanks. I'm new to bst files. Is there any reason you prefer to comment out line 804 over line 1177?

– user49915
10 secs ago





@PhelypeOleinik Oh, I see. Thanks. I'm new to bst files. Is there any reason you prefer to comment out line 804 over line 1177?

– user49915
10 secs ago










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%2f482878%2felsarticle-num-bst-year-appears-twice-in-the-bibliography-entry%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%2f482878%2felsarticle-num-bst-year-appears-twice-in-the-bibliography-entry%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

Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

Schneeberg (Smreczany) Bibliografia | Menu...

Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...