If I uncomment the first line of the minipage, the minipage is then too big to fit on the page. What's happening here?
\documentclass{article}
\usepackage{xcolor}
\usepackage{lipsum}
\pagestyle{empty}
\begin{document}
\noindent%
\fbox{%
\begin{minipage}
[t][\dimexpr\textheight-2\fboxrule-2\fboxsep\relax]
{\dimexpr\linewidth-2\fboxrule-2\fboxsep\relax}
% \color{blue}
\lipsum[1-2]
\end{minipage}}
\lipsum[1-2]
\end{document}
\color{blue}before theminipage, just at the start of\fbox? The problem is\color{blue}before starting a paragraph, which creates every kind of evil. – egreg Jun 25 '13 at 16:06\color{blue}with\leavevmodehas the same effect. – Jun 25 '13 at 16:11has the same effect as the original codenothas the same effect as your suggestion!! Indeed I left the blank line. – Jun 25 '13 at 16:14use \leavevmode\color{blue}\lipsum etc...but David's answer came in-between... – Jun 25 '13 at 16:15one new answerI knew without any need to click that the creator of the thing was probably settling up the matter! ;-) – Jun 25 '13 at 16:23