I have the following function in my BST file.
FUNCTION {techreport}
{ output.bibitem
format.authors "author" output.check
author format.key output % puts year
output.year.check % after author(s)
new.block
format.title "title" output.check
new.block
format.tr.number output.nonnull
institution "institution" output.check
address output
% format.date "year" output.check % don't check for year here because
format.date output % puts year after author(s)
new.block
pages output %JOURNAL wants this
"pages"
new.block
note output
fin.entry
}
The journal wants total pages where available. Right now it prints out the word "pages" after each entry, regardless of if the corresponding .bib item has an entry for the PAGES = {} field.
How can I make it so it only prints the word "pages" when the PAGES field in the .bib file is declared?
pagesfield should probably be employed primarily for entries of type@articleor@incollection.) Instead, you should make use of thenotefield, as innote = "72 pages total",-- or whatever the correct format may be. – Mico Aug 27 '19 at 15:02