[Tugindia] How to draw Boxes in toc

Manjunatha G. manju at rri.res.in
Fri Jun 4 13:04:10 CEST 2010


Hi!
Use the following to get a table like you want..

\documentclass[]{article}
\begin{document}
\begin{table}
   \begin{center}
     \begin{tabular}{*{3}{|l}|}
       \hline
       Sl. & Chapter Name & Pg. No.\\
       \hline
       1 & Chapter 1 & 1 \\
         & 1.1 Subsec 1 & 2\\
       \hline
       2 & Chapter 2 & 5\\
       \hline
     \end{tabular}
     \caption{..}
   \end{center}
\end{table}
\end{document}

On Fri, 4 Jun 2010, Anil C R wrote:

> Hi all,
> I need make the toc look like a table...
> I want it to be something like this:
> __________________________________
> |Sl. | Chapter Name | Pg. no |
> |____|______________|________|
> |1   | Chapter 1    |       1|
> |    |  1.1subsec1  |       2|
> |____|______________|________|
> |2   | Chapter 2    |       5|
> |____|______________|________|
>
> Anil
> _______________________________________________
> Home:        http://www.tug.org.in/
> TeX FAQ:     http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia
>


More information about the tugindia mailing list