Prevent escaping of curly braces in bibtex export

edited October 20, 2021
Hi, I am using BetterBibTex to export my libraries. The problem is, the title and other fields of some articles (obtained using the browser connector), have case protection pre-installed around them (e.g., {ERIM}: Secure, Efficient In-process Isolation with Protection Keys ({MPK})).
When the library is exported, the curly braces are escaped to "\{\vphantom\}":
{\{\vphantom\}{{ERIM}}\vphantom\{\}: Secure, {{Efficient In}}-Process {{Isolation}} with {{Protection Keys}} (\{\vphantom\}{{MPK}}\vphantom\{\})},
which show up in the text :(.

Is there any way that I can prevent this behavior?
  • edited October 20, 2021
    You should just remove that case protection. Store your titles in sentence case with only proper nouns in uppercase. BetterBibTeX will generate the case protection for you. If you store non-case protected words in uppercase, those will be case protected on export.

    ERIM: secure, efficient in-process isolation with protection keys (MPK)
  • I am having the same issue but for an institution name that has an "and" in it.
    For example:
    @techreport{eccc_scientific_2024,
    address = {Ottawa},
    title = {Scientific assessment of federal and provincial frameworks for the conservation of boreal caribou in {Ontario}},
    url = {https://www.canada.ca/en/environment-climate-change/services/species-risk-public-registry/related-information/boreal-caribou-scientific-assessment-federal-and-provincial-frameworks-for-conservation-ontario.html},
    language = {eng},
    urldate = {2024-05-22},
    institution = {Environment and Climate Change Canada},
    author = {{ECCC}},
    year = {2024},
    note = {Last Modified: 2024-05-16},
    }

    This produces a reference with "Environment; Climate Change Canada"

    I know that if I change the .bib file to include additional braces around the institution it will work as desired.

    {{Environment and Climate Change Canada}}

    But if I include braces in the name in Zotero they are escaped.

    {\{Environment and Climate Change Canada\}}

    I don't want to need to remember to add these braces every time I update the .bib file from Zotero. Is there a way to tell Zotero to either not escape the braces or a different way for Zotero to tell BibTex not to change the and to a semicolon?
  • I am also dealing with the same issue, the answer given above doesn't solve it.

    My concrete example would be - "Galois theory of {p}-extensions", here I need to case protect the p so that it doesn't become capitalized later on.
  • You could use rich text formatting I guess : Galois theory of <span class="nocase">p</span>-extensions
  • Not sure if it helps, but I've found using rich text formatting together with tex.title in the Extra field to be the most flexible. The rich text formatting makes the title look nice in zotero, while tex.title allows me to specify what the title should look like in latex. It was too difficult getting one value to work for both cases.

    For example:

    https://s3.amazonaws.com/zotero.org/images/forums/u7554954/yn4p9bqrc5qrgmgwmund.png

    https://s3.amazonaws.com/zotero.org/images/forums/u7554954/otxx4ov0vsi0br1ox8qv.png

  • text. title is functionality of the Better BibTeX plugin. I think that plugin also has an option not to escape curly brackets in titles, but I'd advise against that approach -- it really locks you into LaTeX whereas the beauty of Zotero is that it can export into all sorts of formats (like CSL JSON, e.g. for use with RStudio etc.)
  • Thank you everyone, interesting approaches. @warwickmm's solution is the most practical in my case, together with a slight change in the csl file.
Sign In or Register to comment.