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