Theses, Books, Title pages"MINI TABLE OF CONTENTS CHAPTER IN HEADS" adaptable to mini

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

"MINI TABLE OF CONTENTS CHAPTER IN HEADS" adaptable to mini

Post by templateuser »

regards

I was checking the document on which it relied, to create the template (http://cel.archives-ouvertes.fr/docs/00 ... liquee.pdf) and it seemed nice as "MINI TABLE HEADS oF cONTENTS CHAPTER iN "adapts content index, ie if there is only one section becomes small box, this is nice because if the template does not fit the content is static.

Try to find where this change to the code, compared to the original document, but I could not get it, if succeeds in placing the number of the chapter that I find very useful, and run a little table that also looks great mounted but I can not make it look adaptable.

thank you very much

caedvaur

Recommended reading 2024:

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

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

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

"MINI TABLE OF CONTENTS CHAPTER IN HEADS" adaptable to mini

Post by templateuser »

The box of the mini table of contents is defined in structure.tex:

Code: Select all

% Commenting the 3 lines below removes the small contents box in the chapter heading
\fill[color=ocre!10!white,opacity=.6] (1cm,0) rectangle (8cm,-7cm);%
\node[anchor=north west] at (1.1cm,.35cm) {\parbox[t][8cm][t]{6.5cm}{\huge\bfseries\flushleft \printcontents{l}{1}{\setcounter{tocdepth}{2}}}};%
It you want a box whose size is adapted to its contents, try instead (untested):

Code: Select all

% Commenting the 3 lines below removes the small contents box in the chapter heading
\node[anchor=north west,fill=ocre!10!white,opacity=.6,inner sep=1mm] at (1.1cm,.35cm) {\parbox[t][][t]{6.5cm}{\huge\bfseries\flushleft \printcontents{l}{1}{\setcounter{tocdepth}{2}}}};%
Mathias
Post Reply