`'diff()`

) well. So, how to include listings of Maxima code in Latex?It turns out to be really easy to define your own language in the preamble of the document.

\lstdefinelanguage{Maxima}{

keywords={addrow,addcol,zeromatrix,ident,augcoefmatrix,ratsubst,diff,ev,tex,%

with_stdout,nouns,express,depends,load,submatrix,div,grad,curl,%

rootscontract,solve,part,assume,sqrt,integrate,abs,inf,exp},

sensitive=true,

comment=[n][\itshape]{/*}{*/}

}

All this definition does is italicize comments and bold face the keywords, which is sufficient to make the code more readable and pleasant looking. Here's an example screenshot of the results: