[Bibdesk-users] Export Template: Multiple Author Names

2010-04-03 Thread Stefan Groth
Hello,
I am currently working on an export template for BibDesk for the AAA style 
(http://www.aaanet.org/publications/style_guide.pdf) and having troubles with 
the author-output for coauthored books. The AAA style suggests the format 

Lee, Namhee, Lisa Mikesell, and Anna Dina L. Joaquin

The string I am using is

<$pubauthors.normalizedname.stringbyremovingt...@componentsjoinedbycommaandandwithetalafterthree/>

which outputs

Lee, Namhee, Mikesell, Lisa, and Joaquin, Anna Dina L.

whereas I need

Lee, Namhee, Lisa Mikesell, and Anna Dina L. Joaquin

How is it possible to achieve a different format for the second author name? 

Cheers,
Stefan
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Script hook to protect Address field

2010-04-03 Thread Peter Cowan
On Sat, Apr 3, 2010 at 10:29 AM, Christiaan Hofman  wrote:
>
> On Apr 3, 2010, at 18:01, Adam R. Maxwell wrote:
>
>>
>> On Apr 3, 2010, at 3:26 AM, Fischlin Andreas wrote:
>>
>>> You write: "However, this citation causes an error using my tex preview 
>>> template (below, require biblatex). The relevant part of the log is:
>>>
>>> Too many commas in name 1 of "PORTERS SOUTH, 4 CRINAN ST, LONDON N1 9XW, 
>>> ENGLAND" for entry cite-key"
>>>
>>> This indicates that there is an error in your tex preview template.
>>
>> You apparently missed the part where he said he's using biblatex.  Standard 
>> BibTeX has no problems with this, as you say.  A quick read of the biblatex 
>> manual [1] indicates that it expects "address" to be a list separated by 
>> "and."  It almost sounds like biblatex is using BibTeX name parsing rules to 
>> split a list of addresses, which seems…odd.
>>
>> [1] 
>> http://www.ctan.org/tex-archive/macros/latex/exptl/biblatex/doc/biblatex.pdf
>>

Christian,

I also read that in the biblatex manual.  It appears there are two
types of lists, one specifically for names and the other a general
list type.  Perhaps the wrong type of list is used for address.  In
any case, I need to take this up with the biblatex folks.   Oddly
enough it does work in a .tex file if it's complied using latexmk.pl.

> That's what I called a bug in biblatex earlier. IMHO.

Agreed, as soon as I can confirm that no one else has filed the issue, I will.

Thanks

Peter

> Christiaan
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Script hook to protect Address field

2010-04-03 Thread Peter Cowan
On Sat, Apr 3, 2010 at 3:26 AM, Fischlin  Andreas
 wrote:
> Dear Peter,
>
> Sorry, it is very difficult to understand what your actual problem is. First 
> I see no problem whatsoever in BD, nor in the bib file generated, nor in the 
> preview and most of all I do not understand why you try to do something with 
> AppleScripts. I base this conclusion on trying to repeat your problem using 
> your example. I can't.

I didn't mean to suggest that there was a problem with BD, more it was
a question about how I could further harness it's power to work around
another issue I was having.

> 2) I clicked on BD's Import button and the record was correctly imported into 
> BD, no errors encountered, and all is as it should.  I see no problem there.
>
> 3) The Address field contains the string "PORTERS SOUTH, 4 CRINAN ST, LONDON 
> N1 9XW, ENGLAND" correctly as it should be, though I don't like the 
> capitalization and you could edit that. But I guess that is beside the point.
>
> 4) If I do (still in BD) menu command "Window -> TeX Preview" I encounter no 
> errors and the opened preview window shows the record fine. Even the 
> capitalization problem is gone.

Did you try with the TeX preview Template I included in my previous email?

