Description
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
JabRef 5.8--2022-11-17--e6fc296 Windows 10 10.0 amd64 Java 18.0.2.1 JavaFX 19+11
Checked with the latest development build
- I made a backup of my libraries before testing the latest development version.
- I have tested the latest development version and the problem persists
Steps to reproduce the behaviour
1 - Go to "Options->Entry preview", click on "Customized preview style". Edit it and replace all the preview code with:
\begin{author}{\format[Authors(LastFirst,InitialsNospace,FullPunc,And)]{\author}}\end{author}
Make sure "Show preview as a tab in entry editor" is not checked.
2 - Create a new library and a new article. Assign "First-Firstname Secondname" to the author field. Hit F9 one or more times to display the reference in "Customized preview style". It should display "{Secondname, F.-F.}". The "InitialsNospace" option works fine and the first name (First-Firstname) is abreviated properly.
3 - Now replace "First-Firstname Secondname" in the "Author" field with "Secondname, F.-F.". The firstname, containing a dash (-) is already abbreviated and the "InitialsNospace" option properly display "{Secondname, F.-F.}" which is also fine.
4 - Now replace "Secondname, F.-F." in the "Author" field with "Secondname, F.F.". The firstname is already abbreviated from "First Firstname" (without dash which is very common in latin languages) to "F.F." and there is no need to re-abbreviate it. The second initial should be kept: "Secondname, F.F." since it is part of the already abbreviated firstname.
Appendix
Documentation about how to create/modify the Customized preview style is here:
https://docs.jabref.org/collaborative-work/export/customexports