summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-bib-ex/03-05-3.ltx2
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-bib-ex/03-05-3.ltx2')
-rw-r--r--Master/texmf-dist/doc/latex/latex-bib-ex/03-05-3.ltx250
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-bib-ex/03-05-3.ltx2 b/Master/texmf-dist/doc/latex/latex-bib-ex/03-05-3.ltx2
new file mode 100644
index 00000000000..d7e65409562
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-bib-ex/03-05-3.ltx2
@@ -0,0 +1,50 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% Beispiel 03-05-3 auf Seite 82.
+%%
+%% Copyright (C) 2011 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.
+%%
+%%
+%% ==command biber ++FILE++==
+% Show page(s) 1,2,3
+%%
+\documentclass[openany]{book}
+\pagestyle{empty}
+\setlength\textwidth{126.88268pt}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[ngerman]{babel}
+\usepackage[autostyle]{csquotes}
+\AtBeginDocument{\setlength\parindent{0pt}}
+\usepackage[paper=a6,pagesize,DIV16]{typearea}
+
+\usepackage[style=authortitle,backend=biber]{biblatex} \bibliography{examples}
+\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}
+
+\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.
+
+\defbibheading{prim}{\section*{Primärquellen}}
+\defbibheading{sec}{\section*{Sekundärquellen}}
+\chapter*{Bibliografie}
+\bibbycategory
+\end{document}