Page 1 of 1

Conditional statements in BibTeX format?!

Posted: Wed Jul 21, 2021 9:10 pm
by kourosh
Hi,

I was wondering if there is any functionality in Bookends to have conditional statements in BibTeX format. Below is my use case,
For my CV, resume, etc. when listing my publications, I want to highlight my name. I can do this by adding

Code: Select all

author+an = {1=highlight}(number 1 here is the order of my name in the list of authors)
in the BibTeX of that particular reference. I was wondering if somehow I can automate this in Bookends. So whenever there is my name in the list of authors it add that field in the generated BibTeX file.

Re: Conditional statements in BibTeX format?!

Posted: Thu Jul 22, 2021 7:31 am
by Jon
No. Bookends conditional formatting can change the output depending upon whether a field has content or not (is empty), but it can't do that based upon the nature of the content. That's the kind of complicated logic that you could conceivably perform on the bibliography, once it's generated, using a programming or scripting language.

Jon
Sonny Software

Re: Conditional statements in BibTeX format?!

Posted: Thu Jul 22, 2021 1:48 pm
by kourosh
Got you, thanks Jon.

Kourosh

Re: Conditional statements in BibTeX format?!

Posted: Tue Jan 11, 2022 1:10 pm
by mk7
Bookends conditional formatting can change the output depending upon whether a field has content or not (is empty
Hi Jon, jumping in here to ask how do I do this? i.e. I want to export a bibliography file using the bibtex format but only export fields which have content, not every field that's listed?

Thanks!

Re: Conditional statements in BibTeX format?!

Posted: Tue Jan 11, 2022 1:23 pm
by Jon
The currently shipping BibTeX format does this already. If you're using a modified version you might want to move it out of the Custom Formats folder and use the default one we ship.
Jon
Sonny Software