I am writing my dissertation through LaTeX, and I want to insert the code from MAPLE, it is about 2 pages and I am not sure how to include the algorithm, do you have any idea how am I going to do it?
Asked
Active
Viewed 3,911 times
1 Answers
4
Maple (I assume you are talking about http://www.maplesoft.com/) has a built in style for including Maple code to the LaTeX environment.
What you do is simply locate you installation directory:
~/apps/maple15/
is my installation directory. If you are on a Windows machine it will be something like:
C:\Program Files\MapleSoft\Maple15
Within a folder named etc is located. In that style files and definitions used for Maple is located, you should see the following files:
maple2e.sty
mapleenv.sty
maplestd2e.sty
mapletab.sty
mapleenv.def
mapleplots.sty
maplestyle.sty
mapleutil.sty
if you use the built in Maple to LaTeX exporter you simply need to add these style files and definitions to your path.
I.e. copy them to your TeX file and compile.
I have attached a small output of an as-is output:

It has the last section folded in.
nickpapior
- 17,275
epstopdfpackage. But... it doesn't work. – User 17670 Mar 13 '13 at 19:51includegraphicsis and make sure that it refers to the correct file. Make sure that the file ending is correct (you could try and add/remove it). – nickpapior Mar 13 '13 at 20:04includegraphicsline in the code. Should there be? All I did was this: clicked File>Export>LaTeX. – User 17670 Mar 13 '13 at 21:57\mapleplot{figurename.eps}and change that to\mapleplot{figurename}, thenpdflatexwill automatically grab the PDF version of the file. Remember that you have to have runnedeps2pdfon figurename.eps before. – nickpapior Mar 13 '13 at 22:06graphicxpackage. I don't know which of these fixed it. This is what I hate about LaTeX. – User 17670 Mar 13 '13 at 22:34