I'm using the titlesec package so my chapter heading looks like:
1. METHODOLOGY
According to this package documentation, I must use [hang] to get the chapter number and title in the same line. However, I cannot get the number to appear (only the chapter label is displayed).
This is my code:
\documentclass{book}
\usepackage{lipsum}
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\normalfont\bfseries\huge\uppercase}{\thechapter. }{15pt}{}
\begin{document}
\chapter{Methodology}
\lipsum[2]
\chapter{Results}
\lipsum[2]
\end{document}
Do you see anything wrong with it?

[block]style. This is not exactly the same if the chapter title spreads over several lines. That said,\thechapterin your code yields the chapter number. – Bernard Feb 11 '17 at 19:32\justifyheadingcome from? – Bernard Feb 11 '17 at 19:43\uppercaseis always wrong; in that position it's very wrong. – egreg Feb 11 '17 at 20:34