Better BE and LaTeX workflow

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
Nhaps
Posts: 252
Joined: Mon Sep 26, 2011 10:05 pm

Better BE and LaTeX workflow

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

Re: Better BE and LaTeX workflow

Post 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
Nhaps
Posts: 252
Joined: Mon Sep 26, 2011 10:05 pm

Re: Better BE and LaTeX workflow

Post by Nhaps »

What page on the user guide, I can't find it.
Jon
Site Admin
Posts: 10292
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Better BE and LaTeX workflow

Post by Jon »

Search for "empty field".

I'd start by reading from p. 177.

Jon
Sonny Software
Nhaps
Posts: 252
Joined: Mon Sep 26, 2011 10:05 pm

Re: Better BE and LaTeX workflow

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

Re: Better BE and LaTeX workflow

Post 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
Nhaps
Posts: 252
Joined: Mon Sep 26, 2011 10:05 pm

Re: Better BE and LaTeX workflow

Post by Nhaps »

Got it. This is an example of how an empty field will not show up: {$field = {$x$},}$¬^}
Post Reply