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

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
hsl
Posts: 3
Joined: Sat Jun 20, 2015 3:13 pm

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

Post 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}."
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

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

Post 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
hsl
Posts: 3
Joined: Sat Jun 20, 2015 3:13 pm

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

Post 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)."
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

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

Post 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
hsl
Posts: 3
Joined: Sat Jun 20, 2015 3:13 pm

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

Post by hsl »

Thanks for clarifying, Jon!
Post Reply