> On 14 Mar 2022, at 12:48, Natalia Vale Asari <[email protected]> wrote:
> 
> Hi,
> 
> I have been trying to use biblatex/biber to highlight author names in some 
> publications (following this example: 
> http://www.hansenlab.org/cv_bibliography_tex). This requires me to add a 
> field called "author+an" to a few publications.
> 
> I have successfully added this field to Bibdesk. I am however unable to 
> export it using a custom template. For instance, this:
> 
> --
> <$publications>
> @<$pubType/>{<$citeKey/>,
> <$requiredFields>
>    <$name/> = <$bibTeXString/>,
> </$requiredFields>
> <$optionalFields.@nonEmpty>
>    <$name/> = <$bibTeXString/>,
> </$optionalFields.@nonEmpty>
>    author+an = {<$fields.author+an/>},
> <$fields.url?>
>    URL = {<$fields.url/>},
> </$fields.url?>
> <$fields.doi?>
>    DOI = {<$fields.doi/>}
> </$fields.doi?>
> }
> </$publications>
> --
> 
> exports
> 
> --
> @article{Steiner.etal.2022a,
>    Author = {{Steiner}, J.~E. and {Menezes}, R.~B. and {Ricci}, T.~V. and {da 
> Silva}, Patrícia and {Cid Fernandes}, R. and {Vale Asari}, N. and {Carvalho}, 
> M.~S. and {May}, D. and {Coelho}, Paula R.~T. and {de Amorim}, A.~L.},
>    Title = {{The DIVING$^{3D}$ survey - Deep Integral Field Spectrograph View 
> of Nuclei of Galaxies - I. Definition and sample presentation}},
>    Journal = {\mnras},
>    Year = 2022,
>    Volume = {510},
>    Number = {4},
>    Pages = {5780-5795},
>    Month = mar,
>    author+an = {
> —
> (i.e. it stops as soon as it reaches the <$fields.author+an/> command.) 
> 
> I suppose I need to escape the + character, but I am unsure how. I have tried 
> <$fields.author\+an/>, <$fields."author+an"/>, and <$fields.'author+an'/>, to 
> no avail. 
> 
> TL;DR: How can I export the author+an field using a custom template?
> 
> Thank you!
> 
> Cheers,
> Natalia


I am afraid this is not possible. This kind of field names are not compatible 
with key value coding, which is used implicitly in the templates.. Are you sure 
you want to name it author+an? And why can’t you just use the bibtex entries 
generated by BibDesk?

Christiaan

_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to