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
In the BibTex and BibLaTeX exporters, have the collections for an entry separated with a comma and a space (", ") and without LaTeX escape codes (e.g., no \_ for _).
Details of what I've tried
I can get the collections using "Include JabRef-specific metadata" with either JabRef 4 or JabRef 5, and the collections are in field "groups". However, when an entry is in multiple collections, the collections are separated by a comma (","), and I'd like to separate them with a comma and a space (", ").
That works, creating a "coll" (or a "collections") field. BUT I get LaTeX escape characters (in particular, I have collections named as A_B which end up as A\_B). I've tried using ".replace" (and using a regex) in several places of the above expressions but I am not JS-able, and I think I am not doing it correctly. I've also tried passing different values of "enc" (https://retorque.re/zotero-better-bibtex/exporting/scripting/index.html) but again I think I don't know what I am doing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What I'd like
In the BibTex and BibLaTeX exporters, have the collections for an entry separated with a comma and a space (", ") and without LaTeX escape codes (e.g., no
\_
for_
).Details of what I've tried
I can get the collections using "Include JabRef-specific metadata" with either JabRef 4 or JabRef 5, and the collections are in field "groups". However, when an entry is in multiple collections, the collections are separated by a comma (","), and I'd like to separate them with a comma and a space (", ").
Using this #1642 (comment)
or
#1845 (comment)
or
#2118 (comment)
as examples, I have added, to the postscript either this
or
That works, creating a "coll" (or a "collections") field. BUT I get LaTeX escape characters (in particular, I have collections named as
A_B
which end up asA\_B
). I've tried using ".replace" (and using a regex) in several places of the above expressions but I am not JS-able, and I think I am not doing it correctly. I've also tried passing different values of "enc" (https://retorque.re/zotero-better-bibtex/exporting/scripting/index.html) but again I think I don't know what I am doing.Beta Was this translation helpful? Give feedback.
All reactions