I'm curious as to whether it's possible to insert an entire separate file into a LaTeX document as an inline command. For example, I have the following LaTeX code:
\begin{Verbatim}[frame=single]
%Want to insert all the text from another file here
\end{Verbatim}
So where it says %Want to insert... I'd like to insert all of the text from another file (in the same directory) into the .tex document so that the text in the other file appears in a box in the .tex document.
I hope that's clear, if not I'll clarify in the comments.
doc.tex, use\VerbatimInput{doc.tex}. Also, you may want to comment out (use%) thecommandcharsandcommentcharkeys until you understand what they do. – nnunes Feb 25 '13 at 16:23\usepackage{verbatim}and then\verbatiminput{frame-single}. (i use this all the time to include the source of a file in its own output with\verbatiminput{\jobname.tex}, a great way to document tests and "how to" exercises.) – barbara beeton Feb 27 '13 at 21:22fancyvrbyou find\VerbatimInput; I'd say that\VerbatimInput[frame=single]{myfile.txt}is what you're looking for. – egreg Mar 07 '13 at 11:22