So this is like a part 2 to my initial question here.
So pretty much, I'm recreating a thesis written in the 70's and want to maintain the bizarre sectioning practices that were used. The answer to my first post helped me solve the issue in the body text using titlesec, however I didn't get any help with the TOC as I didn't directly state it. Essentially, I want the following TOC; ignoring the indentation, this is exactly how the section titles appear correctly in the text.
I. INTRODUCTION ................................................. 1
A. Prairie Raspberry ........................................ 1
B. Research Objectives ...................................... 4
II. LITERATURE REVIEW ........................................... 6
A. Fruit Structure and Composition .......................... 6
1. Raspberry fruit structure ............................ 6
2. Raspberry fruit composition .......................... 6
III. MATERIALS AND METHODS ..................................... 29
A. Investigation of Juice Extraction ....................... 29
1. Materials ........................................... 29
a. Raspberry fruit ................................. 29
b. Enzymes ......................................... 30
2. Experimental Objectives.............................. 31
a. Enzyme, temperature and time .................... 31
b. Maceration, water dilution enzymes .............. 32
But what I'm getting is the following, with the chapters bolded.
1 INTRODUCTION 1
1.1 Prairie Raspberry ....................................... 1
1.2 Research Objectives ..................................... 4
2 LITERATURE REVIEW 6
2.1 Fruit Structure and Composition ......................... 6
2.1.1 Raspberry fruit structure ........................ 6
2.1.2 Raspberry fruit composition ...................... 6
3 MATERIALS AND METHODS 29
3.1 Investigation of Juice Extraction ...................... 29
3.1.1 Materials ....................................... 29
3.1.1.1 Raspberry fruit ........................ 29
3.1.1.2 Enzymes ................................ 30
3.1.2 Experimental Objectives.......................... 31
3.1.2.1 Enzyme, temperature and time ........... 31
3.1.2.2 Maceration, water dilution enzymes ..... 32
So what I need to figure out is
Make the number formatting a different style on a level basis, either Roman, Alph, arabic, or alph.
Get rid of the "tab" alignment. I want each section to have a uniformly increasing left indent, say 3em per level, and then a simple dot and space following the numbering.
This is proving very difficult. I have tried many combinations of options using titletoc's \titlecontents
and \dottedcontents
but I haven't been able to do this, especially the number formatting.
I'm not sure if I like the dotted system with the chapter entries even though this is how the original looked. The bolded look without dots could be nicer so I'd like to know how to keep that if I decide to as well.
Can anyone help me out?
p.s. the documentation for titlesec and titletoc is really confusing...
EDIT:
The above TOC is without any of my attempts at modifying the TOC. Here are some attempts I've made.
The following is how I solved the section titles in the body of the text itself using titlesec, thanks to the answer in my previous topic.
\titleformat{\chapter} % command
[hang] % shape
{\bfseries\huge} % format
{\Roman{chapter}.} % label
{0.5em} % sep
{} % before-code
[] % after-code
So I figured the following could work in the TOC...
\titlecontents*{chapter} % <section-type>
[0pt] % <left>
{\addvspace{1em}} % <above-code>
{\Roman{chapter}. } % <numbered-entry-format>
{} % <numberless-entry-format>
{} % <filler-page-format>
This one gives the dot and space correctly, but no character is printed where the roman rumerals should go and the page number is dropped. See the image below.
I also tried
\titlecontents*{chapter}%
[0pt]% left indent
{\addvspace{1em}}% stuff before
{\contentslabel{1em} }% before if there's a number
{}% before if there's no number
{\hfill\contentspage}% dots and page number
%[]% stuff after
This one doesn't have a working space or number formatting, but does get rid of the bold. All other examples I've had just do weird indenting, like the following.
\titlecontents{chapter}%
[3em]% left indent
{\addvspace{1em plus 0pt}\bfseries}% stuff before
{\contentslabel{3em}}% before if there's a number
{\hspace{-3em}}% before if there's no number
{\hfill\contentspage}% dots and page number
[\addvspace{0pt}]% stuff after
\dottedcontents{section}%
[5em]% left indent
{\addvspace{0pt}}% stuff before
{3.5em}% spacing of \contentslabel
{0.75em}% space between the dots
[\addvspace{0pt}]% stuff after
\dottedcontents{subsection}%
[7.5em]% left indent
{\addvspace{0pt}}% stuff before
{4.25em}% spacing of \contentslabel
{0.75em}% space between the dots
[\addvspace{0pt}]% stuff after
None of these work correctly, but I haven't been able to find any examples of people trying to do what I am.
I have received some success using the following, without any titletoc commands.
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\Alph{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}
\renewcommand{\thesubsubsection}{\alph{subsubsection}}
These do change the numbering to the right numbering format, but does not fix the indentation issue, see the image below.