Redundant \cmidrule commands in formal tables
Jürgen Spitzmüller
spitz at lyx.org
Fri Sep 18 06:39:07 UTC 2020
Am Freitag, den 18.09.2020, 17:53 +1200 schrieb Andrew Parsloe:
> I notice when creating a title for a number of columns in a formal
> table
> that the \cmidrule command is needlessly duplicated:
>
> \begin{tabular}{ccccc}
> \toprule
> & \multicolumn{4}{c}{title}\tabularnewline
> \cmidrule{2-5} \cmidrule{3-5} \cmidrule{4-5} \cmidrule{5-5}
> x & 1 & 2 & 3 & 4\tabularnewline
> \midrule
> 1 & b & l & a & h\tabularnewline
> 2 & b & l & a & h\tabularnewline
> \bottomrule
> \end{tabular}
>
> Although the table compiles without problems, \cmidrule{2-5}
> suffices.
Please post a minimal example file.
Jürgen
>
> Andrew
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200918/9b822765/attachment.asc>
More information about the lyx-devel
mailing list