1

When I do this

\documentclass{article}

\usepackage{multicol}
\RequirePackage[utf8]{inputenc}

\begin{document}

\begin{multicols}{2}
{\Large Équations}
\columnbreak

{\Large Calculs et raisonnements}
\end{multicols}
\end{document}

I get

enter image description here

Is there a way to force the first baselines to be at the same level?

The solution I'm thinking of now is to add a \vphantom.

edit

PS: Here is why I use \columnbreak. Without \columnbreak, my document doesn't look well balanced.

enter image description here

edit 2

Here is another instance of when I need to columnbreak...

enter image description here

  • Guessing the intended purpose of your document, it could be convenient to switch to a longtable or longtabu environment. I can post an example as answer if you want. – Max Apr 23 '18 at 12:35
  • I think this is an XY question: I think, like @MaxSnippe, this should be a table rather than a multicols environment. – egreg Apr 23 '18 at 12:37
  • No, it is a multicols document! – Colas Apr 23 '18 at 12:44
  • The use of multicols is suspicious because of the \columnbreak multicol is all about automatic column breaking and balancing, here suspicion is that if you added more equations than fit in a column you would want them to flow in to the left column of the next page, but multicol would put them in the right column of this page. Of course you can add more code changes to make things appear in the correct column but it is an indication that the wrong tool is being used. You can knock a nail in with a screwdriver, but a hammer may be a better choice. – David Carlisle Apr 23 '18 at 12:48
  • 1
    I only said it was "suspicious" not necessarily wrong:-) so my answer is the answer in that case:-) – David Carlisle Apr 23 '18 at 15:46
4

You need \topskip to be big enough to hold the accented capital

\documentclass{article}

\usepackage{multicol}
\RequirePackage[utf8]{inputenc}
\showoutput
\begin{document}

{\setlength\topskip{15pt}
\begin{multicols}{2}
{\Large Équations

}
\columnbreak

{\Large Calculs et raisonnements

}
\end{multicols}}
\end{document}

enter image description here

1

A second solution using the tcolorbox package.

The idea is to use the sidebyside option of the tcolorbox package which displays the upper and lower parts of the boxes side by side.

The space between the two columns is given by the sidebyside gap parameter, here 3mm.

\documentclass[a4paper]{article}
\usepackage[margin=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[most]{tcolorbox}
\usepackage{lipsum}

\begin{document}

% box creating the box "double column"
\newtcolorbox{double column}{notitle,lower separated=false,
enhanced,sidebyside,sidebyside align=top,sidebyside gap=3mm,
sharp corners,boxrule=0pt,colback=white,
}


\begin{double column}
\lipsum[1]

\tcblower

\lipsum[2]

\end{double column}
\end{document}

Output:

enter image description here

0

I wrote a Compo command that allows to show a figure next to a text but that can just as well place two texts or 2 images side by side.

It was corrected by @egreg who made it an environment: Conflict between personal macro and Babel French

Here an example by default where the minipage is separated into two equal parts as well as two other examples where the minipage is separated into two unequal parts and separated by a vertical line.

enter image description here

\documentclass[a4paper]{article}
\RequirePackage[utf8]{inputenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% nouvel environnement Compo
% https://tex.stackexchange.com/questions/403589/conflict-between-personal-macro-and-babel-french

\newlength\colG\newlength\colD%
\newenvironment{Compo}[1][0.5]
 {%
  \setlength{\colG}{#1\linewidth}%
  \setlength{\colD}{\linewidth}%
  \addtolength{\colD}{-\colG}%
  \addtolength{\colG}{-10pt}%
  \addtolength{\colD}{-10pt}%
  \par\noindent%
  \begin{minipage}{\colG}%
 }%
 {%
  \end{minipage}%
  \par%
 }%
\newcommand{\compobreak}{%
  \end{minipage}\hfill\vrule\hfill%
  \begin{minipage}{\colD}%
}%
\newcommand{\componubreak}{%
  \end{minipage}\hfill%
  \begin{minipage}{\colD}%
}%

% fin environnement Compo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\begin{Compo}% by default .5
{\Large Équations}
\componubreak 
{\Large Calculs et raisonnements}
\end{Compo}

\smallskip

\dotfill
\smallskip

\begin{Compo}[.4]
{\Large Équations}
\compobreak 
{\Large Calculs et raisonnements}
\end{Compo}

\smallskip

\dotfill
\smallskip

\begin{Compo}[.6]
{\Large Équations}
\compobreak 
{\Large Calculs et raisonnements}
\end{Compo}

\end{document}
  • Thanks André but I prefer to use multicols. I think it matches more my needs (cf. the edited question) – Colas Apr 23 '18 at 15:44
  • To make 2 columns, the environment that I propose answers your two problems since the content of each column is filled manually by yourself and is not automatic. That's why I personally stopped using multicol which is more appropriate for writing newspapers or magazines. – AndréC Apr 24 '18 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.