summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-07 23:27:17 +0000
committerKarl Berry <karl@freefriends.org>2016-03-07 23:27:17 +0000
commitc48ccf7d508e674e10d9771d333993da3a957589 (patch)
tree8b07dc3139c7af20c5818eb3958bcf0ac71586e7 /Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex
parent7a90070ab1c2a78ee48e025706907db2b5fb4384 (diff)
biblatex 3.3 (7mar16)
git-svn-id: svn://tug.org/texlive/trunk@39966 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex16
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex b/Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex
index 482e4608cef..81d8eee825a 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/21-indexing-multiple.tex
@@ -15,6 +15,7 @@
%
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
%
% The 'index' package provides advanced indexing facilities with
% support for multiple indexes.
@@ -51,9 +52,18 @@
% the \index command, which happens to be the first argument of the
% 'index:name' bibmacro.
%
-\DeclareIndexNameFormat{default}{%
- \usebibmacro{index:name}{\index[names]}{#1}{#3}{#5}{#7}%
-}
+\makeatletter
+\@ifpackageloaded{biblatex_legacy}
+ {\DeclareIndexNameFormat{default}{%
+ \usebibmacro{index:name}{\index[names]}{#1}{#3}{#5}{#7}}}
+ {\DeclareIndexNameFormat{default}{%
+ \nameparts{#1}%
+ \usebibmacro{index:name}{\index[names]}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}}
+\makeatother
%
% Titles are handled in a similar way. The formatting directive we
% need to modify is 'indextitle'. It's default definition looks like