I am trying to use verbatim inside a tabular but I am not getting the look I want. I have attached a screen-shot of the issue. It seems as verbatim is always placing blank lines before and after.
My latex source looks like this:
Code: Select all
\begin{table}
\renewcommand{\arraystretch}{1.3}
\caption{Linting checks}
\label{tab_lint}
\begin{center}
\begin{tabular}{|l|p{3cm}|p{3.5cm}|}
\hline
ID & Explanation & Example \\
\hline
RCAS & Illegal continuous assignment to a reg. &\begin{alltt}reg a;
assign a = 1;\end{alltt} \\
\hline
WPAS & Illegal procedural assignment to a wire. & \begin{verbatim}wire a;
always @(*)
a = 1;\end{verbatim}