I have a text file in the working directory of a latex document. I have created sections in the latex document. I would like to insert the contents of the text file in latex.
My reason for doing so is to simply the latex file into simple parts so that it is not over crowded. The text file may contain equations as well.
There is a verbatim package but I am not able to install it via the package manager in Miktex. I tried to install it via mpm --install verbatim
in the command line but it cannot find the package.
I am not sure if that is the right way. I hope someone can guide me in the right direction.
I am writing this answer with the help of comment from NickD.
foo.tex
\include{foo}
After compiling it, you should be able to see the imported contents from foo.tex