多行的行数多于其跨越的行数

多行的行数多于其跨越的行数

如果这个问题已经有人问过了,我很抱歉,但我找不到任何解决方案。当我有多行时,其高度大于所有行的跨度,这不会拉伸行的高度。在此处的示例中,以“高度不正确”开头的文本不会自动正确设置行的高度。


\documentclass[a4paper,oneside]{book}
\usepackage[pdfborder={0 0 0}, breaklinks=true, pdftex=true]{hyperref}
\usepackage[paper=a4paper, left=1.5cm, right=1cm, top=1.7cm, bottom=2.5cm]{geometry}
\usepackage{ltablex}
\usepackage{calc}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\usepackage{color}
\usepackage{colortbl}

%For tables
\newdimen{\newtblsparewidth}
\newdimen{\newtblstarfactor}
\setlength{\extrarowheight}{5pt}
\definecolor{Blue}{rgb}{0,0,1}
\definecolor{White}{rgb}{1,1,1}
\arrayrulewidth=1pt

\setlength{\parskip}{1.7ex}

\begin{document}

\section{Section}
This section defines options.

\setlength{\newtblsparewidth}{\linewidth-2\tabcolsep-2\tabcolsep-2\tabcolsep-2\tabcolsep}
\setlength{\newtblstarfactor}{\newtblsparewidth / \real{3}}

\begin{tabularx}{\linewidth}{X|X|l|}
\multicolumn{1}{|>{\columncolor{Blue}\color{White}}m{0.33\newtblsparewidth}}{\centering \textbf{Name}} & \multicolumn{1}{|>{\columncolor{Blue}\color{White}}m{0.33\newtblsparewidth}}{\centering \textbf{Possible values}} & \multicolumn{1}{|>{\columncolor{Blue}\color{White}}m{0.33\newtblsparewidth}|}{\centering \textbf{Description}} \\ *\nobreakhline
\multicolumn{1}{|m{0.33\newtblsparewidth}}{Enabled} & 
\multicolumn{1}{|m{0.33\newtblsparewidth}}{Boolean} & 
\multicolumn{1}{|m{0.33\newtblsparewidth}|}{Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been}
\\ \hline
\multicolumn{1}{|m{0.33\newtblsparewidth}}{Has user} & 
\multicolumn{1}{|m{0.33\newtblsparewidth}}{Integer} & 
\multicolumn{1}{|m{0.33\newtblsparewidth}|}{\multirow{2}{0.33\newtblsparewidth}{\textbf{Unproperly height} Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem 
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. 
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
}} \\ \cline{1-2}
\multicolumn{1}{|m{0.33\newtblsparewidth}}{Not User} & 
\multicolumn{1}{|m{0.33\newtblsparewidth}|}{Integer} & 
\multicolumn{1}{|l|}{} \\ \hline

\multicolumn{1}{|m{0.33\newtblsparewidth}}{Pass} & 
\multicolumn{1}{|m{0.33\newtblsparewidth}}{String} & 
\multicolumn{1}{|m{0.33\newtblsparewidth}|}{Lorem Ipsum is simply dummy text of the printing and typesetting industry. .} \\ \hline

\end{tabularx}

\end{document}

此文本将覆盖下一行。以下是 PDF 中的相同内容http://web-engineering.com.ua/mtest4.pdf

在这种情况下,如何强制自动调整行高?

相关内容