Tuesday, 20 August 2013

Tabular p-column and environment gives strange output

Tabular p-column and environment gives strange output

The code below does produce a clearly too high column. The same effect can
also be seen with other environments (center, ...).

How can I use the p-column and have the correct height at the same time?
Code:
\documentclass{scrreprt}
\usepackage{listings}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{|p{1cm}|p{8cm}|}
\hline
A &%
\begin{lstlisting}
[1.67007,1.99831e-06,0.000413824]
\end{lstlisting} \\
\hline
\end{tabular}
\begin{tabular}{|p{1cm}|l|}
\hline
A &%
\begin{lstlisting}
[1.67007,1.99831e-06,0.000413824]
\end{lstlisting} \\
\hline
\end{tabular}
\end{document}

No comments:

Post a Comment