Graphics, Figures & Tablesaligning the contents in multirow.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

aligning the contents in multirow.

Post by dmuthu_cse »

Hello friends,

I would like to know if i can centerrise the content of \multirow item.

Here is the sample code of how i've created the table.

Code: Select all

\begin{tabular}{|c|c|c|c|c|c|}\hline
\multirow{2}{2in}{\textbf{Previous continuous loading as a \% of the rating}}	& \multicolumn{5}{c|}{\textbf{Over loading duration}}\\
 \cline{2-6}
I want "Previous continuous loading as a % of the rating" to be centered both horizontally and vertically.

Thanks in advance.

Regards,
Muthu

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

aligning the contents in multirow.

Post by Stefan Kottwitz »

Hi Muthu,

if you post incomplete sample code nobody can test it in order to suggest a working/tested solution.
So I suggest to use the optional fixup parameter for vertical adjustment, like written in the multirow package documentation:

Code: Select all

\multirow{number}{width}[fixup]{text}
fixup could be an appropriate distance.

Stefan
LaTeX.org admin
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

aligning the contents in multirow.

Post by dmuthu_cse »

Hello stefan,

sorry for the inconvenience happened in the previous post..

i really that, it would be total mess up if i would give u the whole table.

As you have told, i am herewith enclosing the full table. Now i want to know whether i can specify any width parameters to \multicolumn. Because my table is exceeding the needed width.. And it can be solved if some-how i can reduce the width of a particular column. i.e "Continuous Current rating" column

Code: Select all

\begin{table}[ht]
\caption{}
\centering
\begin{tabular}{ccccccccc}\toprule
\multicolumn{9}{c}{11/11 kV, Three Core Aluminium conductor, XLPE insulated and PVC sheathed,}\\
\multicolumn{9}{c}{Screened, Flat Strip armoured cables. [A2XFY (P)]}\\\midrule

\multirow{2}{0.6in}{Conductor Nominal Area} & \multirow{2}{0.6in}{Appx. Weight of cable} & \multirow{2}{0.6in}{Max DC Resistance at 20 $\textcelsius$} & \multirow{2}{0.6in}{Max DC Resistance at 90 $\textcelsius$} & \multirow{2}{0.6in}{Appx. Reactance at 50Hz} & \multirow{2}{0.6in}{	Appx. Capacitance per phase} & \multicolumn{2}{c}{Continuous Current rating} & \multirow{2}{0.6in}{Short circuit rating for one second}\\ 
& & & & & & In Ground at 20 $\textcelsius$ & In air at 30 $\textcelsius$ & \\\\\\\\
$mm^2$ & kg/km & $\textohm$/km & $\textohm$/km	& $\textohm$/km & $\mu$F/km & A & A & kA (rms) \\ \toprule
35 & 3560 & 0.8680 & 1.110 & 0.136 & 0.159 & 120 & 146 & 3.29\\
50 & 4000 & 0.6410 & 0.8220 & 0.129 & 0.175 & 141 & 174 & 4.7\\
70 & 4510 & 0.4430 & 0.5680 & 0.119 & 0.196 & 172 & 216 & 6.58\\
95 & 5130 & 0.3200 & 0.4110 & 0.113 & 0.224 & 205 & 260 & 8.93\\
120 & 5670 & 0.2530 & 0.3250 & 0.110 & 0.241 & 233 & 282 & 11.3\\
150 & 6220 & 0.2060 & 0.2650 & 0.106 & 0.259 & 261 & 321 & 14.1\\
185 & 6970 & 0.1640 & 0.2110 & 0.103 & 0.281 & 294 & 364 & 17.4\\
240 & 7990 & 0.1250 & 0.1620 & 0.0985 & 0.314 & 340 & 429 & 22.6\\\bottomrule
\end{tabular}
\end{table}
My output size is 6in(width) x 8in{height)..

Thanks in advance for your reply.

Regards,
Muthu
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

aligning the contents in multirow.

Post by Stefan Kottwitz »

dmuthu_cse wrote:Now i want to know whether i can specify any width parameters to \multicolumn.
You could use a p-column, like

Code: Select all

\multicolumn{2}{p{0.6in}}{Continuous Current rating}
Stefan
LaTeX.org admin
Post Reply