Page 1 of 1
Scanning latex file query- \footcite
Posted: Mon Aug 07, 2017 4:06 pm
by tinekedhaeseleer
Hi all!
Hoping for an easy, positive answer on this one...
I am trying to write in LaTeX (Sublime Text 3), using biblatex-chicago (notes format) for bibliography formatting. I can scan a file through Bookends and follow all the steps on p. 426 of the Bookends User Guide PDF to get a bibtex file using the \cite{key} command. (Hooray!)
However, for my purposes I would FAR prefer to use \footcite{key} to do this, but it doesn't work (it's also not listed on p. 422 of the guide, so no surprise). I would like to know if there is a way to make the scan pick up references from \footcite{key} to create the list of hits for my bibtex file?
Re: Scanning latex file query- \footcite
Posted: Mon Aug 07, 2017 6:23 pm
by Jon
I don't think so. But maybe someone else has a solution?
Jon
Sonny Software
Re: Scanning latex file query- \footcite
Posted: Mon Aug 07, 2017 9:32 pm
by iandol
Well you could write a script that auto-creates a copy of your manuscript, replacing \footcite{} with \cite{}, and this copy gets scanned by BE to make the BIB file? You main manuscript always retains the correct citation delimiter? Sublime Text has lots of tools to run these kinds of scripts I think.
If you want to get fancy, you can build a script that uses Applescript events to parse the cite keys to uniqueIDs, auto generating a BibTeX file from the uniqueID list. There are at least two scripts that generate BIB files using Applescript, currently they work by exporting a named group:
Simple:
viewtopic.php?f=6&t=4044
Advanced:
viewtopic.php?f=6&t=4246
If BE implemented
this wishlist, then your script could create a group for your manuscript in Bookends which always had your manuscript citations, making either manual or auto export possible.
Re: Scanning latex file query- \footcite
Posted: Tue Aug 08, 2017 3:30 am
by tinekedhaeseleer
Thanks for confirming my suspicions, Jon.
Ian, I will give it a try- so far I've not ventured into applescript but if this does what I want, I'll have learned a lot of new stuff and end up with a workable solution

Thanks for the links!
Re: Scanning latex file query- \footcite
Posted: Tue Aug 08, 2017 8:13 am
by Jon
Already done.
Jon
Sonny Software
Re: Scanning latex file query- \footcite
Posted: Tue Aug 08, 2017 8:13 am
by Jon
tinekedhaeseleer wrote:Thanks for confirming my suspicions, Jon.!
I'll add it to the list of requested features.
Jon
Sonny Software
Re: Scanning latex file query- \footcite
Posted: Tue Aug 08, 2017 12:19 pm
by iandol
Wonderful Jon!!! tinekedhaeseleer, when this gets released I'll be writing a script for my needs, and can help you with yours...

Re: Scanning latex file query- \footcite
Posted: Sat Aug 12, 2017 12:15 pm
by tinekedhaeseleer
Thanks, Jon and Ian!