Featured Book

LaTeX Beginners Guide

Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 23 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Spliting page into two columns

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

Spliting page into two columns

Postby drorata on Mon Jul 14th, 2008

Dear all,

I'm trying very hard for the last few hours and so far with no success...

I would like to split only part of a page into two columns, s.t. at one side will contain text (math text) and on the other one a corresponding figure. I'm attaching an example of how I would like it to be which was generated using OpenOffice. The best would be to have a big table.

Any ideas?

Thanks in advance,
Dror
Attachments
example of desired layout.pdf
(118.43 KiB) Downloaded 426 times
Ubuntu 8.04 + Kile 3.5.10 + TeXLive. Question?
drorata
 
Posts: 8
Joined: Mon Jul 14th, 2008

Re: Spliting page into two columns

Postby Stefan_K on Mon Jul 14th, 2008

Hi Dror,

welcome to the board!

You could use tabularx for this, for example:
Code: Select all  •  Open in writeLaTeX
\documentclass[a4paper,10pt]{article}
\usepackage{tabularx}
\begin{document}
Here comes the regular test. No problems

Now I want to split the page into two columns:

\bigskip
\noindent\begin{tabularx}{\textwidth}{XX}
First flower, with properties:
  \begin{enumerate}
    \item White
    \item Blue
  \end{enumerate} & \rule[-5cm]{5cm}{5cm} \\
Second Flower:
\begin{itemize}
  \item Purple
  \item Yellow
\end{itemize} & \rule[-5cm]{5cm}{5cm}
\end{tabularx}
\end{document
}

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6411
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: Spliting page into two columns

Postby drorata on Mon Jul 14th, 2008

Thanks for the quick answer! I've already found a solution, using tabular. For example:

Code: Select all  •  Open in writeLaTeX
\begin{tabular}{|p{0.47\linewidth}|p{0.4\linewidth}|}
        \hline
        \begin{enumerate}
                \item First item
                \item Second item
        \end{enumerate} &
        \begin{itemize}
                \item one can get rid of the lines
                \item one can put a figure here
        \end{itemize}\\
        \hline
\end{tabular
}


But, now I have a new problem - once the table gets to long, it doesn't break it automatically. Any ideas?

All the best,
Dror
Ubuntu 8.04 + Kile 3.5.10 + TeXLive. Question?
drorata
 
Posts: 8
Joined: Mon Jul 14th, 2008

Re: Spliting page into two columns

Postby Stefan_K on Mon Jul 14th, 2008

Hi Dror,

minipages next to each other would be an alternative way.
If you want to use a table that continues on the next page you could use the longtable-package.

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6411
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany


Return to General

Who is online

Users browsing this forum: No registered users and 23 guests