Page 3 of 3
Re: Case protection in BibTeX export format
Posted: Fri Feb 17, 2023 8:43 am
by Euler1
I'm sorry, I didn't know it was already implemented! Thanks a lot for that. Sounds very good. Of course I will be happy to use it.
Re: Case protection in BibTeX export format
Posted: Fri Feb 17, 2023 8:52 am
by Jon
No way you could know, it's not released yet.
Jon
Sonny Software
Re: Case protection in BibTeX export format
Posted: Fri Jul 26, 2024 2:06 pm
by DrJJWMac
I apologize to bump this topic. My question follows on the thread.
I have a title that includes the chemical ions K+ and Cl-. I want all title cases to export in sentence case. I want ion names to be capitalized. I am using BibTeX.fmt with this ...
title = {$t}, $
The title in the library is given as "... {(K+, Cl-)} ...". The BibTeX.fmt export gives "... {(k+, cl-)} ...".
Absent that I manually add these (and all other) chemical elements to the protection list, how do I go about protecting single capitalized letters such as element names from being converted to sentence case?
ps ... The same title contains the name Lorentz, and that name is retained in title case. The magic would be nice with element names too.
Re: Case protection in BibTeX export format
Posted: Fri Jul 26, 2024 3:46 pm
by Jon
I' see that Cl can be protected if it's in the list, but K isn't. I'll have to see why that is.
Jon
Sonny Software
Re: Case protection in BibTeX export format
Posted: Fri Jul 26, 2024 4:55 pm
by DrJJWMac
Just to be clear ... I do not have K and Cl on the protection list. I just bracketed their expression {(K+, Cl-)} in the title in hopes that this would protect their case. I also tested manually putting (K+, {Cl}-) in the title to no avail ... it still gives (k+, cl-). I've ended up putting K and Cl in the protection list for the time being. This keeps their case.
Re: Case protection in BibTeX export format
Posted: Fri Jul 26, 2024 5:22 pm
by Jon
K works for a standalone letter in the title, but not for K+. But adding K+ to the list works when K+ is in the title.
Brackets protect case when the text is processed by BibTeX or a similar app. Bookends emits the text, it doesn't know that to BibTeX curly brackets mean don't change case. Bookends has an exception list, and that's working.
Jon
Sonny Software
Re: Case protection in BibTeX export format
Posted: Sun Jul 28, 2024 9:19 pm
by DrJJWMac
I'll continue with the protection list approach while holding out hope that someday I might also have the option to put {Brackets} manually around a term or phrase in a title when I want to protect the case of that term or phrase.