Two-column text with minipage in cover letter

Asked by matsch

Hi,

I am trying to typeset some text in two columns in the separate cover letter. Using two simple minipage environments doesn't do the trick.

\begin{minipage}[t]{0.48\textwidth}
text
\end{minipage}
\begin{minipage}[t]{0.48\textwidth}
text
\end{minipage}

The two minipages still apear after each other rather than side-by-side.

Any ideas?

Thanks,
matsch

Question information

Language:
English Edit question
Status:
Solved
For:
moderncv Edit question
Assignee:
Xavier Danaux Edit question
Solved by:
Xavier Danaux
Solved:
Last query:
Last reply:
Revision history for this message
Xavier Danaux (xdanaux) said :
#1

SImply replace \textwidth by \maincolumnwidth. Depending on the style you are using, moderncv might create some columns which reduce the horizontal space available.

Revision history for this message
matsch (scopsen) said :
#2

Hi Xavier,

Thanks for your quick reply!

This does unfortunately not resolve the issue. I already tried with lower numbers.

I am using the classic style.

matsch

Revision history for this message
Xavier Danaux (xdanaux) said :
#3

Hi Matsch,

Could you provide a full minimal working example so I can check the issue? Thanks!

Revision history for this message
matsch (scopsen) said :
#4

The example below reproduces the problem.
Am I getting something obvious completely wrong? Thanks for your help!
matsch

\documentclass{moderncv}

% moderncv themes
\moderncvstyle{classic}

% adjust the page margins
\usepackage[scale=0.75]{geometry}

% personal data
\firstname{Firstname}
\familyname{Lastname}
\address{street number}{zip city}
\mobile{+123}
\phone{+123}
\email{<email address hidden>}

\begin{document}
\makecvtitle

\begin{minipage}[t]{0.2\maincolumnwidth}
left?
\end{minipage}

\begin{minipage}[t]{0.2\maincolumnwidth}
right?
\end{minipage}

\end{document}

Revision history for this message
Best Xavier Danaux (xdanaux) said :
#5

Just remove the empty line between the 2 minipages (or comment it). LaTeX interprets an empty line as a new paragraph :)

Revision history for this message
matsch (scopsen) said :
#6

D'Oh! It was a stupid problem... Thanks!

Revision history for this message
matsch (scopsen) said :
#7

Thanks Xavier Danaux, that solved my question.

Revision history for this message
Xavier Danaux (xdanaux) said :
#8

You're welcome!