my goal is to get new style of Table of Contents, new style of Chapter and new style of section. I there is one more: how to change itemize native symbol for a black square?
Table of Contents: text on the left side in the middle of two lines. And there is a big white space non normal one.
Chapter: number of chapter in a roman in a black box on the line above the chapter name, Name of chapter on right side, another line under name of Chapter
Section: I want to add a black square at the begining of each section name.
I appreciate that
thank You
Best Answer
You can use the packages
titlesec
for the titles of the sectional units, andtitletoc
for the entries in the ToC; a little example producing the layout for chapters and sections, and the redefinition of the label foritemize
to use a square (feel free to adjust the settings according to your needs):An image of the ToC showing the requested formatting for the entries, and an image of the first numbered chapter, showing the desired chapter titles formatting, the use of a black square in
itemize
and the section titles formatting:There's a little detail that deserves some thought: the black box used to typeset the chapter number; in the code above I used a
\parbox
of fixed width (I chose1cm
) and this will be insufficient for "large" roman numerals (such as VIII), One option is to increase the width of the\parbox
, but then small numerals (such as I) might not look good inside a too wide box. Another option is to have a default width of, say1cm
, and let the widht of the\parbox
increase just for those numbers requiring more spacing; here's now the code implementing this idea:An image of the titles for chapters I and XVIII: