\documentclass[11pt,a4paper]{article} %\usepackage{pdfsync} %% for pdfview (good PDF viewer for the Mac) %\usepackage[active]{srcltx} %% for xdvi \usepackage{verbatim} \usepackage{graphicx} \usepackage{parskip} %\usepackage{epsfig} \usepackage{url} \usepackage[colorlinks=true]{hyperref} \usepackage{listings} \usepackage{color} \usepackage{geometry} \geometry{textwidth=38em,textheight=44\baselineskip} \newcommand{\mycomment}[3]{{\ignorespaces\sffamily[~#1~(#2): #3~]}} \renewcommand{\mycomment}[3]{\ignorespaces\relax} \definecolor{Brown}{cmyk}{0,0.81,1,0.60} \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40} \definecolor{CadetBlue}{cmyk}{0.82,0.77,0.13,.4} \definecolor{lightlightgray}{gray}{0.9} \lstset{ %language=Java, % Code langugage basicstyle=\ttfamily \small, % Code font, Examples: \footnotesize, \ttfamily keywordstyle=\color{CadetBlue}, % Keywords font (‘*’ = uppercase) commentstyle=\color{OliveGreen}, % Comments