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
|
%%
%% Ein Beispiel der DANTE-Edition
%%
%%
%% Copyright (C) 2010 Herbert Voss
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%
%%
%%Run also: >> bibtex <<
% Show page(s) 1
%%
\documentclass[a5paper,ngerman]{article}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[margin=15mm]{geometry}
\usepackage{babel}
\pagestyle{empty}
\usepackage{marginnote}
\usepackage[style=authoryear,backref=false,hyperref=auto,
abbreviate=true,sorting=nyt,bibencoding=inputenc,block=ragged,
backend=bibtex]{biblatex}
\setlength\bibitemsep{0.5\baselineskip plus 0.3\baselineskip minus 0.1\baselineskip}
\renewcommand*{\bibsetup}{%
\interlinepenalty=5000\relax \widowpenalty=10000\relax
\clubpenalty=5000\relax % 10000
\raggedbottom\frenchspacing\sloppy\emergencystretch=4em}
\makeatletter
\usepackage{marginnote}
\newcommand*\formatItemCnt[1]{}
\newcommand*\@formatItemCnt[1]{\edef\@tempa{\ifnum#1<100\relax 0\fi
\ifnum#1<10\relax 0\fi#1}{\fboxsep=2pt\fbox{\footnotesize\sffamily\@tempa}}}
\newcommand*\enableBibItemCount{\let\formatItemCnt=\@formatItemCnt}
\AtEveryBibitem{\raggedright\ifx\formatItemCnt=\@formatItemCnt\@tempswatrue\fi
\if@tempswa\marginnote[\formatItemCnt{\the\value{instcount}}]%
{\formatItemCnt{\the\value{instcount}}}\fi}
\makeatother
\bibliography{klassiker}
\begin{document}
\nocite{*}
\enableBibItemCount
\defbibheading{Goe}{\section*{Literatur von Johann Wolfgang Goethe}}
\defbibheading{AGoe}{\section*{Literatur über Johann Wolfgang Goethe}}
\defbibnote{AGoe}{Dieser Abschnitt zeigt nur einen Teil der Literatur über
Johann Wolfgang Goethe.}
\defbibheading{Sch}{\section*{Literatur von Friedrich Schiller}}
\defbibheading{ASch}{\section*{Literatur über Friedrich Schiller}}
\defbibnote{ASch}{Dieser Abschnitt zeigt nur einen Teil der Literatur über
Friedrich Schiller.}
\defbibfilter{Sch}{\keyword{Friedrich Schiller}}
\defbibfilter{ASch}{\keyword{About Friedrich Schiller}}
\defbibfilter{Goe}{\keyword{Johann Wolfgang Goethe}}
\defbibfilter{AGoe}{\keyword{About Johann Wolfgang Goethe}}
\printbibliography[heading=Goe,filter=Goe]
\printbibliography[heading=AGoe,prenote=AGoe,filter=AGoe]
\printbibliography[heading=Sch,filter=Sch]
\printbibliography[heading=ASch,prenote=ASch,filter=ASch]
\end{document}
|