[Tex/LaTex] Importing .tex file in LaTeX

import

I am working on an econometric thesis, and I need to import my stata regression output to LaTeX. I have saved the results as a .tex file on my desktop, but the \include or \import commands don't seem to get the data into my LaTeX doc. Is there any alternate command that I should be using instead?

Best Answer

According to your question, you have saved the regression results as a .tex file on your desktop. However, it is not clear if the result is Latex source code or another data representation. You must check what is the content of the file.

As mentioned by David Beauchemin, you can produce Latex files inside Stata using the texdoc module/command. You may check many websites and slides explaining how to produce latex content using that module.

Once you have a file in Latex, you may "import" that file using \input. There is an import latex module that adds supports for the mentioned commands \import and \subimport. However, if you are not creating very complex documents, you may import the file without using this module.

If you have a file in another format, you must find which it is. Depending on the format, you may find other Latex modules to include the content in your documents.

Related Question