(This is my first post).
I am preparing slides for pdflatex and beamer (on Linux/Ubuntu/Karmic) on my MELT. So I need to show both C code fragments and Lisp-like cod fragments. I am using the alltt package (I don't want to change that to e.g. listings, because I have many examples in an LLNCS paper submission), and I want to show in different colors C code and Lisp code.
So I have code like
Code: Select all
\documentclass[svgnames]{beamer}
\usepackage{alltt}
\newenvironment{mycfrag}{\color{DarkMagenta}\begin{alltt}}{\end{alltt}}
Code: Select all
\begin{mycfrag}
\textbf{struct} \{ melt\_t objclass;
ushort objnum, objlent;
\end{mycfrag}
Any clues?
Respectful regards.
Basile Starynkevitch