Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • texdoc warning: (texdoc do not running; nothing to do)

    Hi, I am trying to include a latex code in a Stata do file using the texdoc.
    I tried to replicate the example found in Jann, Ben (2016), but I don't quite get the syntax of the code.

    I tried to run the following

    Code:
    texdoc init 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}
    Whenever I run this I get the following warning: (texdoc do not running; nothing to do)

    I am not familiar with the package; do I need to run

    Do I need to run
    Code:
    texdoc do myfile
    before the first block of code I reported?
    In that case, should "myfile" be created beforehand?



  • #2
    Edoardo, if you first save the file as "myfile.texdoc" then running this code should work:

    Code:
    texdoc do myfile.texdoc
    See the help file for more details.

    Comment


    • #3
      Originally posted by Anders Alexandersson View Post
      Edoardo, if you first save the file as "myfile.texdoc" then running this code should work:

      Code:
      texdoc do myfile.texdoc
      See the help file for more details.
      Thank you, Anders. However, when I do so it says that I am exceeding the system limits, even though I have
      Code:
      set matsize 11000
      Could you tell me what is specifically exceeding the limits and causing texdoc not to initialize properly?

      Comment


      • #4
        Edoardo, I would
        Code:
        set trace on
        and then try again in order to trace the execution of the code.

        Which version of Stata do you use and on which operating system?

        Comment

        Working...
        X