Hmisc icon indicating copy to clipboard operation
Hmisc copied to clipboard

Group labels with booktabs in latex

Open adrianadermon opened this issue 7 years ago • 2 comments

When I generate a table using the latex function with group labels that span several columns (using the cgroup and n.cgroup options), the function adds extra empty columns between the groups, and \cline{} commands that underline the group labels.

When the booktabs = TRUE option is used, it would be great if the function did not add any extra empty columns, but instead replaced the \cline{} commands with \cmidrule(lr){} from the booktabs package.

adrianadermon avatar Jul 07 '17 09:07 adrianadermon

Let's deal with the first problem first. For that one please provide a simple self-contained minimal working code example that fails, and state the version of Hmisc you are using.

harrelfe avatar Jul 07 '17 21:07 harrelfe

I think I might have been unclear - the first part is not a failure, the package is working exactly as intended. I just wanted to propose that the functionality be changed so that the \cmidrule command is used instead of adding empty columns between groups when using booktabs.

Sorry about the confusion, and thank you for providing this great package!

adrianadermon avatar Jul 07 '17 21:07 adrianadermon