3

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

3
  • 8
    If it is just one fixed document, why do you want to convert it? why not just process it with plain? Apr 14, 2013 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? Apr 14, 2013 at 22:37
  • I want to use Lyx to import a document, but Lyx only work with latex.
    – norbux
    Apr 16, 2013 at 16:37

1 Answer 1

7

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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .