I'm writing up a homework set in LaTeX. I'm writing the theoretical parts of the homework using LaTeX, and the implementation in Matlab. I want to combine these two easily. My problem is:
How do you include the Matlab published .tex file in a separate LaTeX document?
I know LaTeX has packages which can import formatted Matlab code into a LaTeX document. You can also import Matlab-generated .eps figures. What I want to do is include the Matlab published .tex file (which includes the code and figures placed appropriately) using \include{publishedMfile.tex} in the middle of my LaTeX document. However, the published .tex file is designed to be standalone, so it has a preamble, which prevents me from including it.
Here's a sample Matlab published file: file.tex
standalonepackage, but would be good to be able to test it. – Peter Grill Oct 15 '11 at 00:41matlab-prettifierpackage; see this answer. – jub0bs Apr 28 '14 at 15:27