summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tlc3-examples/example-sources/16-2-4.ltx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-01-08 22:56:30 +0000
committerKarl Berry <karl@freefriends.org>2023-01-08 22:56:30 +0000
commite4d456bebb37720520a4f5fa790b3e629ffdd754 (patch)
tree72b962f8d2643f803bb4f934b283beeb56f53d32 /Master/texmf-dist/doc/latex/tlc3-examples/example-sources/16-2-4.ltx
parent2da6a527e2a8190efb953f2276c82c556959879c (diff)
tlc3-examples (5jan23)
git-svn-id: svn://tug.org/texlive/trunk@65496 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tlc3-examples/example-sources/16-2-4.ltx')
-rw-r--r--Master/texmf-dist/doc/latex/tlc3-examples/example-sources/16-2-4.ltx61
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tlc3-examples/example-sources/16-2-4.ltx b/Master/texmf-dist/doc/latex/tlc3-examples/example-sources/16-2-4.ltx
new file mode 100644
index 00000000000..9e53409875f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tlc3-examples/example-sources/16-2-4.ltx
@@ -0,0 +1,61 @@
+%%
+%% The LaTeX Companion, 3ed
+%%
+%% Example 16-2-4 on page II-477 in "Customizing citation references and the bibliography in standard \LaTeX {}".
+%%
+%% 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{255.0pt}
+
+% small headings for the example
+\makeatletter
+\renewcommand\section{\@startsection{section}{1}{\z@}%
+ {-1.25ex \@plus-1ex \@minus-.2ex}%
+ {.8ex}%
+ {\normalsize\bfseries}}
+%
+% This example is one of the few that are slightly faked:
+%
+% Because we want to show the use of the openbib class option
+% we pretend that this is what we call by showing a faked
+% document class line that we gobble up with this:
+%
+\renewcommand\documentclass[2][]{}
+%
+% The work of the openbib option is to redefine \@openbib@code
+% so we just do that manually here:
+%
+\renewcommand\@openbib@code{%
+ \advance\leftmargin\bibindent
+ \itemindent -\bibindent
+ \listparindent \itemindent
+ \parsep \z@
+ }%
+ \renewcommand\newblock{\par}
+\makeatother
+
+%StartShownPreambleCommands
+\documentclass[openbib]{article}
+\bibliographystyle{abbrv}
+\setlength\bibindent{24pt}
+
+\makeatletter
+\renewcommand\@biblabel[1]
+ {\textsuperscript{#1}}
+\makeatother
+%StopShownPreambleCommands
+
+\begin{document}
+\nocite{LWC99,Knuth:TB10-1-31}
+\bibliography{tlc}
+\end{document}