Consider this example code which creates a 2x6 table where the 6 columns are formed from three name/value pairs:
\documentclass{article}
\usepackage[svgnames,table]{xcolor}
\usepackage{tabu}
\usepackage{booktabs}
\begin{document}
\begin{center}
\taburowcolors[1]{ForestGreen!40..ForestGreen!40}
\begin{tabu}{p{1cm}|X|p{1cm}|X|p{1cm}|X}
\tabucline-
name1 & value1 & name3 & value3 & name5 & value6 \\
name2 & value2 & name4 & value4 & name6 & value6 \\
\tabucline-
\end{tabu}
\end{center}
\end{document}
which looks like this:
It works but we had to explicitly lay out the 2 rows by 3 pairs of columns. Is there any way to specify it like this:
name1 & value1
name2 & value2
name3 & value3
name4 & value4
name5 & value5
name6 & value6
and then just tell it to wrap it into three (or whatever number we wish to specify) of column pairs?
EDIT:
Thanks, ArTourterless. Here is my attempt and a further question on how to complete it so that it looks like the tabu package approach.
First we try with the multicols and itemenum packages. Following that we have done it the hard way using the tabu package. The key thing that still seems missing from the multicols/itemenum approach is the horizontal blue lines. Anyone know how to get those?
\documentclass{article}
\usepackage{multicol}
\usepackage{enumitem}
\usepackage{tabu}
\usepackage[table]{xcolor}
\begin{document}
Using multicols/enumitem:
\begin{center}
\setlength{\columnseprule}{.4pt}
\renewcommand\columnseprulecolor{\color{blue}}
\begin{multicols}{2}
\begin{description}[font=\bfseries, leftmargin=2cm, style=nextline]
\item[Name1] Value1.
\item[Name2] Value2.
\item[Name3] Value3.
\end{description}
\end{multicols}
\end{center}
Using tabu (manually doing the layout ourself):
\begin{center}\small
\tabulinesep=1.5mm
\begin{tabu} {>{\bfseries}p{1cm}X |[blue] >{\bfseries}p{1cm}X }
\everyrow{\tabucline[blue]-}
Name1 & Value1. & Name3 & Value3. \\
Name2 & Value2. & & \\
\tabucline[blue]-
\end{tabu}
\end{center}
\end{document}
which looks like this:
EDIT 2: Have come up with another variation of the approach in EDIT 1. We can create a separate tabu table for each row and then put that in the multicols. If the number of columns do not evenly divide into the length of the data then the dividing lines will be different from the one tabu approach but otherwise seems very similar. Although there is extra entry for each row it does mean that we can get out of layout-specific code so its more flexible.
\documentclass{article}
\usepackage{multicol}
\usepackage{enumitem}
\usepackage{tabu}
\usepackage[table]{xcolor}
\begin{document}
\begin{center}\small
\setlength{\columnseprule}{.4pt}
\renewcommand\columnseprulecolor{\color{blue}}
\begin{multicols}{2}
\begin{tabu} {>{\bfseries}p{1cm}X}
Name1 & Value1. \\
\tabucline[blue]-
\end{tabu}
\begin{tabu} {>{\bfseries}p{1cm}X}
Name2 & Value2. \\
\tabucline[blue]-
\end{tabu}
\begin{tabu} {>{\bfseries}p{1cm}X}
Name3 & Value3. \\
\tabucline[blue]-
\end{tabu}
\end{multicols}
\end{center}
\end{document}
which looks like this:
EDIT 3:
Added screenshots.
itemize
ordescriptions
environments inside amulticols
in the past to get that sort of effect. but the colouring doesn't come with it.