summaryrefslogtreecommitdiff
path: root/info/examples/tlc3/example-sources/16-5-34.ltx
blob: de921633b2083c0ca146d16262516b15068ced1f (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
%%
%% The LaTeX Companion, 3ed
%%
%% Example 16-5-34 on page II-524 in "Author-date citation support".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{135.0pt}

  \setlength\parindent{0pt}

%% Apply the jurabib defaults we use in the book (documented at the beginning of the section)
\AddToHook{package/jurabib/after}{\jurabibsetup{titleformat=colonsep,commabeforerest=true}}

  %% Do not show the bibliography itself in the example,
  %% so put it on a separate page:
  \AtEndDocument{\newpage\bibliography{tlc}}

  \hyphenation{Schuld-recht}

%StartShownPreambleCommands
\usepackage{jurabib} \bibliographystyle{jurabib}
\jurabibsetup{authorformat=year,annotatorformat=italic,
              titleformat={all,colonsep}}
\renewcommand\jbcitationyearformat[1]{\oldstylenums{#1}}
\jbyearaftertitle 
%StopShownPreambleCommands

\begin{document}
\cite[Heinrichs][\S\,26]{bgb}    \\   \cite{aschur}
\end{document}