summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-bib-ex/02-01-2.ltx2
blob: 5c29d5bc194c469d5125e153f070d5796a0195bb (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
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
%% 
%%  Ein Beispiel der DANTE-Edition
%% 
%%  Beispiel 02-01-2 auf Seite 15.
%% 
%%  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.
%% 
%% 
%% ==runAllAuxFiles== 
% Show page(s) 1,2
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{172.40707pt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\setlength\parindent{0pt}
\usepackage[ngerman]{babel}
\usepackage[paper=a6,pagesize,DIV15]{typearea}
\usepackage{filecontents}
\begin{filecontents*}{books.bib}
@book{ColBenh:93,
   editor = "Fr{\'e}d{\'e}ric Benhamou and Alain Colmerauer",
   title = "Constraint {Logic} programming, {Selected} {Research}",
   publisher = "MIT Press",
   year = 1993
}
@book{Munt:93,
   author    = {Tra{\"\i}an Muntean},
   title     = {Puces tr{\`e}s performantes},
   publisher = {Hatier},
   address   = {Paris},
   series    = {Terres du futur, Les Editions UNESCO},
   year      = 1993,
}
@Book{Bechtolsheim:TP93a,
  author =       {{Stephan von} Bechtolsheim},
  title =        {{\TeX} in {P}ractice: {B}asics},
  publisher =    {Springer-Verlag},
  year =         1993,
  ISBN =         {0-387-97595-0},
  LCCN =         {Z253.4.T47 B4 1993},
  volume =       {1},
  address =      {Berlin, Heidelberg, Germany~/ London, UK~/ etc.},
}
\end{filecontents*}
\begin{filecontents*}{articles.bib}
@incollection{RouxSmart:95,
    author    = "M. Roux and J. Smart",
    title     = "A Model of Medical Knowledge Representation, Application
                 to the Reports Analysis of Descriptive Pathology",
    booktitle = "Methods of Information in Medecine",
    note      = {{\`A} para{\^{\i}}tre},
    publisher = "Schattauer",
    address   = "Holland",
    year      = 1995
}
@Article{Kehr:xindy,
  author  = "Roger Kehr",
  title  = "{\texttt{xindy}---{A} flexible indexing system}",
  journal  = "Cahiers GUTenberg",
  year  = 1998,
  volume  = "28--29",
  pages  = "223--230",
  month  = mar,
}
\end{filecontents*}

\usepackage[unitcntnoreset]{bibtopic}
\usepackage[numbers]{natbib}
% bibtex \jobname1  bibtex \jobname2  bibtex \jobname3

\begin{document}
\bibliographystyle{plainnat}
\begin{btUnit}%  Beginn erste btUnit
Wir zitieren twei Bücher: \cite{Bechtolsheim:TP93a} und \cite{Munt:93} und
auch einen Artikel: \cite{RouxSmart:95}.
\begin{btSect}{books}
\section{Literatur -- Bücher}    \btPrintCited
\section{Nicht-zitierte Artikel} \btPrintNotCited
\end{btSect}

\begin{btSect}[plain]{articles}
\section{Literatur -- Artikel}   \btPrintCited
\end{btSect}
\end{btUnit}%   Ende erste btUnit

Jetzt endet die erste \texttt{btUnit} und die zweite beginnt sogleich \ldots

\begin{btUnit}% Beginn zweite btUnit
Das Zitieren von~\cite{RouxSmart:95} gibt jetzt keine Warnung
‘multiple defined citations’ von \LaTeX, weil sie innerhalb einer anderen
"'btUnit"` erscheint.
\begin{btSect}{books}   \section{Alle Bücher}  \btPrintAll \end{btSect}
\begin{btSect}{articles}\section{Alle Artikel} \btPrintAll \end{btSect}
\end{btUnit}%  Ende der zweiten btUnit
\end{document}