There are many examples of plain TeX source files. For example all my books
and articles are written in plain TeX:
There is an example of Bachelor thesis written in plain TeX (including
sources):
It is not true that plain TeX doesn't give possibility to separate the
logical markup from typesetting tasks. I and my students
consistently respect this rule. You can verify this in sources of mentioned
bachelor thesis, for example.
Unfortunatelly, texbook.tex
isn't good example because the typesetting macros
are mixed with text here. There are \def's
inside document, \eject
, etc.
You can create bad document (where the typesetting task is mixed with logical
markup) or good document independently off the basic used macro is plain TeX or
LaTeX. From this point of view, the accepted answer here is bad example of
good practice in plain TeX, because there are \bigskip\bigskip
,
\centerline
\indent
etc. inside author's part of the document.
Finally, I disagree, that the example by David Carlisle is the typical
example of plain TeX. This is only an example of TeX capabilities. The plain
TeX has no common with it. You can create the following document:
\documentclass{article}
\begin{document}
\def\bye{\end{document}}
\let~\catcode~`76~`A13~`F1~`j00~`P2jdefA71F~`7113jdefPALLF
PA''FwPA;;FPAZZFLaLPA//71F71iPAHHFLPAzzFenPASSFthP;A$$FevP
A@@FfPARR717273F737271P;ADDFRgniPAWW71FPATTFvePA**FstRsamP
AGGFRruoPAqq71.72.F717271PAYY7172F727171PA??Fi*LmPA&&71jfi
Fjfi71PAVVFjbigskipRPWGAUU71727374 75,76Fjpar71727375Djifx
:76jelse&U76jfiPLAKK7172F71l7271PAXX71FVLnOSeL71SLRyadR@oL
RrhC?yLRurtKFeLPFovPgaTLtReRomL;PABB71 72,73:Fjif.73.jelse
B73:jfiXF71PU71 72,73:PWs;AMM71F71diPAJJFRdriPAQQFRsreLPAI
I71Fo71dPA!!FRgiePBt'el@ lTLqdrYmu.Q.,Ke;vz vzLqpip.Q.,tz;
;Lql.IrsZ.eap,qn.i. i.eLlMaesLdRcna,;!;h htLqm.MRasZ.ilk,%
s$;z zLqs'.ansZ.Ymi,/sx ;LYegseZRyal,@i;@ TLRlogdLrDsW,@;G
LcYlaDLbJsW,SWXJW ree @rzchLhzsW,;WERcesInW qt.'oL.Rtrul;e
doTsW,Wk;Rri@stW aHAHHFndZPpqar.tridgeLinZpe.LtYer.W,:jbye
and process it by LaTeX. Will you claim that this is typical LaTeX document?
Edit I'd show the same example as in the accepted answer here (by Sadeq) but with the separated parts: macros and the author's text. The author can be somebody else than the programmer of the macros.
The plain TeX file created by the author of the text would be:
\input macros
\title {An elementary proof of the reconstruction conjecture}
\author {D. Remifa\footnote*{Thanks to the editors of this wonderful journal!}}
\department {Department of Inconsequential Studies}
\address {Solatido College, North Kentucky, USA}
\email {[email protected]}
\edinfo {Submitted: Jan 1, 2009; Accepted: Jan 2, 2009; Published: Jan 3, 2009\nl
Mathematics Subject Classifications: 05C88, 05C89}
\printdata
\abstract
The reconstruction conjecture states that the multiset of unlabeled
vertex-deleted subgraphs of a graph determines the graph, provided it
has at least 3 vertices. A version of the problem was first stated
by Stanis\l aw Ulam. In this paper, we show that the conjecture can
be proved by elementary methods. It is only necessary to integrate
the Lenkle potential of the Broglington manifold over the quantum
supervacillatory measure in order to reduce the set of possible
counterexamples to a small number (less than a trillion). A simple
computer program that implements Pipletti's classification theorem
for torsion-free Aramaic groups with simplectic socles can then
finish the remaining cases.
\section Introduction.
This is the start of the introduction.
\bye
The macros.tex
file declares (1) the markup and (2) the dessign of the document:
\magnification=\magstep1
\font\footsc=cmcsc10 at 8truept
\font\footbf=cmbx10 at 8truept
\font\footrm=cmr10 at 10truept
\footline={\footsc the electronic journal of combinatorics
{\footbf 16} (2009), \#R00\hfil\footrm\folio}
\font\bigrm=cmr12 at 14pt
\newtoks\title \newtoks\author \newtoks\department
\newtoks\address \newtoks\email \newtoks\edinfo
\def\printdata{\par
\centerline{\bigrm\the\title}\vskip2\baselineskip
\if^\the\author^\else \centerline{\the\author}\medskip\fi
\if^\the\department^\else \centerline{\the\department}\fi
\if^\the\address^\else \centerline{\the\address}\fi
\if^\the\email^\else \centerline{\tt\the\email}\fi
\if^\the\edinfo^\else \bigskip
{\footrm \leftskip=0pt plus1fill \rightskip=\leftskip \the\edinfo\par}\fi
\vskip2\baselineskip
}
\def\nl{\hfil\break}
\def\abstract{\par\centerline{\bf Abstract}\smallskip
\bgroup \def\par{\endgraf\bigskip\egroup}
\narrower \noindent
}
\newcount\secnum
\def\section#1\par{\global\advance\secnum by1
\csname beginsection\endcsname \the\secnum. #1\par
}
The output is exactly the same as in the accepted answer here.
xcix.tex
in What is the most bizarre thing you have seen done with TeX.