From 0ab9697a617fca8cc1d89c6ae80101a54033f5ba Mon Sep 17 00:00:00 2001 From: Mingyuan Zhou Date: Mon, 27 Jul 2020 00:17:03 -0500 Subject: [PATCH] revise the format of displaying two authors For a paper with two authors, FirstAuthor and SecondAuthor, the current version will display it as "FirstAuthor, and SecondAuthor" After the change, the new version will display it as "FirstAuthor and SecondAuthor" --- src/bibtex_js.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bibtex_js.js b/src/bibtex_js.js index a00d7e6..bf71a02 100644 --- a/src/bibtex_js.js +++ b/src/bibtex_js.js @@ -456,7 +456,12 @@ function BibtexDisplay() { } // Get conjunction if set in author - conjunction = format.attr('conjunction') ? format.attr('conjunction') : ', and'; + if (searchLength==2) { + conjunction = format.attr('conjunction') ? format.attr('conjunction') : ' and'; + } + else { + conjunction = format.attr('conjunction') ? format.attr('conjunction') : ', and'; + } conjunction = "" + conjunction + ""; var newString = ""; @@ -3672,4 +3677,4 @@ var latex_to_unicode = { "{\\o}": "\u00D8", "{\AA}": "\u212B", "\\relax ": "" -}; \ No newline at end of file +};