> So where is a problem?
>
> a) Do you want an AppleScript to edit any of the fields in that record? If 
> yes, why? What should be the purpose?
>
> b) Curly braces do not protect anything. We are not talking about shell 
> scripts, we have BibTeX encoded data stored on bib-files that are managed by 
> BD. Curly braces merely delimit the begin and end of fields in the records 
> and enclose the entire record. They serve any scanner to delimit information 
> and correctly interpret begin and end of records and fields. Moreover curly 
> braces may be used within fields to encode special characters, abbreviations, 
> macros etc. Ex.: Author = {Kurt G{\"o}del}, Title = {The \TeX{}book}, . The 
> field author is very special, since it is treated into several subfields 
> automatically and uses for convenience reasons commas and optionally curly 
> braces to delimit its subfields. That may be the source for your 
> misinterpretation that you protect something with curly braces. See e.g. 
> Kopka & Daly, 2004, p. 235 for more on this.
>
> You write: "However, this citation causes an error using my tex preview 
> template (below, require biblatex). The relevant part of the log is:
>
> Too many commas in name 1 of "PORTERS SOUTH, 4 CRINAN ST, LONDON N1 9XW, 
> ENGLAND" for entry cite-key"
>
> This indicates that there is an error in your tex preview template. It seems 
> you entered the content of the address field into the author field or made 
> some other error causing such an interpretation by the BibTeX interpretation. 
>  This has all absolutely nothing to do with curly braces nor AppleScripts 
> AFAIK. If my interpretation is correct, fix first your preview template so 
> that no longer any address information is interpreted as an author field.
>
> c) Have you indeed changed any templates? If yes, reverse that and your 
> problems might be gone. Writing a TeX paper using BibTeX will only need the 
> correctly stored bib file and should be independent from any preview 
> template. There seems to be nothing wrong in your case with all the software 
> components involved there, except for those you may have tampered with. You 
> may have altered preview templates or otherwise deviated from a default BD 
> installation or you have wrongly changed BibTeX styles you use in your TeX 
> setup.

Yes, as attached above, I did modify my TeX template, but I would
prefer to stick with the templates provided by biblatex which more
closely resemble the ones I use on a daily basis.

> d) Why writing a bug report? AFAI can see there is no bug anywhere in BD nor 
> its default templates as used by Preview, nor is there any real biblatex 
> problem involved. It seems you would have to write the bug report to 
> yourself. ;-)

I apologize that I wasn't clear, I'm not suggesting a bug in BD, but
there may be one in biblatex (which I use in my own TeX preview
template).

Thanks

Peter

> Hope this clarifies some of the issues.
>
> Regards,
> Andreas
>
> Cited References:
> 
> Kopka, H. & Daly, P. W., 2004 (ed. 4). Guide to LaTeX. Addison-Wesley: 
> Boston, US. 597pp.     Ko089
>
>
>
> ETH Zurich
> Prof. Dr. Andreas Fischlin
> Systems Ecology - Institute of Integrative Biology
> CHN E 21.1
> Universitaetstrasse 16
> 8092 Zurich
> SWITZERLAND
>
> andreas.fisch...@env.ethz.ch
> www.sysecol.ethz.ch
>
> +41 44 633-6090 phone
> +41 44 633-1136 fax
> +41 79 221-4657 mobile
>
>             Make it as simple as possible, but distrust it!
> 
>
>
>
> On 03/Apr/2010, at 00:34 , Peter Cowan wrote:
>
>> On Fri, Apr 2, 2010 at 2:13 PM, Christiaan Hofman  wrote:
>>>
>>> On Apr 2, 2010, at 21:54, Peter Cowan wrote:
>>>
 On F

Re: [Bibdesk-users] Script hook to protect Address field

2010-04-03 Thread Christiaan Hofman

On Apr 3, 2010, at 18:01, Adam R. Maxwell wrote:

> 
> On Apr 3, 2010, at 3:26 AM, Fischlin Andreas wrote:
> 
>> You write: "However, this citation causes an error using my tex preview 
>> template (below, require biblatex). The relevant part of the log is:
>> 
>> Too many commas in name 1 of "PORTERS SOUTH, 4 CRINAN ST, LONDON N1 9XW, 
>> ENGLAND" for entry cite-key"
>> 
>> This indicates that there is an error in your tex preview template.
> 
> You apparently missed the part where he said he's using biblatex.  Standard 
> BibTeX has no problems with this, as you say.  A quick read of the biblatex 
> manual [1] indicates that it expects "address" to be a list separated by 
> "and."  It almost sounds like biblatex is using BibTeX name parsing rules to 
> split a list of addresses, which seems…odd.
> 
> [1] 
> http://www.ctan.org/tex-archive/macros/latex/exptl/biblatex/doc/biblatex.pdf
> 

