1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
%%
%% The LaTeX Companion, 3ed
%%
%% Example 16-7-30 on page II-560 in "Language support".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%
\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{112.20114pt}
\setlength\textheight{13\baselineskip}
\addtolength\textwidth{-4pt}
% Use biber program
\makeatletter
\renewcommand\section{\@startsection{section}{1}{\z@}%
{-1.25ex \@plus-1ex \@minus-.2ex}%
{.5ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\AtBeginDocument{%
\DeclareSortingTemplate[locale=swedish]{swe-nyt}{
\sort{
\field{presort}
}
\sort[final]{
\field{sortkey}
}
\sort{
\field{sortname}
\field{author}
\field{editor}
\field{translator}
\field{sorttitle}
\field{title}
}
\sort{
\field{sortyear}
\field{year}
}
\sort{
\field{sorttitle}
\field{title}
}
\sort{
\field{volume}
\literal{0}
}
}
}
\begin{filecontents*}[overwrite,noheader]{locale.bib}
@book{aa,
author = {Aachen, Georgina},
title = {Title AA},
}
@book{vn,
author = {Vn, A},
title = {Title VN},
}
@book{vr,
author = {Vr, A},
title = {Title VR},
}
@book{wolf,
author={Wolf, Ceasar},
title={Title B},
}
@book{ringa,
author = {Ånten, Georgina},
title = {Title Å},
}
@book{ua,
author = {Änten, Georgina},
title = {Title Ä},
}
@book{uo,
author = {Önten, Georgina},
title = {Title Ö},
}
\end{filecontents*}
%StartShownPreambleCommands
\usepackage[swedish,english]
{babel}
\usepackage[style=authoryear]
{biblatex}
\addbibresource{locale.bib}
\AtBeginBibliography{\small}
% declaration for swe-nyt not shown
%StopShownPreambleCommands
\begin{document}
\nocite{*}
\printbibliography
[title=English Sorting]
\newpage
\newrefcontext[sorting=swe-nyt]
\printbibliography
[title=Swedish Sorting]
\end{document}
|