I have the content in a separate text file. Is it possible to import that between the \begin{document} and \end{document}? Is there an include option in LaTeX? Thank you!
Asked
Active
Viewed 346 times
1
Zoltan King
- 419
-
https://tex.stackexchange.com/q/246/263192 – Apr 15 '22 at 12:07
-
https://www.overleaf.com/learn/latex/Management_in_a_large_project – arara Apr 15 '22 at 13:56
-
1By "import", do you mean to read it into the document "as is" or do you mean, as in the case of structured data files, to read in content as a data array, so that individual pieces of the imported data can be extracted? – Steven B. Segletes Apr 15 '22 at 14:42
1 Answers
2
Your question is a bit cryptic, but if I understand you correctly you want a .tex file included. So you either use the \include{foo.tex} or \input{foo.tex} command.
Hoerbii3
- 148
-
Warning --
\includealways starts a new page;\inputdoesn't. And if the extension is.tex, it doesn't have to be stated. – barbara beeton Apr 26 '22 at 18:06