Thanks for all your feedback.

@Nathan, yes, I’m in fact using pandoc extensively – for all those journals 
that don’t accept LaTeX I have a workflow that uses pandoc to create the 
references in a word document. My use case is for scenarios, like, if you want 
to quickly send a list of references to a colleague in an email, or you 
collaborate on a paper with someone who doesn’t use any tool to create 
bibliography (how dare they!) and things like that, where you need to copy 
paste formatted bib entries into some other program.

@Christiaan, would you mind expanding on what you mean by adding "a component 
to the key path (like ’.string’) to get plain text”?
Let’s take the APA template as example

<$publications>
<$authors.abbreviatedNormalizedName.@componentsJoinedByCommaAndAmpersand/> 
<$fields.Year.parenthesizedStringIfNotEmpty/>. 
<$fields.Title.uppercaseFirst.stringByAppendingFullStopAndSpaceIfNotEmpty/><$fields.Journal.stringByAppendingCommaAndSpaceIfNotEmpty/><$fields.Volume/>
 <$fields.Number.parenthesizedStringIfNotEmpty/>, 
<$fields.Pages.stringByAppendingFullStopIfNotEmpty/></$publications>

How would I need to modify this to get the desired result?

> On Sep 14, 2024, at 6:23 AM, Nathan <nathan.artist....@gmail.com> wrote:
>
>> On Sep 14, 2024, at 9:10 AM, Nathan <nathan.artist....@gmail.com> wrote:
>>
>>> On Sep 14, 2024, at 4:50 AM, Christiaan Hofman <cmhof...@gmail.com> wrote:
>>>
>>>> On 14 Sep 2024, at 07:39, Jan David Hauck via Bibdesk-users 
>>>> <bibdesk-users@lists.sourceforge.net> wrote:
>>>>
>>>> Does anyone know if there’s a way to create a template that preserves 
>>>> italics formatting, but none of the other rich text attributes?
>>>> Not directly related to BibDesk functionalities, but it feels like this is 
>>>> a use case that a lot of BibDesk users might have encountered:
>>>> When using formatted templates (for copy paste or drag and drop) I 
>>>> frequently wish there was an intermediate format between rtf and txt that 
>>>> keeps italics but nothing else. Because for bibliographic entries, in most 
>>>> styles italics are important for Journal names or Book titles.
>>>> Rtf templates preserve italics but also all the other stuff like font, 
>>>> font size, etc. – and depending on where you paste them (like an email or 
>>>> a document that has a different font than your template) you have to come 
>>>> up with workarounds like “match destination formatting” or pasting as 
>>>> plain text and manually re-adding italics. So I was wondering is there 
>>>> perhaps a way (maybe some tool or script) that someone has come up with to 
>>>> strip copied rich text of everything but the italics formatting?
>>>> Any ideas or suggestions much appreciated!
>>>> Jan
>>>
>>> You can write (or rewrite) an existing template using the formatting you 
>>> want. See the Wiki for details. And when a template tag may return 
>>> formatted text that you may not want, you could add a component to the key 
>>> path (like ’.string’) to get plain text.
>>>
>>> Christiaan
>>
>> As Christiaan said, if you are only asking about citation formatting, a 
>> solution is to create a custom template that produces the formatting that 
>> you want.
>>
>> If you often use different fonts and sizes in different documents, and you 
>> can't create a custom template for each document, you probably just have to 
>> select all the inserted text and manually change it all to the proper font 
>> and/or size, which will still preserve all the other formatting such as 
>> italics.
>>
>> Markdown (https://en.wikipedia.org/wiki/Markdown) is a good solution if you 
>> have the option to use it: it is a "lightweight markup language" for writing 
>> in plain text with a simple syntax for formatting. When you are finished 
>> writing, you convert the Markdown text to an output format (such as DOCX, 
>> LaTeX, etc.) with a program such as Pandoc 
>> (https://en.wikipedia.org/wiki/Pandoc). There is a BibDesk export template 
>> for Markdown here: https://github.com/dsanson/bibdesk-pandoc-export-templates
>>
>> Nathan
>
> I forgot to mention that if you have the option to use it, Pandoc Markdown 
> also allows you to cite using cite keys just like LaTeX, and Pandoc can 
> automatically generate the reference list for you, which would eliminate the 
> need for a BibDesk export template. This is probably not what you are looking 
> for, but it is "plain text" related.
>
> _______________________________________________
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to