# LaTeX example document - description lists and tables

Here's a sample LaTeX document where I'm experimenting with newenvironment, a definition list, and tables (the tabular environment. I don't have the output with me at the moment, but I think all of these worked correctly when using pdflatex (LaTeX PDF) and latex2html (LaTeX HTML).

\documentclass[a4paper,11pt]{article}
\author{Al Alexander}
\title{}
\begin{document}
\maketitle
\tableofcontents

% DESCRIPTION TEST

%\newcommand{\entrylabel}[1]{\mbox{\textsf{#1:}}\hfil}
%\newenvironment{entry}
%  {\begin{list}{}%
%     {\renewcommand{\makelabel}{\entrylabel}%
%     \setlength{\labelwidth}{35pt}%
%     \setlength{\leftmargin}{\labelwidth+\labelsep}%
%     }%
%  }%
%  {\end{list}}

{\begin{list}{}{%
\renewcommand{\makelabel}[1]{\textbf{##1}\hfil}%
\settowidth{\labelwidth}{\textbf{#1}}%
\setlength{\leftmargin}{\labelwidth+\labelsep}}}
{\end{list}}

\begin{deflist}
\item[Java]\mbox{}\\A great language for enterprise applications.
\item[Perl]\mbox{}\\A great language for CGI programs and text processing.
\item[C++]\mbox{}\\A difficult but fun language.
\end{deflist}

% TABLE TEST
% WANT TO SEE HOW THIS CONVERTS TO HTML

\begin{tabular}{|l|c|r|}
\hline
LANGUAGE & DESCRIPTION & SOMETHING\\
\hline
JAVA & A great language for enterprise applications. & R2C3\\
\hline
PERL & A great language for CGI programs and text processing. & R3C3\\
\hline
C++ & A difficult language. & R4C3\\
\hline
\end{tabular}

\end{document}