다중 열 테이블

다중 열 테이블

다음과 같은 테이블을 만들고 싶습니다.

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

어떻게 만들 수 있나요? 나는 "학생" n "롤 번호" 이상의 수준에서 실험실 보고서를 제공하는 여러 열 BT를 사용했습니다. 좋다

                         lab report
student  roll no.      1   2    3    4

하지만 나는 모든 학생을 원하는 것을 원하지 않습니다. 동일한 수준의 & 실험실 보고서.

이것이 내가 얻는 것입니다

하지만 나는 실험실 보고서가 학생과 같은 행에 있고, 롤 번호, 현재, 수행 및 합계가 있고 1(3), 2(3), 3(3), 할당(5) 및 실험실 t를 b에 넣기를 원합니다. 다음 행(실험 보고서 열)

\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}

답변1

귀하의 요청은 상당히 복잡하고 불분명하므로, 핵심을 놓친 경우 사과드립니다. 난 최선을 다 했어.

내 이해로는 이것으로 충분할 것이다:

\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}

여기에 이미지 설명을 입력하세요

관련 정보