[OS X TeX] Coloring a line in listings environment

Peter Vamos P.Vamos at exeter.ac.uk
Thu Nov 11 19:43:04 CET 2010

Here is a (very) dirty hack, just by looking at your code - I don't 
know anything about the listings package. Will do for a one off. If 
you need this sort of thing more often then you should try to find 
out how to redefine the font used by Beamerm for listings and/or 
\verb. This is really a LaTeX/Beamer/listings question.

Only append below the end of your file where the changes I made 
occur. Hope that this helps



	morekeywords={subject, maketitle, tikz, use, package},

\frametitle{Using Tikz}
Create a new file and save it as \verb+workshop4.tex+. Enter the 
following lines.
\begin{lstlisting}[keywordstyle=\color{red},frame={rl}, escapeinside=!~]
\title{Exam \#2A}
\subject{Math 120}
\author{David Arnold}
\date{November 20, 2010}



\noindent Compile \verb+workshop4.tex+.


More information about the macostex-archives mailing list