I have a problem for making the table of contents in latex.
- Latex is making a blank page after the table of contents how to eliminate it?
- I want to reduce the font of the word Contents by setting the font Large
- I want to move the Content on the top of the page
- In the actual table of content the
\subsubsectiondo not appear in the table of content - I have four latex files. Do you suggest to join all the files in one latex or it would be better to keep them separate? I also have different style of numbering pages for the first 4 pages with roman letter instead the rest of the thesis is in arabic letter.
I just put the preamble and the latex option for the table of content
\documentclass[10pt,a4paper,titlepage]{book}
\usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}
%\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}%
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{empheq, nccmath}
%\usepackage{amsmath}
% \usepackage[overload]{empheq}
\usepackage{empheq, nccmath}
\usepackage{amsfonts}
\usepackage{showframe}
\usepackage{cases}
\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{
<-6> mathx5 <6-7> mathx6 <7-8> mathx7
<8-9> mathx8 <9-10> mathx9
<10-12> mathx10 <12-> mathx12
}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}
\DeclareMathAccent{\widebar}{0}{mathx}{"73}
%\usepackage{rotating}
\usepackage{subfloat}
\usepackage{subcaption}
\usepackage{adjustbox}
\usepackage{showframe}
\usepackage{fontspec}
\usepackage{lineno}
%\linenumbers
%\renewcommand{\baselinestretch}{1.8}
\setlength{\parindent}{4em}
\pagenumbering{arabic}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%\bibliographystyle{plain}
\renewcommand\thesection{\arabic{section}}
\setcounter{secnumdepth}{5}
\usepackage{epstopdf}
\usepackage{nomencl}
\makenomenclature
\usepackage{cases}
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{Symbols}{%
\ifstrequal{#1}{B}{Subscripts}{%
\ifstrequal{#1}{C}{Superscripts}{%
\ifstrequal{#1}{D}{Acronyms{}}}}}%
]}
% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\usepackage{titlesec}
\titleformat*{\section}{\bfseries\Large}
%\usepackage{imakeidx}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section{Hello}
..
\subsection{Hello 1.1}
..
\subsubsection{Hello1.1.1}
..
\section{Road}
..
\section{Road}
..
\section{Road}
...
\end{document}}


\setcounter{tocdepth}{3}to make the\subsubsections to show up in the ToC! – May 26 '16 at 11:08Contentstitle upwards is explained in the answers to this question here: http://tex.stackexchange.com/questions/62125/how-to-remove-top-margin-above-tableofcontents/311055#311055 – May 26 '16 at 11:18