3

I want to make a the following table.

student   roll no.       lab report
-----------------------------------
                       1   2   3   4

how do I make it. I used multicolumn bt that give lab report at a level above "student" n "roll no." like

                         lab report
student  roll no.      1   2    3    4

but I dont want that I want all student, roll no. & lab report on same level.

this is what i get

but i want lab report to be in the same row as student, roll no.,presnt, perform & total and want 1(3), 2(3), 3(3), Assign(5) & lab t to b in the next row (in column of lab report).

\begin{table}[h]
    \scalebox{0.68} {
        \rowcolors{1}{cyan}{lightgray}
        \begin{tabular}{|m{2cm}|m{2.5cm}|m{1cm}|m{1cm}|m{1cm}|m{1.5cm}|m{1.5cm}|m{2.5cm}|m{2.5cm}|m{2cm}|}
            \hline
            &&\multicolumn{5}{| c }{Lab Report}&&&&\\
            \hline
            Student & Roll No.& 1(3) & 2(3) & 3(3) & Assign(5) & Lab T(15)& Present(15) & Perform(20) & Total(50) 
        \end{tabular}
    }           
    \caption{Lab Result }
    \label{result}
\end{table}
2
  • Welcome to TeX.SX! Please add a MWE of what you've tried so far.
    – TeXnician
    Apr 19, 2017 at 12:16
  • Please clarify. Your request is somewhat unclear.
    – God bless
    Apr 19, 2017 at 12:31

1 Answer 1

1

Since your request was quite convoluted and unclear, I apologise if I missed the crux of it. I tried my best.

From my understanding this should suffice:

\documentclass{article}

\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{array}

\begin{document}

\centering
\begin{tabular}{|c c|c c c c|c|c c|}
\cline{1-7}
Student & Roll No. & \multicolumn{5}{c|}{Lab Report} & \multicolumn{1}{c}{} \\ \hline
\multicolumn{2}{c|}{} & 1(3) & 2(3) & 3(3) & Assign(5) Lab T(15) & Present(15) & Perform(20) & Total(50) \\ \cline{3-9}
\end{tabular}

\end{document}

enter image description here

2
  • No, "Student roll no." should be on the first row. Apr 19, 2017 at 12:51
  • Well, I knew I messed something up. Thank you for your correction. Be assured that I will edit my answer ASAP.
    – God bless
    Apr 19, 2017 at 12:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .