I am seeking to create a table created in Stata, and output to LaTex format.
Below is my Stata code, and prior to running this I have specified the directory containing the top.tex and bot.tex files.
The Stata viewer produces what looks like a correctly formatted set of LaTex code.
However, the final command
returns the following error code:
/bin/bash: pdflatex: command not found
I would very much appreciate assistance or tips appropriate for someone without any LaTex experience.
Below is my Stata code, and prior to running this I have specified the directory containing the top.tex and bot.tex files.
HTML Code:
sysuse cancer, clear label var died "Patient died" la def ny 0 ”No” 1 ”Yes”, modify la val died ny recode studytime (min/10 = 1 "10 or less months") /// (11/20 = 2 "11 to 20 months") /// (21/30 = 3 "21 to 30 months") /// (31/max = 4 "31 or more months") /// , gen(stime) la var stime "To died or exp. end" tabout stime died using table1.txt, /// cells(freq col cum) format(0 1) clab(No. Col_% Cum_%) /// replace /// style(tex) bt cl1(2-10) cl2(2-4 5-7 8-10) font(bold) /// topf(top.tex) botf(bot.tex) topstr(14cm) botstr(cancer.dta)
However, the final command
HTML Code:
texify table1.txt
/bin/bash: pdflatex: command not found
I would very much appreciate assistance or tips appropriate for someone without any LaTex experience.
Comment