I am in need of urgent help regarding formatting the table of contents in Latex. In the thesis preparation guidelines provided by our university, the table of contents, list of figures and list of tables details should be enclosed within a table as shown below:
In this connection, my question is How to generate the TOC, LOF, and LOT automatically in the above mentioned format using LyX.

22. The TOC as a tablewhich provides an example, together with the neededetocstyle specifications. This should work for any document with only parts, sections, subsections. The\hypersetup{hidelinks}shoud be removed if you don't use packagehyperref. I don't knowLyXand I thus suspect that the rawLaTeXcode from thisetocdocumentation will prove discomcerting. – Oct 21 '15 at 06:34:). BTW, in LyX, you need redefine the behaviour of\listoffiguresLaTeX command inDocument>Settings>LaTeX Preamblejust as in plain LaTeX files (usingetocor something else) and then useInsert>List/TOC>List of Figuresin the main screen as usual in LyX. – Fran Oct 21 '15 at 07:52etochandles only tables of contents, notlist of figuresnorlist of tables... sorry about that. – Oct 21 '15 at 10:44