That's what I called a bug in biblatex earlier. IMHO.

Christiaan


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Script hook to protect Address field

2010-04-03 Thread Fischlin Andreas
Indeed, I missed that one. Sorry and thanks Adam.

Happy Easter to all.

Regards,
Andreas
 

ETH Zurich
Prof. Dr. Andreas Fischlin
Systems Ecology - Institute of Integrative Biology
CHN E 21.1
Universitaetstrasse 16
8092 Zurich
SWITZERLAND

andreas.fisch...@env.ethz.ch
www.sysecol.ethz.ch

+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 221-4657 mobile

 Make it as simple as possible, but distrust it!




On 03/Apr/2010, at 18:01 , Adam R. Maxwell wrote:

> 
> On Apr 3, 2010, at 3:26 AM, Fischlin Andreas wrote:
> 
>> You write: "However, this citation causes an error using my tex preview 
>> template (below, require biblatex). The relevant part of the log is:
>> 
>> Too many commas in name 1 of "PORTERS SOUTH, 4 CRINAN ST, LONDON N1 9XW, 
>> ENGLAND" for entry cite-key"
>> 
>> This indicates that there is an error in your tex preview template.
> 
> You apparently missed the part where he said he's using biblatex.  Standard 
> BibTeX has no problems with this, as you say.  A quick read of the biblatex 
> manual [1] indicates that it expects "address" to be a list separated by 
> "and."  It almost sounds like biblatex is using BibTeX name parsing rules to 
> split a list of addresses, which seems…odd.
> 
> [1] 
> http://www.ctan.org/tex-archive/macros/latex/exptl/biblatex/doc/biblatex.pdf
> 
> 
> 
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Script hook to protect Address field

2010-04-03 Thread Adam R. Maxwell

On Apr 3, 2010, at 3:26 AM, Fischlin Andreas wrote:

> You write: "However, this citation causes an error using my tex preview 
> template (below, require biblatex). The relevant part of the log is:
> 
> Too many commas in name 1 of "PORTERS SOUTH, 4 CRINAN ST, LONDON N1 9XW, 
> ENGLAND" for entry cite-key"
> 
> This indicates that there is an error in your tex preview template.

You apparently missed the part where he said he's using biblatex.  Standard 
BibTeX has no problems with this, as you say.  A quick read of the biblatex 
manual [1] indicates that it expects "address" to be a list separated by "and." 
 It almost sounds like biblatex is using BibTeX name parsing rules to split a 
list of addresses, which seems…odd.

[1] http://www.ctan.org/tex-archive/macros/latex/exptl/biblatex/doc/biblatex.pdf



--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Script hook to protect Address field

2010-04-03 Thread Fischlin Andreas
Sorry, my previous E-mail had lost step 1. Here it is:

1) Using BD's menu command "Searches -> Web of Science SCI" I entered as search 
criteria

ti="Structure of small viruses"

and got exactly the record you mentioned to cause problems.

Regards,
Andreas




ETH Zurich
Prof. Dr. Andreas Fischlin
Systems Ecology - Institute of Integrative Biology
CHN E 21.1
Universitaetstrasse 16
8092 Zurich
SWITZERLAND

andreas.fisch...@env.ethz.ch
www.sysecol.ethz.ch

+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 221-4657 mobile

 Make it as simple as possible, but distrust it!





--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Script hook to protect Address field

2010-04-03 Thread Fischlin Andreas
Dear Peter,

Sorry, it is very difficult to understand what your actual problem is. First I 
see no problem whatsoever in BD, nor in the bib file generated, nor in the 
preview and most of all I do not understand why you try to do something with 
AppleScripts. I base this conclusion on trying to repeat your problem using 
your example. I can't.

2) I clicked on BD's Import button and the record was correctly imported into 
BD, no errors encountered, and all is as it should.  I see no problem there.

