%%
%% The LaTeX Companion, 3ed
%%
%% Example 16-5-22 on page II-518 in "Citations as footnotes or endnotes".
%%
%% 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{183.0pt}

  \setcounter{page}{5}
  \setlength\textheight{5\baselineskip}
  \sloppy

%% 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}}

%% show second page in book

%StartShownPreambleCommands
\usepackage{jurabib} \bibliographystyle{jurabib}
\jurabibsetup{super,citefull=first,lookat}
\AddTo\bibsall{\renewcommand\lookatprefix
                   {, \emph{supra} note }
               \renewcommand\lookatsuffix{}}
%StopShownPreambleCommands

\begin{document}
\ldots to use \LaTeX{} on the web.\cite{LWC99}
    \newpage % Next page shown on the left:
Also discussed is generating PDF\cite[chap.~2]
 {LWC99} and HTML.\cite[chap.~3--4]{LWC99}
\end{document}
