zotero-better-bibtex: Cleared (undefined) `rawLaTag` disables raw #LaTeX processing
Description of the problem
Despite a #LaTeX tag, some fields are not exported as if they’re wrapped in <script>...</script>. For instance, for an entry with such a #LaTeX tag with the following characteristics:
- Item Type: Journal Article
- Title: Completeness of $\mathbb{R}$
- Author: Bar, Foo
- Short Title: $\mathbb{R}$: complete!
- Extra: <script>$\mathbb{R}$ !</script>
- Tag: #LaTeX
I get the following actual behavior where:
- the title is OK thanks to https://retorque.re/zotero-better-bibtex/exporting/scripting/#detect-and-protect-latex-math-formulas
- the annotation is OK thanks to
<script>...</script> - the short title is not OK since:
- the entry its belongs to, having the
#LaTeXtag, should then have all fields exported as if they’re wrapped in<script>...</script>(literal LaTeX), - its content should hence be similar to the one of the annotation (see expected behavior).
- the entry its belongs to, having the
Required informations
Report ID: U2Z8CJBC-euc Exporter used: Better BibLaTeX Expected behavior:
@article{BarCompletenessmathbbR,
shorttitle = {$\mathbb{R}$: Complete!},
author = {Bar, Foo},
annotation = {$\mathbb{R}$ !},
keywords = {\#LaTeX},
title = {Completeness of {$\mathbb{R}$}}
}
% == BibLateX quality report for BarCompletenessmathbbR:
% Exactly one of 'date' / 'year' must be present
% Missing required field 'journaltitle'
Actual behavior:
@article{BarCompletenessmathbbR,
shorttitle = {\$\textbackslash mathbb\{\vphantom\}{{R}}\vphantom\{\}\$: Complete!},
author = {Bar, Foo},
annotation = {$\mathbb{R}$ !},
keywords = {\#LaTeX},
title = {Completeness of {$\mathbb{R}$}}
}
% == BibLateX quality report for BarCompletenessmathbbR:
% Exactly one of 'date' / 'year' must be present
% Missing required field 'journaltitle'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (12 by maintainers)
Commits related to this issue
- debug logging for #1674 — committed to retorquere/zotero-better-bibtex by retorquere 4 years ago
https://retorque.re/zotero-better-bibtex/exporting/#add-your-own-biblatex-fields
It’s added in the
extrafield. What I showed would be the actual content - when using=instead of:, that line is treated as raw LaTeX. This would override the zotero title for BBT exports, so this would even allow use in both word and latex.