I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two setups without any changes occuring.
First:
\documentclass[12pt]{report}
\usepackage[compact]{titlesec}
\begin{document}
\chapter{Characters}
The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.
\end{document}
Second:
\documentclass[12pt]{report}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing{\chapter}{0pt}{0pt}{0pt}
\begin{document}
\chapter{Characters}
The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.
\end{document}
\defcommands inside amakeatletter,makeatlatterin the preamble — is it recommended? What is the difference between this approach and usingtitlesec's commands, if the two results look just the same? – tush Apr 30 '22 at 21:00titlesec, if compatible with your class. – egreg Apr 30 '22 at 21:28