[Tuglist] Demo of mutirow

H.S.Rai tuglist@tug.org.in
Thu, 28 Feb 2002 20:05:10 +0530 (IST)


On Thu, 28 Feb 2002, Ajay Shah wrote:

>  It would be great if you could do a small file which
>  is a demo of multirow.sty and bigstruct.sty and send
>  it to the mailing list with a clear email explaining
>  what you are trying and where this fits.

Please find appended content of 'demo.tex' file. See its
results. First table is using mutirow and bigstruct and
second without these, for the same purpose. The
difference between two should explain the rest thing. All
depends on one's requirement.

H.S.Rai

	------------------------------------------------
		demo.tex
	------------------------------------------------

\documentclass{article}
\usepackage{rotating}
\usepackage{multirow}
\usepackage{bigstrut}

\begin{document}

\begin{tabular}{|r|c|c|r|}  \hline
S.No.&Sex &Age &Income \\  \hline \hline
1&\multirow{6}[12]*{\begin{sideways}Males from Delhi\end{sideways}} &21 &20,000 \bigstrut \\  \cline{1-1} \cline{3-4}
2& &24 &30,000 \bigstrut \\  \cline{1-1} \cline{3-4}
3& &21 &20,000 \bigstrut \\  \cline{1-1} \cline{3-4}
4& &24 &30,000 \bigstrut \\  \cline{1-1} \cline{3-4}
5& &21 &20,000 \bigstrut \\  \cline{1-1} \cline{3-4}
6& &24 &30,000 \bigstrut \\  \hline
7&\multirow{8}[16]*{\begin{sideways}Females from Chandigarh\end{sideways}} &18 &12,000\bigstrut  \\  \cline{1-1} \cline{3-4}
8& &19 &6,000 \bigstrut \\  \cline{1-1} \cline{3-4}
9& &18 &12,000\bigstrut  \\ \cline{1-1} \cline{3-4}
10& &19 &6,000\bigstrut  \\ \cline{1-1} \cline{3-4}
11& &18 &12,000\bigstrut  \\ \cline{1-1} \cline{3-4}
12& &19 &6,000 \bigstrut \\  \cline{1-1} \cline{3-4}
13& &18 &12,000\bigstrut  \\ \cline{1-1} \cline{3-4}
14& &19 &6,000 \bigstrut \\  \hline
\end{tabular}
\begin{tabular}{|r|c|c|r|}  \hline
S.No.&Sex &Age &Income \\  \hline \hline
1&M &21 &20,000 \\  \hline
2&M &24 &30,000 \\  \hline
3&M &21 &20,000 \\  \hline
4&M &24 &30,000 \\  \hline
5&M &21 &20,000 \\  \hline
6&M &24 &30,000 \\  \hline
7&F &18 &12,000 \\  \hline
8&F &19 &6,000 \\  \hline
9&F &18 &12,000 \\  \hline
10&F &19 &6,000 \\  \hline
11&F &18 &12,000 \\  \hline
12&F &19 &6,000 \\  \hline
13&F &18 &12,000 \\  \hline
14&F &19 &6,000 \\  \hline
\end{tabular}

\end{document}

	---------------- End of file -----------------