liantze / AltaCV

Yet another alternative curriculum vitae/résumé class with LaTeX
Other
1.32k stars 338 forks source link

Automatic Column Switching for Alta CV Sections #105

Closed mahfuzullah closed 1 year ago

mahfuzullah commented 1 year ago

Currently, when creating multi-column documents using Alta CV, there is a need to manually insert a "\switchcolumn" command to switch the content to the next column once a section reaches the end of the page. i was looking for a way to continue my text in the next column instead of next page automatically. also why was this implemented this way ?

AlbertoFabbri93 commented 1 year ago

I like the way it is currently implemented, it lets us choose what we want in each column.

mahfuzullah commented 1 year ago

I like the way it is currently implemented, it lets us choose what we want in each column.

understable, i will mark this as closed

liantze commented 1 year ago

The paracol package is loaded in the .tex, not in the .cls, and the .tex example uses \begin{paracol}{2}...\end{paracol} instead of a custom environment name defined in the .cls. I did this on purpose, so that authors are certainly not forced/limited to use the paracol package or environment. You can use multicols, vwcol, minipage, adjustwidth etc (or no environments at all to just use a single full text-width column!) to implement their own preferred layout.

I chose to use paracol in the template to create columns of unequal widths. And as @AlbertoFabbri93 remarked, perhaps more flexible since you can decide where to use \switchcolumn. In paracol the text in the left column can automatically continue on the next page, until \switchcolumn switches to the right column on the first page. Depending on your needs this may be exactly what you want — or not: then you may want to use other packages e.g. multicol (equal-width columns) or vwcol (unequal width columns), As mentioned above, authors are free to choose whichever packages/environment they like to implement their preferred layout.