Redundant \cmidrule commands in formal tables

Andrew Parsloe ajparsloe at gmail.com
Fri Sep 18 06:16:50 UTC 2020


On 18/09/2020 5:53 pm, Andrew Parsloe wrote:
> 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.
>
> Andrew
>
I should have added that this is with 2.3.5.2 on windows 10. I notice 
that some work has been done on formal tables for LyX 2.4. Perhaps it 
has already been fixed?

Andrew



More information about the lyx-devel mailing list