I tried some combinations of packages to reach my combination of needs. But I wasn't successfull.
- multirow: cells spanning over more then one row
- hyphenation: should work automatic
- allignment: cell content top left alligned
- vspace: vertical space between lines of text in one cell
I am free in selecting a package even if that thing works. It should be able to run with XeLaTeX.
In that example the hypenation doesn't work in makecell
cells. But I need them to produce multirow
and multicolumn
cells. Even top-left alignment work in that cells. But I am not sure if that is the right way to find a solution for all my needs.
\documentclass{scrartcl}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=new]{german}
\usepackage{tabu}
%\usepackage{multirow}
\usepackage{makecell}
\usepackage{lipsum}
% multirow
% hyphenation automatic
% cell content aligned top left
% sometimes vertical space (or similar) between lines of text in one cell
\begin{document}
\newcommand{\mycline}[1]{%
\noalign{\vspace{-\arrayrulewidth}}\tabucline{#1}%
}
\noindent
\begin{tabu} to \textwidth {|X|X|X|}
\tabucline{-}
\multicolumn{3}{|l|}{Headline}\\\tabucline{-}
\multirowcell{3}[*][lt]{%
%\lipsum[10]
Mr Doe erreicht bis zur Überleitung drei Zeilen more much more super more%
}
&\makecell[lt]{line with\\
\phantom{0.5 baselineskip}\\
another line}&
word\\\mycline{2-}
&y&Mr Doe erreicht bis zur Überleitung drei
Zeilen more much more super more\\\mycline{-}
\end{tabu}
\end{document}
Best Answer
This is more an extended comment than answer (frankly said, i don't know haw to solve your problem as it is stated ...). I wonder if you ask yourself (when problems with table arises):
tabu
table environments (regardless to well known fact that it is buggy and not maintaned)?makecell
andmultirow
cells insideX
type columns (which by default don't break long lines into multi line text)?I did ask myself. Summarizing pros and cons of my answer I conclude, that for me is better to design the following alternative solution without use of
tabu
andmakecell
package, which fulfil all your demands for solution: