summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/eplain/base/test/citecust.tex
blob: 2b3266407bae557b2b90a2b1e4591f020b723d9b (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
% This file is public domain.
%
% File to test the various customizations btxmac.tex allows.
% 
\input eplain

% Have citations come out as superscripts, as in footnotes.
% 
% Unfortunately, plain TeX doesn't define the \scriptfont for the \tt
% family. Since we use \tt to print unresolved bib-references, we define
% it ourselves, so we can use superscripts.
\font\eighttt = cmtt8
\scriptfont\ttfam = \eighttt
\def\printcitestart{$^\bgroup}
\def\printbetweencitations{,\space}
\def\printcitefinish{\egroup$}
\def\printcitenote#1{\hbox{\sevenrm\space (#1)}}

% Do angle brackets instead of brackets. (We don't redefine \biblabelprint.)
% 
\def\biblabelcontents#1{\bblrm $\langle$#1$\rangle$}

% Use sans serif instead of roman, and slanted instead of italic.
% 
\font\bblrm = cmss10
\font\bblem = cmsl10

% Put a rule before the bibliography.
% 
\def\bblhook{\medskip\hrule\smallskip}

Two citations to Knuthian works: \cite{surreal,concrete-math}.

This one with a note: \cite[another one]{surreal}.

\bibliography{knuth}   % Use knuth.bib to resolve the labels.
\bibliographystyle{plain}   % Number the references.
\end   % End of the document.