summaryrefslogtreecommitdiff
path: root/info/examples/Einfuehrung2/11-05-17.ltx2
blob: f23f274545e9bb66fe8bebdf3743478731e3ba5a (plain)
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
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  2. Auflage
%% 
%%  Beispiel 11-05-17 auf Seite 554.
%% 
%%  Copyright (C) 2016 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.
%% 
%% 
%% ==biber== 
% Show page(s) 1,2
%% 
%% 
\documentclass[openany]{exabook}
\pagestyle{empty}
\setlength\textwidth{172.40709pt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel]{csquotes}
\usepackage[paper=a5,pagesize,DIV15]{typearea}
%StartShownPreambleCommands
\usepackage[style=authortitle]{biblatex}  \makeatletter
\def\citeCat{\@ifnextchar<\citeCat@i\citeCat@iv}
\def\citeCat@i<#1>{\@ifnextchar[{\citeCat@ii{#1}}{\citeCat@iii{#1}}}
\def\citeCat@ii#1[#2]#3{\addtocategory{#1}{#3}\footcite[#2]{#3}}
\def\citeCat@iii#1#2{\addtocategory{#1}{#2}\footcite{#2}}
\newcommand*\citeCat@iv[2][]{\cite[#1]{#2}}
\makeatother
\DeclareBibliographyCategory{prim} \DeclareBibliographyCategory{sec}
\addbibresource{examples.bib}
%StopShownPreambleCommands
\begin{document}
\chapter{Referenzen nach Kategorien}
Der Mensch Aristoteles\citeCat<prim>{aristotle:anima} und der
Nussbaum\citeCat<sec>{nussbaum}, sowie dieser Artikel%
\citeCat<sec>{averroes/bland} und ein weiter Artikel\citeCat<sec>{hyman}.
Die Physik von Aristoteles\citeCat<prim>{aristotle:physics} ist im
Artikel\citeCat<sec>{moraux} und im Artikel\citeCat<sec>{pines}
beschrieben. \par
Nach demselben Prinzip wie die \texttt{keywords}-Unterscheidung funktioniert
auch eine Unterteilung nach Typen, wenn man beispielsweise Internetquellen
separat angeben möchte. Die Anweisung lautet in diesem Fall \texttt{type}
bzw. \texttt{nottype}:
\defbibheading{prim}{\section*{Primärquellen}}
\defbibheading{sec}{\section*{Sekundärquellen}}
\chapter*{Bibliografie}
\bibbycategory
\end{document}