I have been having fun with the new system for producing publication-quality tables. I noticed, however, that exporting a table to -html- produces rather thick borders, while exporting the same table to -docx- or -pdf- (directly or via -tex-) produces thin borders. Here is a simple example
with screen grabs for html and pdf via LaTeX.

I believe this happens because Stata sets borders in html using -top-border-style:solid-, which makes the -width- of the border default to -medium-, or about 3 pixels. I wonder if there is any way to change the default border width.
I can, of course, change the border width for specific cells, but this is not easy. I can remove the vertical border by setting -border(right, pattern(nil))- for all cells, as shown in the manual. I can edit the top border by targeting -border-block-, and the bottom border by targeting level -.m- of -hlthstat-, but I can't figure out how to edit the middle one.
I also think it would be nice to make these edits without reference to specific variables and categories, so the styles can be saved and reused in different tables. Perhaps a way to target the table header and body and the first and last rows of these, as done in css.
Code:
webuse nhanes2l, clear table hlthstat region collect export table1.pdf, replace
I believe this happens because Stata sets borders in html using -top-border-style:solid-, which makes the -width- of the border default to -medium-, or about 3 pixels. I wonder if there is any way to change the default border width.
I can, of course, change the border width for specific cells, but this is not easy. I can remove the vertical border by setting -border(right, pattern(nil))- for all cells, as shown in the manual. I can edit the top border by targeting -border-block-, and the bottom border by targeting level -.m- of -hlthstat-, but I can't figure out how to edit the middle one.
I also think it would be nice to make these edits without reference to specific variables and categories, so the styles can be saved and reused in different tables. Perhaps a way to target the table header and body and the first and last rows of these, as done in css.
Comment