You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an item like page numbers for a journal article is missing from the BibTeX file, that item shows up in red letters as "missing" in the rendered output. Is there a way to hide missing fields entirely? In this example, both the "missing" and the "pp." preceding the page numbers would not be included in the rendered output. I know some fields are missing in the file but there's nothing I can do about it to fix the file, and red "missing" makes my page look less professional.
The text was updated successfully, but these errors were encountered:
To clarify, if one item doesn't have page numbers, then the desired behavior is to leave the page number part of the citation out. But the page number part would still be displayed for those items that do have page numbers. This applies to any field; I'm just using page numbers as an example.
I faced the same issue but simply modified the source code to prevent it from adding the missing string.
The modification is around line 62 in the definition of the function bib2html.
return itemStr.replace(/undefined[,.]?/g,
''); //this is what I added
//'<span class="undefined">missing<\/span>'); // this is what I removed
If an item like page numbers for a journal article is missing from the BibTeX file, that item shows up in red letters as "missing" in the rendered output. Is there a way to hide missing fields entirely? In this example, both the "missing" and the "pp." preceding the page numbers would not be included in the rendered output. I know some fields are missing in the file but there's nothing I can do about it to fix the file, and red "missing" makes my page look less professional.
The text was updated successfully, but these errors were encountered: