Page 1 of 1

Escaping characters such as { and } when scanning/generating references

Posted: Tue Apr 08, 2025 2:19 pm
by hsl
Is there a way to escape specific characters when scanning or generating references? For example, I have text that looks like the one below, and I want to escape the {} in {0.1, 0.2, 0.3, 0.4, 0.5}.

"We varied α ∈ {0.1, 0.2, 0.3, 0.4, 0.5} which denotes the effect size {Armona et al., 2024 #246754}."

Re: Escaping characters such as { and } when scanning/generating references

Posted: Tue Apr 08, 2025 2:55 pm
by Jon
Escape in what way? What markup language are you using? If it's one we support natively, choose it in Biblio -> Default Format & Output Style (e.g. HTML, BibTeX, Markdown).

Jon
Sonny Software

Re: Escaping characters such as { and } when scanning/generating references

Posted: Wed Apr 16, 2025 11:21 am
by hsl
I'm using both styled text and markdown. I have set notation such as this in my text:
"We varied α ∈ {0.1, 0.2, 0.3, 0.4, 0.5} which denotes the effect size {Armona et al., 2024 #246754}."

It seems like no matter the style I choose (styled text, plain text, markdown), it doesn't handle/escape the braces.

The formatted output/text is this and it says "Unmatched citations: 1":
"We varied α ∈ (0.1, 0.2, 0.3, 0.4, 0.5) which denotes the effect size (Armona et al., 2024)."

The expected output should be this, in that it shouldn't treat the set notation as a citation:
"We varied α ∈ {0.1, 0.2, 0.3, 0.4, 0.5} which denotes the effect size (Armona et al., 2024)."

Re: Escaping characters such as { and } when scanning/generating references

Posted: Wed Apr 16, 2025 12:13 pm
by Jon
Bookends will escape the braces if you enable BibTeX, select BibTeX style, and output with a format with the letters "bibtex" in the name. BUT, that won't help you when scanning -- Bookends itself doesn't deal with escaped characters. You can change the citation delimiters to something else in Settings, Scan & Bib tab -- there are a variety to choose from.

Jon
Sonny Software

Re: Escaping characters such as { and } when scanning/generating references

Posted: Fri Apr 18, 2025 1:33 pm
by hsl
Thanks for clarifying, Jon!