I would like to set a color to the leftmost minipage in the following code:
\usepackage{xcolor}
\fcolorbox{red}{gray}{
\begin{minipage}{0.33\textwidth}
some text
\end{minipage}
}
\begin{minipage}{0.67\textwidth}
some other text
\end{minipage}
but the leftmost minipage is displayed over the whole page and the rightmost appears on the second page (given there is enough text in both). I read that one should set innerleftmargin, innerrightmargin and paragraph parameters to 0, but that didn't work either. What is the right way to do it?
\usepackage[hmargin=0.75cm, vmargin=0.75cm]{geometry}– iggy Aug 13 '14 at 20:26\fcolorbox{red}{gray}(like red is used in foreground and gray as background)? – hola Mar 25 '22 at 12:58