This is an addendum for this question: How to add an itemized list to the ToC
I have done everything from the link above, so far, so good...and printed it....the author wants the lines to finish before the page number column....like the picture....is there a way to reduce these specific lines length NOT TO affect the others?
And also wants to reduce the size betwen the two first topics there, Apresentação and Introdução.. Is there a way to do it?
Here is the code to get the following result:
\documentclass[14pt, twoside, a5paper, extrafontsizes]{memoir} %Classe estilo memoir
\usepackage[brazilian]{babel} %Traduz doc para português do Brasil
\usepackage[utf8]{inputenc} %Reconhece acentuação draft
\usepackage{indentfirst} %Define identação em todo primeiro parágrafo
\usepackage{garamondx} %Define a nova fonte garamond
\usepackage[fontsize=13pt]{scrextend}
\usepackage{leading} %Define espaçamento entre linhas
\usepackage{eqparbox} %Serve para colocar o \frontmatter alinhado a esquerda no sumário
\newcommand{\desctotoc}[1]{% Serve para adicionar descrição nos itens do sumário
\addtocontents{toc}{\medskip\noindent\detokenize{#1}\leavevmode\par\smallskip}
}
\setstocksize{21cm}{14cm} %Define tamanho do livro
\settrimmedsize{\stockheight}{\stockwidth}{*}
\setulmarginsandblock{2.2cm}{2.2cm}{*} %Define margem vertical maior TOP/BOT
\setlrmarginsandblock{2.1cm}{1.3cm}{*} %Define margem horizontal maior
\setheadfoot{1.5cm}{1cm} %Distancia do texto pro número da página
\setheaderspaces{*}{*}{0.5}
\leading{16pt} %orientação de leading
\checkandfixthelayout %Define margem horizontal maior
\makeevenfoot{headings}{}{\thepage}{}
\makeoddfoot{headings}{}{\thepage}{}
\makeevenhead{headings}{}{}{}
\makeoddhead{headings}{}{}{}
\copypagestyle{chapter}{plain} % make chapter a page style of its own
\makeevenfoot{chapter}{}{\thepage}{}
\makeoddfoot{chapter}{}{\thepage}{}
\makeevenhead{chapter}{}{}{}
\makeoddhead{chapter}{}{}{}
\renewcommand{\chapnumfont}{\bfseries\huge} %Formata Nº título de Cap
\renewcommand{\chapnamefont}{\small} %Formata "Capítulo X"
\renewcommand{\chaptitlefont}{\normalfont\Huge} %Formata Título de Cap
\newlength{\aftertocskip} %Define espaço menor entre "Sumário" e Cap1
\setlength{\aftertocskip}{1\baselineskip}% Space after ToC title
\renewcommand{\aftertoctitle}{\par\nobreak\vskip\aftertocskip}
\chapterstyle{thatcher}
\makeatletter
\let\oldcftchapterfont\cftchapterfont% Save ToC-related chapter entry font
\g@addto@macro\frontmatter{%
\addtocontents{toc}{% Update chapter entry font
\protect\g@addto@macro\protect\cftchapterfont{\protect\cftchapterformatpnum{}\hfill\itshape
\protect\eqmakebox[tocfm][l]}%
}%
}
\g@addto@macro\mainmatter{%
\addtocontents{toc}{% Restore chapter entry font
\let\protect\cftchapterfont\protect\oldcftchapterfont%
}%
}
\makeatother
\begin{document} %=====================================================================================================
\frontmatter
\tableofcontents*
\protected\def\apresentacao{APRESENTAÇÃO \protect\\ à 16ª edição}
\chapter
[Apresentação à 16ª edição]
[APRESENTAÇÃO]
{\apresentacao}
\chapter{Introdução}
\mainmatter
\pagenumbering{arabic}%retoma numerção de página
\setcounter{page}{21}%retoma numeração na núm{x}
\chapter{Potencial do Ser Humano}
\desctotoc{
Ser humano – potencial latente, inexplorado ou \linebreak bloqueado.
}
\chapter{O Poder de Sua Mente}
\desctotoc{
Consciente – “Eu racional”.
Subconsciente - É mecânico e funciona automaticamente.
}
\chapter{Processo Psíquico do Poder Extra}
\desctotoc{
Fases do processo psíquico. O poder da imaginação.
}
\chapter{Funcionamento do Processo Psíquico}
\desctotoc{
Dúvida Emocional e Ansiedade.
}
\chapter{O Pensamento Positivo} %Aqui tem tabela customizada com linhas mais juntas
\desctotoc{
Pela repetição de pensamentos, programa-se o \linebreak Subconsciente como, pela repetição de movimentos, \linebreak desenvolve-se habilidades. Registro do sucesso e da \linebreak Felicidade (Diário da Felicidade). \dotfill 91
}
\end{document}