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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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