> 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 _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users