# How to convert “plain TeX” to LaTeX

I want to convert to LaTeX from plain TeX. I try use Emacs, but I can't. The document is this.

-
If it is just one fixed document, why do you want to convert it? why not just process it with plain? – David Carlisle Apr 14 '13 at 19:01
You've accepted the answer, thanks but I'm still interested as to why you would want to do that, if you have latex you must have plain as well? – David Carlisle Apr 14 '13 at 22:37
I want to use Lyx to import a document, but Lyx only work with latex. – norbux Apr 16 '13 at 16:37

## 1 Answer

This seems to work, it might need some slight tweaks, but produces a three column layout basically like the original.

\documentclass{article}
\usepackage{plain}
\usepackage{pdflayout}
\begin{document}
\begin{plain}
\makeatletter
\def\pagebody{\vbox to\vsize{\boxmaxdepth\maxdepth \pagecontents}}
\def\pagecontents{\dimen@=\dp\@cclv \unvbox\@cclv}
\def\makeheadline{\vbox to\z@{\vskip-22.5\p@
\line{\vbox to8.5\p@{}\the\headline}\vss}\nointerlineskip}
\def\makefootline{\baselineskip24\p@\lineskiplimit\z@\line{\the\footline}}
\newtoks\headline \headline={\hfil}
\newtoks\footline \footline={\hss\rm\thepage\hss}
\def\input #1 {}
\makeatother
\csname @@input\endcsname orgcard
\end{plain}
\end{document}
-