Leozítor
Leozítor

Reputation: 166

BibTeX You can't pop an empty literal stack

I know just the basic of latex, and I got an error inside the bibliography files iet.bst a bibliography file modified by IET and offered as latex files to write a paper to be published. The error is in @webpage bibliography entry type, as I already searched, I think it is about some field that should be optional and after, maybe wrongly being poped, the error appears. error message

line 1838 from iet.bst is this:

ITERATE {call.type$}

The code about the webpage entry type is this:

% Title and url fields required;
% author, note, year, month, and lastchecked fields optional
STRINGS {database}
FUNCTION {webpage}
{ output.bibitem
  author empty$
    { editor empty$
        'skip$  % author and editor both optional
        { format.editors output.nonnull }
      if$
    }
    { editor empty$
        { format.authors output.nonnull }
        { "can't use both author and editor fields in " cite$ * warning$ }
      if$
    }
  if$
%  author empty$
%    'skip$
%    { format.authors output.nonnull }
%  if$
  new.block
  format.title "title" output.check
  journal empty$
    {
      format.type "type" output.check
      publisher empty$
        'skip$
        { format.publisher.address output }
      if$
      "database on the Internet" 'database :=
      type database =
        { format.journal.date "year" output.check }
        { format.date "year" output.check }
      if$
      lastchecked empty$
        'skip$
        { format.lastchecked output }
      if$
      new.block
      part empty$
        'skip$
        { part output }
      if$
      pages empty$
        'skip$
        { pages bracket.check output }
      if$
    }
    { journal
      remove.dots
      "journal" bibinfo.check
      "journal" output.check
      format.type "type" output.check
      format.journal.date "year" output.check
      lastchecked empty$
        'skip$
        { format.lastchecked output
      ";" no.blank.or.punct output
    }
      if$
      no.blank.or.punct format.vol.num output
      pages empty$
        'skip$
    { ":" no.blank.or.punct output
      no.blank.or.punct pages bracket.check output
    }
      if$
      new.block
    }
  if$
  format.url "url" output.check
  new.block
  note output
  fin.entry
}
% ...urlbst to here

The reason that points me the error is in that part, is because when I remove the entry @webpage referent of Arduino:2020 from the main.tex the error disappear, but as I already said i only knows the basic of latex :( The strange thing is that even with this error, the pdf is rendered apparently with no problem. if someone helps me I appreciate it. Thank you

Upvotes: 15

Views: 17145

Answers (7)

Imran Hosen
Imran Hosen

Reputation: 51

I got the same error in @inproceedings entry type. Removing 'organization' field solved the problem.

Upvotes: 1

Sang
Sang

Reputation: 4446

In my case, for @inproceedings, I added "editor" field, which solved the problem

Upvotes: 1

AreumBae
AreumBae

Reputation: 101

I got the same error with an @article entry type.

In my case, it seems that when the fields volume={volume number}, and number={issue number}, are not added to the article's entry despite being optional, this error pops up. After adding the mentioned fields to my entry, the error disappeared. Try adding the related optional fields to your entry. Also, maybe changing your entry to another entry type such as misc solves your problem.

Upvotes: 10

JBartlett_6
JBartlett_6

Reputation: 11

Adding to @AreumBae's solution, I had a similar problem with the @inproceedings entry type. This error was caused by having the fields that the .bst file wasn't expecting, specifically the 'volume' field type. Removing this entry fixed the issue.

Upvotes: 1

kato
kato

Reputation: 11

I changed the compile commannd from bibtex to pbibtex, and it was solved.

Upvotes: 1

Pierre Carbonnelle
Pierre Carbonnelle

Reputation: 2615

Changing the entry from article to misc solved the problem for me.

I tried adding fields to the entry, but it would not fix the problem.

Upvotes: 2

sorour
sorour

Reputation: 59

It happened to me once, and I added the volume of the article manually to the BibTeX file then the error was resolved.

Upvotes: 1

Related Questions