We learn how to export TeX code from Maple and then import it into your own TeX documents.
Suppose that you want to take some Maple output and include it into an existing TeX file of yours (say a set of homework solutions). Here is what you do. Suppose Maple has exported a file foo.tex and you want to include the Maple output in your file bar.tex; copy the part of foo.tex between the lines \documentclass{......} and \begin{document} and insert them in the corresponding part of bar.tex, then copy the part of foo.tex between \begin{document} and \end{document} to the point in bar.tex where you want the Maple output to appear. You don't need the \pagestyle command.
Here is a tiny example. foo.tex was generated by Maple. bar.tex is a very short TeX document. foobar.tex contains the merged TeX code.