Generaltable formatting.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
shaikster
Posts: 9
Joined: Sat Sep 27, 2008 12:14 am

table formatting.

Post by shaikster »

I have a complicated table that I struggling to create in latex. I will try to ask my question based on an example below.

\begin{tabular}{|l|l|l|} \hline
\multicolumn{3}{|c|}{Schedulers} \\ \hline
\multirow{3}{*}{Immediate} & RR & Round Robin \\
& EF & Earliest First \\
& LL & Lightest Loaded \\ \hline
\multirow{4}{*}{Batch} & MM & Min-Min \\
& MX & Max-Min \\
& DL & Dynamic Level \\
& RC & Relative Cost \\ \hline
\multirow{4}{*}{Evolutionary} & PN & This paper \\
& ZO & Genetic Algorithm\\
& TA & Tabu search~\cite{GLOV1986j}\\
& SA & Simlulated Annealing \\ \hline
\end{tabular}

It is obvious from the above example that this table is a combination of \multirow and \multicolumn. I would like to know if I can create a \hline only for the RR & Round Robin columns (3rd line in example) without having the line cross the intermediate column. I would appreciate all your suggestions.

Thank you
Shaikster

Recommended reading 2024:

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

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

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

table formatting.

Post by Stefan Kottwitz »

Hi Shaikster,

try

Code: Select all

\cline{2-3}
instead of \hline.

Stefan
LaTeX.org admin
shaikster
Posts: 9
Joined: Sat Sep 27, 2008 12:14 am

Re: table formatting.

Post by shaikster »

Thanks Stefan..\cline worked for me..
Post Reply