Title Only Alignment and Minitoc Question

Title Only Alignment and Minitoc Question

I want to do this in Latex

But I cant make it work.

My code is the following

\documentclass{report}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{sectsty}

\usepackage{minitoc} % for contents 
\chapterfont{\raggedleft}
\begin{document}
\dominitoc[n]


\chapter{Introduction}
    \minitoc
    \section{About}
    \label{sec:About}
    \section{Motivation}
    \label{sec:Motivation}
\end{document}

But It doesn't work. Also I cannot understand how to use the \undotted and \nomtcpagenumbers for minitoc.

1 Answer

The fasted way to remove the dotted lines is the undotted package option. To remove the page numbers, you can use \mtcsetpagenumbers{minitoc}{off}

\documentclass{report}

\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{sectsty}

\usepackage[undotted]{minitoc}
\mtcsetpagenumbers{minitoc}{off}
\mtcsetoffset{minitoc}{-4em}

\chapterfont{\raggedleft}

\begin{document}

\dominitoc
\tableofcontents

\chapter{Introduction}
\minitoc

\section{About}
\label{sec:About}
\section{Motivation}
\label{sec:Motivation}

\end{document}
4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.