3) The Address field contains the string "PORTERS SOUTH, 4 CRINAN ST, LONDON N1 
9XW, ENGLAND" correctly as it should be, though I don't like the capitalization 
and you could edit that. But I guess that is beside the point.

4) If I do (still in BD) menu command "Window -> TeX Preview" I encounter no 
errors and the opened preview window shows the record fine. Even the 
capitalization problem is gone.

So where is a problem?

a) Do you want an AppleScript to edit any of the fields in that record? If yes, 
why? What should be the purpose?

b) Curly braces do not protect anything. We are not talking about shell 
scripts, we have BibTeX encoded data stored on bib-files that are managed by 
BD. Curly braces merely delimit the begin and end of fields in the records and 
enclose the entire record. They serve any scanner to delimit information and 
correctly interpret begin and end of records and fields. Moreover curly braces 
may be used within fields to encode special characters, abbreviations, macros 
etc. Ex.: Author = {Kurt G{\"o}del}, Title = {The \TeX{}book}, . The field 
author is very special, since it is treated into several subfields 
automatically and uses for convenience reasons commas and optionally curly 
braces to delimit its subfields. That may be the source for your 
misinterpretation that you protect something with curly braces. See e.g. Kopka 
& Daly, 2004, p. 235 for more on this.

You write: "However, this citation causes an error using my tex preview 
template (below, require biblatex). The relevant part of the log is:

Too many commas in name 1 of "PORTERS SOUTH, 4 CRINAN ST, LONDON N1 9XW, 
ENGLAND" for entry cite-key"

This indicates that there is an error in your tex preview template. It seems 
you entered the content of the address field into the author field or made some 
other error causing such an interpretation by the BibTeX interpretation.  This 
has all absolutely nothing to do with curly braces nor AppleScripts AFAIK. If 
my interpretation is correct, fix first your preview template so that no longer 
any address information is interpreted as an author field. 

c) Have you indeed changed any templates? If yes, reverse that and your 
problems might be gone. Writing a TeX paper using BibTeX will only need the 
correctly stored bib file and should be independent from any preview template. 
There seems to be nothing wrong in your case with all the software components 
involved there, except for those you may have tampered with. You may have 
altered preview templates or otherwise deviated from a default BD installation 
or you have wrongly changed BibTeX styles you use in your TeX setup.

d) Why writing a bug report? AFAI can see there is no bug anywhere in BD nor 
its default templates as used by Preview, nor is there any real biblatex 
problem involved. It seems you would have to write the bug report to yourself. 
;-) 

Hope this clarifies some of the issues.

Regards,
Andreas
 
Cited References:

Kopka, H. & Daly, P. W., 2004 (ed. 4). Guide to LaTeX. Addison-Wesley: Boston, 
US. 597pp. Ko089



ETH Zurich
Prof. Dr. Andreas Fischlin
Systems Ecology - Institute of Integrative Biology
CHN E 21.1
Universitaetstrasse 16
8092 Zurich
SWITZERLAND

andreas.fisch...@env.ethz.ch
www.sysecol.ethz.ch

+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 221-4657 mobile

 Make it as simple as possible, but distrust it!




On 03/Apr/2010, at 00:34 , Peter Cowan wrote:

> On Fri, Apr 2, 2010 at 2:13 PM, Christiaan Hofman  wrote:
>> 
>> On Apr 2, 2010, at 21:54, Peter Cowan wrote:
>> 
>>> On Fri, Apr 2, 2010 at 9:53 AM, Christiaan Hofman  
>>> wrote:
 
 On Apr 1, 2010, at 23:29, Peter Cowan wrote:
 
> On Thu, Apr 1, 2010 at 2:03 PM, Christiaan Hofman  
> wrote:
>> 
>> On Apr 1, 2010, at 22:15, Peter Cowan wrote:
>> 
>>> I'm using biblatex in the TeX preview window.  And, since I often
>>> import directly from ISI using the Web of Science Search function, I
>>> get regular errors related to commas in the address or institution
>>> field.  Perhaps there is a solution through biblatex to this problem,
>>> but I'm fine with either protecting or deleting the
>>> Address/Institution field on import.
>>> 
>>> Script hooks seem like the perfect solution to this problem, but I am
>>> not an applescript users.  I've tried to cobble some