I want to build a table with a column of verbatim, but I don't want to use \verb command for every line (too many rows), how should I do it? I tried to use array package to define new column type but unsuccessful, anyone can shed some light? An example of what I wanna achieve:
\documentclass{article}
\begin{document}
\begin{tabular}{l l}
\verb|some text here| & some text here \\
\verb|some text here| & some text here \\
\verb|some text here| & some text here \\
\end{tabular}
\end{document}
- I need verbatim (instead of just
begin{tabular}{>{\ttfamily}l<{\ttfamily}}
as the first row contained many reserved characters.
Thank you!
shortvrb
package you might abbreviate to|text|
instead of\verb|text|
, but not less than this. Just think to the fact that you need some way for TeX to understand where the verbatim text ends.