乳胶表多行多列

编程入门 行业动态 更新时间:2024-10-24 20:15:53
本文介绍了乳胶表多行多列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试在Latex中创建表,但没有成功.我尝试了不同的解决方案,但没人能解决我的问题. 我想创建一个表格,如下图所示:

I'm trying to create a table in Latex but without success. I tried different solutions but no one solves my problem. I would like create a table like the picture below:

任何人都可以在乳胶中显示如何做到这一点吗?

Can anyone show how to do this in latex please?

推荐答案

第一个草图可能如下:

\documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|c|c|c|c|c|c|} \hline \multirow{3}{*}{A} & \multicolumn{2}{c|}{User B} & % \multicolumn{2}{c|}{User C} & \multirow{3}{*}{D}\\ \cline{2-5} & \multicolumn{2}{c|}{Value} & \multicolumn{2}{c|}{Value} & \\ \cline{2-5} & B1 & B2 & C1 & C2 & \\ \hline & & & & & \\ \hline & & & & & \\ \hline % etc. ... \end{tabular} \end{document}

它产生:

附录:

\documentclass{article} \usepackage{multirow} \begin{document} {\sffamily % \begin{tabular}{|c|c|c|c|c|c|c|}% seven columns now, not six... \hline \multirow{3}{*}{A} & \multicolumn{2}{c|}{User B} & \multirow{3}{*}{X} & % \multicolumn{2}{c|}{User C} & \multirow{3}{*}{D}\\ \cline{2-3}\cline{5-6} & \multicolumn{2}{c|}{Value} & & \multicolumn{2}{c|}{Value} & \\ \cline{2-3}\cline{5-6} & B1 & B2 & & C1 & C2 & \\ \hline & & & & & & \\ \hline & & & & & & \\ \hline % etc. ... \end{tabular} }% \end{document}

产生:

请严格检查原始代码与后者之间的所有差异.

Please, critically check all the differences between the original code and this latter.

别忘了几个LaTeX软件包可以帮助您改善样式,尺寸和桌子间距:其中,我建议您看看 bigstrut .

Don't forget that several LaTeX packages can help you improving style, dimensions and spacing of your table: among these, I advise you to have a look at bigstrut.

也:

\documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|c|c|c|c|c|c|c|} \hline \multirow{3}{*}{A} & \multirow{3}{*}{X} & \multicolumn{2}{c|}{User B} & \multicolumn{2}{c|}{User C} & \multirow{3}{*}{D}\\ \cline{3-6} & & \multicolumn{2}{c|}{Value} & \multicolumn{2}{c|}{Value} & \\ \cline{3-6} & & B1 & B2 & C1 & C2 & \\ \hline & & & & & & \\ \hline \end{tabular} \end{document}

您现在应该可以对表格模型进行进一步的更改.

You should now be able to operate on your own further changes to the model of table.

更多推荐

乳胶表多行多列

本文发布于:2023-07-08 20:09:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1080210.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:乳胶   表多行多列

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!