Page 1 of 1

Better BE and LaTeX workflow

Posted: Sat Sep 13, 2014 3:42 pm
by Nhaps
Reference management between BE and LaTeX is not much practiced but it's a winner for me. What I like is the ease with which one can customize BE fields for LaTeX. But I want to enhance the workflow so here are the questions:

1. How can I better generate references from BE to Sublime Text 3 (ST), my frontend LaTeX editor? I set ST as my word processor under Preferences, Word Processor but:

a. Command-K does not copy automatically my reference to ST cursor, just to the clipboard, which requires the additional Control-V command.
b. Same goes for Command-Y, it does not call ST to paste my reference key automatically, so it requires a Control-V.

2. How can I keep empty fields from showing in the preview? Or better yet, how can I see the empty fields in the preview but exclude them from getting into the Command-K? Every time I have to erase imported empty fields within ST, which is not good.

Suggestions are welcome.

Re: Better BE and LaTeX workflow

Posted: Sat Sep 13, 2014 4:39 pm
by Jon
The fact that the text isn't automatically pasted into ST means that it doesn't understand the AppleEvent that Bookends sends it. It may not even be scriptable (I don't know).

Because of how Bookends deals with empty fields, it was safer to have Bookends output the tags even when they are empty. If you really want to exclude listing those you'll have to tinker with the BibTeX format (I'd make a new one based on BibTeX and tinker with that). The rules for how Bookends deals with empty fields when formatting are given in the user guide (Help menu).

Jon
Sonny Software

Re: Better BE and LaTeX workflow

Posted: Sat Sep 13, 2014 5:18 pm
by Nhaps
What page on the user guide, I can't find it.

Re: Better BE and LaTeX workflow

Posted: Sat Sep 13, 2014 5:21 pm
by Jon
Search for "empty field".

I'd start by reading from p. 177.

Jon
Sonny Software

Re: Better BE and LaTeX workflow

Posted: Sat Sep 13, 2014 6:24 pm
by Nhaps
I read a few pages, but still cannot figure things out because of the nature of BibTex in vertical direction. When the User Guide says that BE looks for a space/field before the empty field which one is it? In the example below I want BE to erase "editor = {}" when it is empty. What change should be made on the following format: "editor = $`{`e`}`, $"

@Book{Rendtorff1986,
author = {Rendtorff, Rolf},
title = {The Old Testament: An Introduction},
shorttitle = {The Old Testament},
editor = {},
publisher = {Fortress},
translator = {Bowden, John},
location = {Philadelphia, Pa.},
year = {1986},}

Re: Better BE and LaTeX workflow

Posted: Sat Sep 13, 2014 6:43 pm
by Jon
It will take some trial and error. I couldn't do it when I created the format (a long time ago, admittedly) without losing returns. You can start by taking out the force quotes (`) and using spaces. Sorry, I don' have the time to spend on this now, please experiment.

Jon
Sonny Software

Re: Better BE and LaTeX workflow

Posted: Sun Sep 14, 2014 9:45 am
by Nhaps
Got it. This is an example of how an empty field will not show up: {$field = {$x$},}$¬^}