summaryrefslogtreecommitdiff
path: root/german-legal-book.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'german-legal-book.bbx')
-rw-r--r--german-legal-book.bbx22
1 files changed, 22 insertions, 0 deletions
diff --git a/german-legal-book.bbx b/german-legal-book.bbx
index 390d78c..e0e66f3 100644
--- a/german-legal-book.bbx
+++ b/german-legal-book.bbx
@@ -65,6 +65,28 @@
dashed = true,%
}
+%%% Mit der Option "switchprefix" wird angegeben, ob Namenspräfixe wie
+%%% "von" in den Fußnoten *vor* dem Nachnamen (z.B. "von Liszt"), im
+%%% Literaturverzeichnis aber -- der Standardsortierung entsprechend --
+%%% nachgestellt erscheinen sollen (z.B. "Liszt, Franz von"). Der
+%%% Standard ist "true", d.h. um dies zu unterbinden, muss
+%%% "switchprefix=false" als Option gesetzt werden.
+\newbool{prefix:switch}
+\setboolean{prefix:switch}{true}
+\DeclareBibliographyOption[boolean]{switchprefix}[true]{%
+ \setboolean{prefix:switch}{#1}%
+}
+\AtEveryCite{%
+ \ifbool{prefix:switch}{%
+ \toggletrue{blx@useprefix}%
+ }{}%
+}
+\AtBeginBibliography{%
+ \ifbool{prefix:switch}{%
+ \togglefalse{blx@useprefix}%
+ }{}%
+}
+
%%%%%%%%%%%%%%%%%%%%%%%%
%%% Allgemeiner Teil %%%