LaTeX forum ⇒ GeneralSpliting page into two columns

LaTeX specific issues not fitting into one of the other forums of this category.
drorata
Posts: 8
Joined: Mon Jul 14, 2008 9:29 am

Spliting page into two columns

Postby drorata » Mon Jul 14, 2008 9:36 am

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 603 times
Ubuntu 8.04 + Kile 3.5.10 + TeXLive. Question?

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Jul 14, 2008 3:12 pm

Hi Dror,

welcome to the board!

You could use tabularx for this, for example:
  1. \documentclass[a4paper,10pt]{article}
  2. \usepackage{tabularx}
  3. \begin{document}
  4. Here comes the regular test. No problems
  5.  
  6. Now I want to split the page into two columns:
  7.  
  8. \bigskip
  9. \noindent\begin{tabularx}{\textwidth}{XX}
  10. First flower, with properties:
  11. \begin{enumerate}
  12. \item White
  13. \item Blue
  14. \end{enumerate} & \rule[-5cm]{5cm}{5cm} \\
  15. Second Flower:
  16. \begin{itemize}
  17. \item Purple
  18. \item Yellow
  19. \end{itemize} & \rule[-5cm]{5cm}{5cm}
  20. \end{tabularx}
  21. \end{document}

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

drorata
Posts: 8
Joined: Mon Jul 14, 2008 9:29 am

Postby drorata » Mon Jul 14, 2008 3:39 pm

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

  1. \begin{tabular}{|p{0.47\linewidth}|p{0.4\linewidth}|}
  2. \hline
  3. \begin{enumerate}
  4. \item First item
  5. \item Second item
  6. \end{enumerate} &
  7. \begin{itemize}
  8. \item one can get rid of the lines
  9. \item one can put a figure here
  10. \end{itemize}\\
  11. \hline
  12. \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?

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Jul 14, 2008 3:51 pm

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
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests