Hi all,
I've just finished with my thesis. Howerver, I'm facing a difficulty. Endeed, In my University, it's recommended a the begining of the thesis (french system) to print a Summary content on 2 pages maximum before the table of contents which comes at the end with all level sections in the document. I don't know how to persue this.
Please any help?
Rodrigue
Theses, Books, Title pages ⇒ How to display both Summary and Table of contents in the same document?
How to display both Summary and Table of contents in the same document?
The table of contents is inserted in your document by the
If you cannot find it there, it must be in a style file you are using, and in that case you have two alternatives: either you can edit that style file to delete the
Hope this helps!
\tableofcontents
command. So, you just have to change its position in your source.If you cannot find it there, it must be in a style file you are using, and in that case you have two alternatives: either you can edit that style file to delete the
\tableofcontents
there, or you should copy the style file to a file of your own under a different name, delete the command in it and edit your source to use this file instead of the original one. Finally you edit your source to add the command after your summary.Hope this helps!
How to display both Summary and Table of contents in the same document?
Hi migh and thanks for your reply
I'm going to follow up your description.
Thanks again
I'm going to follow up your description.
Thanks again
How to display both Summary and Table of contents in the same document?
Hello migh
May be there is a misunderstood or I don't get you well. I want to print the \tableofcontents twice in the same document. For the first time which comes at the begining of the document the contents is just a summary of a maximum chapters and sections. In the second print which now comes at the end of the document I print the contents again with all the entries. I know that I'll need to set the counter depth. I fixed it with \setcounter{tocdepth}{4}
When I put \tableofcontents at the begining after setting the counter to 1 and another \tableofcontents at the end after setting the counter to 4 it doesn't work.
Any idea?
May be there is a misunderstood or I don't get you well. I want to print the \tableofcontents twice in the same document. For the first time which comes at the begining of the document the contents is just a summary of a maximum chapters and sections. In the second print which now comes at the end of the document I print the contents again with all the entries. I know that I'll need to set the counter depth. I fixed it with \setcounter{tocdepth}{4}
When I put \tableofcontents at the begining after setting the counter to 1 and another \tableofcontents at the end after setting the counter to 4 it doesn't work.
Any idea?
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
How to display both Summary and Table of contents in the same document?
It would really, really help, if you would show us a
minimal working example, because a good answer highly depends on the used class and the packages used for the ToC. As you ignore the general recommendation to always show such a
minimal working example I can give you only some speculative code, that may help or not and that is not tested:
Note, you can use


Code: Select all
% Add this to the document preamble (after all packages have been loaded).
\makeatletter
\newcommand*{\tableofcontentssummary}{%
\begingroup
\value{tocdepth}=1\relax% usually show part, chapter and section only
\@fileswfalse
\renewcommand*{\contentsname}{Summary}%
\tableofcontents
\endgroup
}
\makeatother
\tableofcontentssummary
only somewhere before \tableofcontents
and it works only, if you additionally use \tableofcontents
. Otherwise the \ableofcontentssummary
will be empty.Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

How to display both Summary and Table of contents in the same document?
Hello Ijon Tichy,
Thank you very much. You have provided me the solution I wanted. It's working well now after adding that code in my preambule.
Thanks again
Thank you very much. You have provided me the solution I wanted. It's working well now after adding that code in my preambule.
Thanks again