我在Latex中创建表时遇到了这个问题。
所以我想要创建一个表,但是当我使用\cline时,它给了我
错误!段落结束前\@cline是完整的。
还有更多。
我用\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}谢谢你的帮助。
发布于 2015-04-11 18:24:45
\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}这段代码编译后的输出现在在您的想法中应该是这样的:

有些\在\\之后和\hline之前不应该出现错误,并产生错误(将代码的第5、6和9行与我的代码进行比较)。
https://stackoverflow.com/questions/29548657
复制相似问题