On Tue, 22 Jun 1999, Kaare Rasmussen wrote:
> I'd like to write a book in two columns. 

What a good idea, I'll try it out in my one.

> But sometimes there will be a
> programming example that is supposed to span the columns. These
> examples may be longer than one page.
> 
> I can't seem to find the solution for this. Neither floats, tables or 
> minpages can do this.
> 
> Can this be done, and if so, how?

put:
\usepackage{multicol}
\usepackage{verbatim}

 in the preamble ( Layout->Latex preamble )

put:
\begin{multicols}{2}

  where you wish to start the two column part

put:
\end{multicols}

  where you wish to end the two column part

put:
\verbatiminput[tabstop]{<filename>}

  to input an ascii file 

Sources:- LaTeX Companion sects. 3.3 and 3.5 

( which means I havn't tried it out myself,
  but I am fully confident it will work )

  One of the most useful and readable computer books I have ever purchased.

p.s. Ever thought of making Internet Adventurer work under the X windowing
system?

--
Sincerely etc.,

 Christopher Sawtell - Support Engineer - iOpen Technologies Ltd.
 email - chris @ iopen . co . nz ( anti spam - join it up to use ).
              The Notes for C Programmers
 - The most widely distributed C tutorial in the world -
                  are available from:-
ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz

Reply via email to