Here are some tips:

  • Use a \multicolumn{1}{|l}{} & \multicolumn{2}{l|}{...} construct;
  • Add another \multicolumn{2}{c|}{} to the second row; and
  • Use an additional \cline{1-1} to insert a rule between elements in the first column.

\documentclass[a4paper,12pt]{report}
\usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.75in]{geometry}
\usepackage[sc]{mathpazo}
\usepackage{multirow}
\begin{document}
\begin{table}[!htb]
\centering
\caption{Present Strength-Production}
\begin{tabular}{|c|l|l|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{Sl.No} &
\multicolumn{2}{c|}{\multirow{2}{*}{\textbf{Designation}}} &
\multicolumn{4}{c|}{\textbf{Shifts}} & \textbf{Leave/Off} &
\multirow{2}{*}{\textbf{Total}} \\
\cline{4-7}
& \multicolumn{2}{c|}{} & \textbf{A} & \textbf{B} & \textbf{C} & \textbf{G} & \textbf{Reserve} & \\
\hline
1 & \multicolumn{2}{l|}{Plant Engineer} & & & & 1 & & 1 \\
\hline
\multicolumn{1}{|l}{} & \multicolumn{2}{l|}{\textbf{Sub Total}} & & & & \textbf{1} & & \textbf{1} \\
\hline
2 & \multirow{2}{*}{Operator}&Work related to water regeneration & 1 & 1 & 1 & & 1 & 4 \\
\cline{1-1}\cline{3-9}
3 & & Work related to valve control & 1 & 1 & 1 & & 1 & 4 \\
\hline
\multicolumn{1}{|l}{} & \multicolumn{2}{l|}{\textbf{Sub Total}} & \textbf{2} & \textbf{2} & \textbf{2} & & \textbf{2} & \textbf{8} \\
\hline
1 & \multicolumn{2}{l|}{Worker} & 2 & 2 & 2 & & 2 & 8 \\
\hline
\multicolumn{1}{|l}{} & \multicolumn{2}{l|}{\textbf{Sub Total}} & \textbf{2} & \textbf{2} & \textbf{2} & & \textbf{2} & \textbf{8} \\
\hline \hline
\multicolumn{1}{|l}{} & \multicolumn{2}{l|}{\textbf{Total}} & \textbf{4} & \textbf{4} & \textbf{4}
& \textbf{1} & \textbf{4} & \textbf{17} \\
\hline
\end{tabular}
\label{tab:pro_pro}
\end{table}
\end{document}

  

 

Latex 的Table使用multirow and multicolumn的更多相关文章

  1. Footnotes for tables in latex - 为latex的table加上footnotes

    参考: Footnotes for tables in LaTeX Footnote in tabular environment Footnotes for tables in latex - 为l ...

  2. LaTex 制作表格 合并行\multirow 合并列\multicolumn

    在latex文件最前面用这个包\usepackage{multirow} multirow 宏包提供了 \multirow 命令可以在表格中排版横跨两行以上的文本.命令的格式如下: \multirow ...

  3. {Notes}{Latex}{multirow}

    这个文章写的真的太牛比了! ============================================================ 在latex文件最前面用这个包\usepackag ...

  4. Latex:表格制作全攻略

    给出一个制作复杂表格的例子,制作表格主要用到multicolumn,multirow和cline,其中,要使用multirow,必须usepackage{multirow} 如果要制作出如下图所示的表 ...

  5. 【LaTeX】E喵的LaTeX新手入门教程(4)图表

    这里说的不是用LaTeX画图,而是插入已经画好的图片..想看画图可以把滚动条拉到底.前情回顾[LaTeX]E喵的LaTeX新手入门教程(1)准备篇 [LaTeX]E喵的LaTeX新手入门教程(2)基础 ...

  6. Latex 表格(跨行、跨列、背景加灰)new

    一. 效果如图 二.代码如下 1. 首部增加宏包: \usepackage{multirow} 2. 正文部分增加: \begin{table} \centering \caption{Suspici ...

  7. latex制作表格-跨行跨列

    1.列的合并,使用 \multicolumn{跨几列}{格式}{填充内容} \documentclass[UTF8]{ctexart} \begin{document} 三囚犯问题进行300次实验后\ ...

  8. sqoop的安装与使用

    1.什么是Sqoop Sqoop即 SQL to Hadoop ,是一款方便的在传统型数据库与Hadoop之间进行数据迁移的工具.充分利用MapReduce并行特点以批处理的方式加快传输数据.发展至今 ...

  9. spark集群搭建整理之解决亿级人群标签问题

    最近在做一个人群标签的项目,也就是根据客户的一些交易行为自动给客户打标签,而这些标签更有利于我们做商品推荐,目前打上标签的数据已达5亿+, 用户量大概1亿+,项目需求就是根据各种组合条件寻找标签和人群 ...

随机推荐

  1. jpda

    http://www.ibm.com/developerworks/cn/java/j-lo-jpda1/ 远程调试用rmi通信,被调试端需要启动一个调试服务器,用命令jsadebugd. java/ ...

  2. struts2整合spring应用实例

    我们知道struts1与spring整合是靠org.springframework.web.struts.DelegatingActionProxy来实现的,以下通过具体一个用户登录实现来说明stru ...

  3. Fusioncharts图表组件API参考方法(Functions)汇总篇(续)

    [摘要]: chartType()FusionCharts的JavaScript类API提供了大量的功能.下面的列表显示在每个功能的详细信息: 一.FusionCharts的类 - 实例功能 1.co ...

  4. s-palindrome

    s-palindrome Let's call a string "s-palindrome" if it is symmetric about the middle of the ...

  5. FZU 2122 又见LKity(KMP+返回所有匹配位置)

    基础kmp应用,找到所有匹配位置即可 #include<stdio.h> #include<string.h> #include<algorithm> #inclu ...

  6. android开发中应该注意的问题

    1. Activity可继承自BaseActivity,便于统一风格与处理公共事件,构建对话框统一构建器的建立,万一需要整体变动,一处修改到处有效.   2. 数据库表段字段常量和SQL逻辑分离,更清 ...

  7. PAT (Advanced Level) 1050. String Subtraction (20)

    简单题. #include<iostream> #include<cstring> #include<cmath> #include<algorithm> ...

  8. mysql中变量character_set_connection的具体作用

    如题.通常的使用中,character_set_client,character_set_connection这两个变量的值是一样的,也就是说查询不需要进行编码转换.这样看来变量character_s ...

  9. decoder3_8

    这两天回归书本,继续阅读书上的内容,此时的体会与刚开始学那会的体会是不一样的,比如3_8decoder,之前就认为可以用case来写,而书上有一种更简便的方式来描述,带给你新的思路,既然有新方式可以描 ...

  10. js浏览器兼容

    //window.event   IE:有window.event对象   FF:没有window.event对象.可以通过给函数的参数传递event对象.如onmousemove=doMouseMo ...