harrelfe / Hmisc

Harrell Miscellaneous
Other
208 stars 81 forks source link

Group labels with booktabs in latex #78

Open adrianadermon opened 7 years ago

adrianadermon commented 7 years ago

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.

harrelfe commented 7 years ago

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.

adrianadermon commented 7 years ago

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!