By Alvin Alexander. Last updated: December 20, 2022
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}}
\newenvironment{deflist}[1][\quad]%
{\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}
While I’m in the neighborhood, here are some other LaTeX commands I have used recently:
% INDEXING
The audiences\index{book!audience} yada yada
this book\index{book!goals}
\index{Learning Cliff}% (i use this sentence with 'index' before sentences/paragraphs)
% TEXT
\textit{ZIO}
\textbf{created}
% ASIDE
\begin{aside}
This is an aside, yada
\end{aside}
\centeredquote{\large ``One learns by doing the thing.''}
% MISC
\ldots{}
100\%
\&
\\
\newline
\newpage
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
Item 1
\item
Item 2
\end{enumerate}
\vskip1cm
If you ever need to use LaTeX, I hope this is helpful.

