summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/eplain/base/test/citecust.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/eplain/base/test/citecust.tex')
-rw-r--r--Master/texmf-dist/source/eplain/base/test/citecust.tex38
1 files changed, 38 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/eplain/base/test/citecust.tex b/Master/texmf-dist/source/eplain/base/test/citecust.tex
new file mode 100644
index 00000000000..2b3266407ba
--- /dev/null
+++ b/Master/texmf-dist/source/eplain/base/test/citecust.tex
@@ -0,0 +1,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.