<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%%%
%%% Create a list of commands from bibtex entries.
%%% Each command is \makebook{author}{title}
%%%

ENTRY {
    author
    title
  }{}{}

INTEGERS { nameptr namesleft numnames }

STRINGS { s }
  
FUNCTION {preamble} {}

FUNCTION { format.names }
{

  's :=
  s num.names$ 'numnames :=
  numnames #3 &gt;
    {#3 'namesleft :=}
    {numnames 'namesleft :=}
  if$
  #1 'nameptr :=               
  { namesleft }
    {
      s nameptr "{ff{ } }{vv{ } }{ll{ }}{, jj}" format.name$
      namesleft #1 &gt;
	{ " \&amp; " *}
	{}
      if$
      nameptr #1 + 'nameptr :=
      namesleft #1 - 'namesleft :=
      *
    }
    while$
  numnames #3 &gt;
    {" et~al" *}
    {}
  if$
}

FUNCTION {book} {
  "\makebook{" author format.names  "}{" * title * "}%" * write$
  newline$
}

FUNCTION {misc} {book}

FUNCTION { default.type } { book }

READ
ITERATE{call.type$}
</pre></body></html>