This works fine with TeXLive2011 and was working fine with TeXLive2012 until I recently updated the packages. So with TexLive2011, this produces:
but with an updated TeXLive2012 this yields:
Notes:
- Also there seems to be something going on with
\x
. Replace\Number
in the MWE with\x
and run with TeXLive2012 (with latest updates). Using\show\x
shows that it isundefined
, so not sure why there is a problem with using\x
as the\foreach
variable. There is an warning from
mdframed
Package mdframed Warning: You have only a width of 3cm on input line 15
but not sure what it means, or what to do about it.
Code:
\documentclass{article}
\usepackage{multicol}
\usepackage{pgffor}
\usepackage{parskip}
\usepackage{multicol}
\usepackage{mdframed}
\usepackage{showframe}
\begin{document}\raggedcolumns
\begin{multicols}{6}
\foreach \Number in {1,...,14} {%
\begin{mdframed}%
\mbox{AB-\Number}%
\end{mdframed}
}
\end{multicols}
\end{document}
\x
is that it's used in the definition of\mdf@trivlist
; it should be replaced by a private macro such as\mdf@temp
.tcolorbox
;-)\x
wasn't the problem. And the warning results of an previous idea of mine: Normally you have a complete line width. After subtraction of all relevant length (line width, left margin, etc) The width should be more than 3cm.