# Chapter Section to the left and Chapter title to the right

In a report document, how can I achieve something like this?

The Chapter to the left, and the Chapter's title to the right of the page

\documentclass{report}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{sectsty}
\usepackage{tabularx}
\usepackage{caption}
\usepackage[table,dvipsname]{xcolor}% http://ctan.org/pkg/xcolor
\usepackage[flushleft]{threeparttable}
\usepackage{titlesec}
\usepackage{minitoc}
\usepackage{titlecaps}

%%%%%%%% FOR TESTING %%%%%%%%%%%%%
\usepackage[english]{babel}
\usepackage{blindtext}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%Initializing Minitoc
\dominitoc[n]
\nomtcpagenumbers

\titleformat{\chapter}[display]{}{\normalfont\Large\scshape\titlecap{\chaptertitlename}\enspace\scalebox{1.8}{\thechapter}\filright} {8ex}{\Huge\bfseries\sffamily\filleft}[{\titlerule[1pt]}]

\titlespacing*{\chapter}{0pt}{30pt}{20pt}

\begin{document}

\tableofcontents

\chapter{A}
\label{Chap.A}

\minitoc

\section{A.1}
\label{A:sec:1}

Wubba lubba dub dub.

\section{A.2}
\label{A:sec:2}
\blindtext

\newpage

\chapter{B}
\label{Chap.B}

\minitoc

\section{B.1}
\label{B:sec:1}
\Blindtext

\section{B.2}
\label{B:sec:2}
\blindtext

\end{document}

• You are using the very right tags. Packages titlesec (more customizable) and sectsty (more simple) are for this purpose.
– user156344
Apr 25, 2019 at 15:10
• Here you can find an excellent answer: tex.stackexchange.com/questions/331805/… Apr 25, 2019 at 15:12
• W0099(minitoc(hints)) --- The titlesec package is loaded. (minitoc(hints)) It is incompatible (minitoc(hints)) with the minitoc package. Apr 25, 2019 at 15:15
• @JouleV I did. But I am new to the whole LaTeX world. I cannot understand the syntax of this function (?) \formattitle. Apr 25, 2019 at 15:22
• The only problem with your code is that \titlecap is not defined.
– user156344
Apr 25, 2019 at 15:24

\documentclass{report}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{sectsty}
\usepackage{tabularx}
\usepackage{caption}
\usepackage[table,dvipsname]{xcolor}% http://ctan.org/pkg/xcolor
\usepackage[flushleft]{threeparttable}
\usepackage{titlesec}
\usepackage{minitoc}
\usepackage{titlecaps}

%%%%%%%% FOR TESTING %%%%%%%%%%%%%
\usepackage[english]{babel}
\usepackage{blindtext}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%Initializing Minitoc
\dominitoc[n]
\nomtcpagenumbers

\titleformat{\chapter}[display]{}{\normalfont\Large\scshape\bfseries\underline{\titlecap{\chaptertitlename}\enspace\scalebox{1.8}{\thechapter}\filright}} {8ex}{\Huge\bfseries\sffamily\filleft}

\titlespacing*{\chapter}{0pt}{30pt}{20pt}

\begin{document}

\tableofcontents

\chapter{A}
\label{Chap.A}

\minitoc

\section{A.1}
\label{A:sec:1}

Wubba lubba dub dub.

\section{A.2}
\label{A:sec:2}
\blindtext

\newpage

\chapter{B}
\label{Chap.B}

\minitoc

\section{B.1}
\label{B:sec:1}
\Blindtext

\section{B.2}
\label{B:sec:2}
\blindtext

\end{document}

• Removing [{\titlerule[1pt]}] will remove the line
• Just add additional commands \underline or \bfseries to make your text bold or underlined.