General ⇒ Spliting page into two columns
Spliting page into two columns
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 1460 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Spliting page into two columns
welcome to the board!
You could use tabularx for this, for example:
Code: Select all
\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}
Spliting page into two columns
Code: Select all
\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}
All the best,
Dror
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Spliting page into two columns
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