Hello everyone,
I have created the following example in a .do file and saved the .do file as "example.do". I want to take the lines of this do. file to latex.
Then I ran the following command:
It created three text files, namely :
and
and
.
Then I used latex to open text file
. When I wanted to create .pdf, I got the following message from latex:
Please let me know how I can add
to latex.
Thanks,
Hossein
I have created the following example in a .do file and saved the .do file as "example.do". I want to take the lines of this do. file to latex.
Code:
texdoc init "C:\example.tex", replace /*tex \documentclass{article} \usepackage{stata} \begin{document} \section*{Exercise 1} Open the 1978 Automobile Data and summarize the variables. tex*/ texdoc stlog sysuse auto summarize texdoc stlog close /*tex \section*{Exercise 2} Run a regression of price on milage and weight. tex*/ texdoc stlog regress price mpg weight texdoc stlog close /*tex \end{document} tex*/
Code:
texdoc do "C:\example", replace
It created three text files, namely :
Code:
example
Code:
example_1.log
Code:
example_2.log
Then I used latex to open text file
Code:
example
Code:
! LaTeX Error: File `stata.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \begin
Code:
`stata.sty'
Thanks,
Hossein
Comment