Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
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
    
Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. –  Papiro Apr 14 '13 at 19:41
    
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
add comment

1 Answer

up vote 7 down vote accepted

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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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