Scanning latex file query- \footcite

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
tinekedhaeseleer
Posts: 6
Joined: Fri Jan 13, 2017 8:58 am

Scanning latex file query- \footcite

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

Re: Scanning latex file query- \footcite

Post by Jon »

I don't think so. But maybe someone else has a solution?

Jon
Sonny Software
iandol
Posts: 481
Joined: Fri Jan 25, 2008 2:31 pm

Re: Scanning latex file query- \footcite

Post 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.
tinekedhaeseleer
Posts: 6
Joined: Fri Jan 13, 2017 8:58 am

Re: Scanning latex file query- \footcite

Post 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 :mrgreen: Thanks for the links!
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Scanning latex file query- \footcite

Post by Jon »

iandol wrote:If BE implemented this wishlist,
Already done.

Jon
Sonny Software
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Scanning latex file query- \footcite

Post by Jon »

tinekedhaeseleer wrote:Thanks for confirming my suspicions, Jon.!
I'll add it to the list of requested features.

Jon
Sonny Software
iandol
Posts: 481
Joined: Fri Jan 25, 2008 2:31 pm

Re: Scanning latex file query- \footcite

Post by iandol »

Jon wrote:
iandol wrote:If BE implemented this wishlist,
Already done.
Wonderful Jon!!! tinekedhaeseleer, when this gets released I'll be writing a script for my needs, and can help you with yours... 8)
tinekedhaeseleer
Posts: 6
Joined: Fri Jan 13, 2017 8:58 am

Re: Scanning latex file query- \footcite

Post by tinekedhaeseleer »

Thanks, Jon and Ian!
Post Reply