[Tex/LaTex] Dividing a page into independent parts/columns with different widths


I want to divide my page (A4 landscape) into different parts. The top should consist of four columns with different widths and no rule. For this I used vwcol but I could not figure out how to do a column break there. Text should not continue in another column. Below that, the page should only be divided into two columns and have a rule in between. Multicols seems to be the right choice here.

I also would like to have different formattings for each part. E.g. the top four columns are: image, left-aligned text, right-aligned text, image

So far I tried columns, multicols and vwcols but there is always something not working. Here is what I have now:

\documentclass[a4paper,12pt, landscape]{article}



\begin{vwcol}[widths={0.2,0.3,0.3,0.2}, sep=10mm, rule=0] 
%second column: left aligned text
%column break
%third column: right aligned text



I am grateful for any hints you could give me. Thanks!

Best Answer

Here is a method using flowfram. If you use this, make sure to read the documentation as it re-engineers the output routine in ways you need to know about.

The top of the page is split into 4 frames. The content of these frames will not flow into other parts of the page, so you need to make sure stuff fits else it will spill over and overwrite other parts of your content. The far column on each side is centred. The inner left is set flush left. The inner right is set flush right.

The bottom of the page is split into 2 columns. Text flows here from one column to the next and one page to the next. (So if you want to move to the next column before the first is full, you need to insert a manual break, as you'd expect.)

Please do NOT use minimal for examples. I copied your code without paying enough attention and spent ages trying to figure out why it was complaining about standard LaTeX commands not being defined. This class is NOT intended for examples, and should not be used for such.

flowing columns and dynamic frames






  \setdynamiccontents*{upperleft}{A caption for the left image which will be left aligned. Make sure that the contents fits the area available as it will NOT `flow' elsewhere, as requested!}
  \setdynamiccontents*{upperright}{A caption for the right image which will be right aligned. Make sure that the contents fits the area available as it will NOT `flow' elsewhere, as requested!}




A little explanation in response to queries in a comment...

When setting up the 'dynamic' frames at the top, the syntax used above is:

\newdynamicframe{width of frame}{height of frame}{horizontal offset from origin}{vertical offset from origin}[label]

where the origin is at the lower left corner (south west) of the text block.

In the top row, you have 3 column separations and 4 columns. So the total width for separating the columns is 3 times \columnsep and you want to divide it equally between the 4 columns (or so I assumed). Hence, .75\columnsep is taken from each column width. In the bottom row, you have 1 column separation and 2 columns. So, you want .5\columnsep to be taken from the width of each column in order for the columns to be of equal width. Hence this is taken from the width of each column. It is not a 3:2 ratio since \columnsep is default for the top and 20mm for the bottom.

Related Question