3

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

  • 8
    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
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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.