\documentclass[12pt]{scrartcl}
\usepackage{longtable}
\begin{document}
\begin{longtable}{|c|c|}
a & b \\
\multicolumn{2}{c}{Multi-column}
\end{longtable}
\end{document}
adding the multicolumn stretches out the other columns. Can I choose a length for the multicolumn which is the existing length of the table, normally of the form p{...}, so that the text will wrap?
So it might look something like
\multicolumn{2}{p{\textwidth}}{Multi-column}
which is obviously not the correct choice, because \textwidth is the width of the page.
@daleif Your examples in threeparttablex aren't complete/selfcontained. I.e. one would need to add some frontmatter etc. Is there some reason for that?
@FaheemMitha I think I have an answer on site somewhere, you can get the column widths from the aux file of the previous run and make a suittable p entry,
What is the official user documentation for things like \NewDocumentCommand, which used to be only in the xparse package, but nowadays are integrated into the module ltcmd.dtx of the LaTeX 2ε-kernel?
@DavidCarlisle Thank you very much. I was asked this question and I didn't know the answer off the top of my head. Maybe I looked in the wrong places, but I didn't find this in either usrguide or source2e. So I referred to the xparse documentation.
@mickep yes we tell users they can use \newcommand or \NewDocumentCommand but split the manual into usrguide or usrguide3 depending on which century the command was integrated into the format.
@UlrikeFischer just noticed (again) \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi in my emacs buffer while I was looking for something else, and thought that looks like a bug waiting to happen....