I am trying to format the chapter, section and subsection but I have not been able to. I have included an image as a reference of what I want to do. Here are some specifics:
- LaTeX, by default, puts the chapter title in the header. I don't want that.
- Regarding the subsection: I wish not to list the number, but I would love to leave a space (check the image)
- And finally I want to put the page enumeration in the upper right corner
(they said to use
fancyhdrbut I don't know where to start).
\documentclass[12pt]{book}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[left=3cm,top=2.5cm,bottom=2.5cm, right=2.5cm,showframe=false]{geometry}
\usepackage{titlesec}
% ------- format chapter - section and subsection
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
\renewcommand{\thesubsection}{\thesection. \arabic{subsection}}
\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries\centering }
{\vspace{\stretch{1}} \chaptertitlename\ \thechapter}{20pt}{\Huge}
[\vspace{\stretch{1}}\clearpage]
\titlespacing*{\chapter}{0pt}{0pt}{0pt}
\titleformat{name=\chapter,numberless}[display]
{\normalfont\Large\bfseries}
{}
{0pt}
{\Huge}
[]
% code reference --- https://tex.stackexchange.com/a/13498
\begin{document}
\chapter{An Title another pg}
\section{Introduction}
\subsection{International}
\section{Methods}
\subsection{Materiales}
\end{document}
I have marked in red what I would like to change



\renewcommand{\thesection}{\thechapter.\arabic{section}}, otherwise you're changing the representation of thechaptercounter from\Roman(in the chapter title) to\arabic(in the section title). Is this your main issue? – Werner Aug 10 '21 at 23:38