For some reason my "Languages" chapter is not appearing properly: it's as if parts of it were not respecting my page layout (see A on the screen-capture).
Also, and it's probably related, there's now a blank page right after "Chapter 1" when "chapter 2" should instead appear there (see B on the screen-capture).
Any help would be appreciated. Thank you.
% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper,oneside,centered]{book}
\special{papersize=210mm,297mm}
\usepackage[top=3cm, bottom=3.2cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage[english]{babel}
\usepackage{newpxtext} % Font for document instead of obsolete Palatino
\usepackage{tocloft} % Customization of TOC LOF LOT
\usepackage[table,xcdraw]{xcolor} % For shading in tables
\usepackage{pdfcolmk}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage{ltablex}
\usepackage{nicefrac} % to write fractions
\usepackage{attrib} % For source of quotations
\usepackage{lettrine} % For NewThought formatting
\usepackage{array} % To define width of columns in long table
\usepackage{booktabs} % Nicer spacing in columns
\usepackage{siunitx} % To write Celsius, etc.
\usepackage{enumitem} % To create item lists
\usepackage{caption} % To change way captions are labelled
\usepackage{scrextend}
\usepackage{threeparttable} % For table notes + To allow footnote material to stay with the tabular environment
\usepackage{etoolbox} % To make table footnote font smaller
\usepackage{threeparttablex}
\appto\TPTnoteSettings{\footnotesize}
% Creating Index
\usepackage{imakeidx}
\makeindex
%\indexsetup{othercode=\small}
%\makeindex[columns=3,title=Index,intoc,options={-s indexstyle.ist}]
%\usepackage{showidx} %To print all index entries in right margin to proofread entries
\usepackage{blindtext}
%\usepackage{showframe}
% Styling Chapter appearance
\usepackage[T1]{fontenc}
\usepackage{titlesec, color}
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}
{\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries}
\usepackage{hyperref} % Hyperlinks
\usepackage[toc]{glossaries}
\makeglossaries
%%%%%TEST_ZONE%%%%%%
\newglossaryentry{naiive}
{
name=na\"{\i}ve,
description={is a French loanword (adjective, form of naïf)
indicating having or showing a lack of experience,
understanding or sophistication}
}
%%%%%TEST_ZONE%%%%%%
%Table of Content depth
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{5}
\setlength{\parindent}{15pt}
%Hyperlinks for TOC
\makeatletter
\hypersetup{
colorlinks,
citecolor=blue,
filecolor=blue,
linkcolor=blue,
urlcolor=blue
}
\begin{document}
%\layout
% FRONTMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
\title{The Book of Wonders}
\maketitle
\tableofcontents
\clearpage
\listoftables
\clearpage
\thispagestyle{plain} % To not have "List of Tables appear" at the top of the "Preface" page
\section*{Preface}
\blindtext
\clearpage
\thispagestyle{plain} % To not have "List of Tables appear" at the top of the "Preface" page
\section*{Introduction}
\blindtext
\clearpage
% MAINMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\chapter{The Story}
\section{Data}
\index{Plants}
\index{star}
\index{Mu}
\index{Sinis}
\index{Ball}
\chapter{Languages}
\section{Pronunciation}
\section{Scripts}
\subsection{Tina}
\subsubsection{Consonants}
\subsubsection{Vowels}
\subsubsection{Numerals}
\subsubsection{Special Symbols}
\subsection{Anna}
\subsubsection{Consonants}
\subsubsection{Vowel Diacritics}
\subsubsection{Diphthongal Diacritics}
\subsubsection{Numerals}
\subsubsection{Special Symbols}
\subsubsection{Common Determinatives}
\subsection{Herbert}
\subsubsection{Consonants}
\subsubsection{Vowel Diacritics}
\subsubsection{Consonants}
\subsubsection{Vowels}
\subsubsection{Numerals}
\subsubsection{Special Symbols}
\subsection{Jennifer}
\subsubsection{Consonants}
\subsubsection{Vowel Diacritics}
\subsubsection{Special Symbols}
\subsection{Mike}
\subsubsection{Consonants}
\subsubsection{Vowel Diacritics}
\subsubsection{Special Symbols}
\subsection{Script Samples}
\backmatter
\printglossaries
\printindex
\end{document}

\section/\subsectioncommands. I tried to find a solution for that, but failed so far. – Timm Mar 09 '17 at 21:32abcor\mbox{]or any other visible or invisible text after each heading. (I am sure this is a duplicate, will find an older question) – David Carlisle Mar 09 '17 at 21:370/0equation and then I just passed out ;). – Timm Mar 09 '17 at 21:43