I am using Julian Reif's -texsave- to create some tables, but I would like to use other packages that alter the look of the table that are not supported. Currently, I am using the line editor ex to insert the usepackage on line 6 of the tex file after it is created:
Is there a more elegant way of doing this that I am missing?
Code:
#delimit;
sysuse auto, clear;
keep in 1/10;
texsave price mpg using "results.tex"
, title("Some Cars Data")
headlines("\captionsetup[table]{labelformat=empty}")
headerlines("\pagenumbering{gobble}")
varlabels landscape replace;
/* insert usepackge on line 6 */
!ex -sc '6i|\usepackage{caption}' -cx results.tex;
!/Library/TeX/texbin/pdflatex results.tex;
!open results.pdf;

Comment