0

我在 Latex 中创建表格时遇到了这个问题。

所以我想创建一个表,但是当我使用\cline它时

错误 !段落在 \@cline 完成之前结束。\par

以及更多。

我正在使用\usepackage{multiraw},\usepackage{tabulary}表。

桌子:

\begin{table}  
\centering  
\begin{tabular}{|c|c|c|c|c|c|c|}  
\hline  
\multirow{2}{*}{laktóza $ [\mathrm{mmol \cdot dm^{-3}}] $} & \multirow{2}{*}{} & \multicolumn{5}{c|}{ONPG $ [\mathrm{mmol \cdot dm^{-3}}] $} \\ \  
& & \multicolumn{1}{c|}{0,10} & \multicolumn{1}{c|}{0,25} & \multicolumn{1}{c|}{0,50} & \multicolumn{1}{c|}{1,0} & \multicolumn{1}{c|}{2,0} \\ \  
\hline  
\multirow{2}{*}{0} & $ V_{ONPG} \enskip [\mathrm{\mu l}] $ & 10 & 25 & 50 & 100 & 200 \\ \cline{2-7}
& $ V_{roztok \enskip Z} \enskip [\mathrm{\mu l}] $ & 990 & 975 & 950 & 900 & 800 \\ \  \hline  
\end{tabular}  
\end{table}

感谢您的每一个帮助。

4

1 回答 1

1
\documentclass{article}

\usepackage{multirow}
\usepackage{tabulary}

\begin{document}

\begin{table}
\centering
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{laktóza $ [\mathrm{mmol \cdot dm^{-3}}] $} & \multirow{2}{*}{} & \multicolumn{5}{c|}{ONPG $ [\mathrm{mmol \cdot dm^{-3}}] $} \\
 & & \multicolumn{1}{c|}{0,10} & \multicolumn{1}{c|}{0,25} & \multicolumn{1}{c|}{0,50} & \multicolumn{1}{c|}{1,0} & \multicolumn{1}{c|}{2,0} \\
\hline
\multirow{2}{*}{0} & $ V_{ONPG} \enskip [\mathrm{\mu l}] $ & 10 & 25 & 50 & 100 & 200 \\
\cline{2-7}
 & $ V_{roztok \enskip Z} \enskip [\mathrm{\mu l}] $ & 990 & 975 & 950 & 900 & 800 \\
\hline  
\end{tabular}  
\end{table}

\end{document}

此代码编译,输出现在应该看起来像您的想法:

输出pdf截图

之前和之后\的一些不应该是并产生错误(将您的代码的第 5、6 和 9 行与我的代码进行比较)。\\\hline

于 2015-04-11T18:24:45.477 回答