[LyX/master] Consider bookauthor in preview

Juergen Spitzmueller spitz at lyx.org
Tue Feb 27 04:41:42 UTC 2024


commit ead6eb8944eaadedaf1d449d7c2a5543f98e0915
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Feb 27 05:40:57 2024 +0100

    Consider bookauthor in preview
    
    Hence, also support the inbook type
---
 lib/layouts/stdciteformats.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/layouts/stdciteformats.inc b/lib/layouts/stdciteformats.inc
index 7a48a7bd25..d88218d76b 100644
--- a/lib/layouts/stdciteformats.inc
+++ b/lib/layouts/stdciteformats.inc
@@ -49,6 +49,8 @@ CiteFormat default
 	!makeed {%ifmultiple:editor%[[%B_edstext%]][[%B_edtext%]]}
 	# author or editor, as fullnames, following the schemes above
 	!authoredit {%fullnames:author%[[%fullnames:author%, ]][[{%fullnames:editor%[[%fullnames:editor%, %!makeed%, ]]}]]}
+	# by author or editor, as fullnames, following the schemes above
+	!byauthoredit {%fullbynames:bookauthor%[[%fullbynames:bookauthor%, ]][[{%fullbynames:editor%[[%fullbynames:editor%, %!makeed%, ]]}]]}
 	# "vol. 1, no.
 	!volnum {%volume%[[ %B_voltext% %volume%, {%number%[[%B_numtext% %number%]]}]]}
 	!fulltitle %title%{%subtitle%[[: %subtitle%]]}
@@ -63,7 +65,7 @@ CiteFormat default
 	#
 	# Entry types. Note that final punctuation will be added later, if needed.
 	#
-	!insomething %fullnames:author%, %!quotetitle%, %B_in%{%fullbynames:editor%[[ %fullbynames:editor%, %!makeed%,]]} {!<i>!}%!fullbooktitle%{!</i>!}%!volnum%{%edition%[[ %edition%]]} (%!locpub%%year%)%!pages%{%note%[[. %note%]]}
+	!insomething %fullnames:author%, %!quotetitle%, %B_in% %!byauthoredit% {!<i>!}%!fullbooktitle%{!</i>!}%!volnum%{%edition%[[ %edition%]]} (%!locpub%%year%)%!pages%{%note%[[. %note%]]}
 
 	article %fullnames:author%, %!quotetitle%, %!emphjournal% {%volume%[[ %volume%{%number%[[, %number%]]}]]} (%year%)%!pages%{%note%[[. %note%]]}
 
@@ -72,6 +74,7 @@ CiteFormat default
 	collection %!booklike%
 	proceedings %!booklike%
 
+	inbook %!insomething%
 	incollection %!insomething%
 	inproceedings %!insomething%
 


More information about the lyx-cvs mailing list