rightarrow in bibtex export
Currently zotero exports rightarrow used in bibtex reference(https://inspirehep.net/record/1706113?ln=en) as "{\rightarrow}" with all types of encoding available especially western encoding, which gives error in latex compilation. The correct format is $\rightarrow$.
Kindly take this style into consideration for latex compilers.
Kindly take this style into consideration for latex compilers.
Someone more familiar with BibTeX would need to weigh in, but we use similar mappings for various characters, and they've been in place for many years, so this might be an issue with the particular BibTeX workflow that @pasmon79 is using.
{\rightarrow}
. It uses{\\textrightarrow}
.That is provided by calling
\usepackage{textcomp}
in your document. I wonder if that's the issue here?$\rightarrow$
In my opinion, no. A math-mode arrow and a text-mode arrow will be typeset slightly differently & it seems slighlty more likely that a text-mode arrow will be preferred in a bibliography (but who knows).
Changing this one character wouldn't remove the need for textcomp.
But textcomp is also a very common package, so the fact that Zotero's BibTeX.js translator relies on it for many mappings isn't worrisome. BetterBibTeX still seems to depend on it for some characters as well...
Indeed text characters do render differently than their text equivalents, although I couldn't say which of the two is more desirable -- this could well be domain dependent, and since Zotero doesn't "do" math, it's not currently possible to reliably infer the intent. In BBT you can set which mapping you prefer, but it's not fine-grained.
I'll probably add textrightarrow to the BBT mapping and add a note to the QR that it requires textcomp.
\textrightarrow
by default, but you can switch it to prefer math mode if needed. Enabling the QR will show whentextcomp
is needed, but it's currently the only package detected that way, I'll add other package dependencies to the QR as I come across them.