Closed NilsEnevoldsen closed 8 years ago
Input:
sysuse auto eststo: quietly reg price weight estout using "example.tex", style(tex) replace drop(_cons) /// mgroups("mgroup", span erepeat(\cmidrule(lr){@span})) /// mlabels("mlabel", span erepeat(\cmidrule(lr){@span})) /// collabels("collabel", span erepeat(\cmidrule(lr){@span})) /// labcol("Qux", title("Foo" "Bar" "Baz")) eststo clear
Expected:
& Foo &mgroup \\\cmidrule(lr){3-3} & Bar &mlabel \\\cmidrule(lr){3-3} & Baz &collabel \\\cmidrule(lr){3-3} weight & Qux & 2.044063\\
Actual:
& Foo &mgroup \\\cmidrule(lr){2-2} & Bar &mlabel \\\cmidrule(lr){2-2} & Baz &collabel \\\cmidrule(lr){2-2} weight & Qux & 2.044063\\
When compiled with…
\documentclass{article} \usepackage{booktabs} \begin{document} \begin{tabular}{lcc} \input{example} \end{tabular} \end{document}
…the expected result is…
…and the actual result is:
Originally reported as “Issue with -@span- in -estout-” by Albert Sfredo, Statalist
Yes, bug. @span does not take into account the extra column created by labcol(). I'll try to post a fix.
@span
labcol()
This should now be fixed.
Input:
Expected:
Actual:
When compiled with…
…the expected result is…
…and the actual result is:
Originally reported as “Issue with -@span- in -estout-” by Albert Sfredo, Statalist