- Questo topic ha 0 risposte, 1 partecipante ed è stato aggiornato l'ultima volta 12 anni, 1 mese fa da .
-
Topic
-
rileggendo il numero 16 di Arstexnica
mi è caduto l’occhio sullo articolo di Pignalberi che ringrazio per il contributo
ho modificato il mio indice con i suoi consigli
usando mintoc sono andato a sbattere contro
l’incompatibilità con titletoc
andando per google ho trovato una scappatoia che simula minitoc
che ne pensate?
quello che segue è il lavoro di una mezza giornata la resa del mintoc non è il massimo
si accettano consigli
`
\documentclass[a4paper,oneside]{book}
\usepackage{cmap}
\usepackage{fixltx2e}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{isomath}
\usepackage{microtype}
\usepackage{geometry}
\newcommand{\nobs}{\nobreakspace}
%%%todo inizio
\usepackage[italian,colorinlistoftodos]{todonotes}
\newcommand{\bassapriorita}[1]{\todo{#1}}
\newcommand{\mediapriorita}[1]{\todo{#1}}
\newcommand{\altapriorita}[1]{\todo{#1}}
%todofine
\usepackage{lipsum}
\usepackage{bm}
\usepackage{titletoc}
\usepackage{textcase}
%
\contentsmargin{0pt}
\titlecontents{table}[0pc]{}{\makebox[6em][l]{\thecontentslabel}}{}{\hfill\MakeTextUppercase{\textbf{\thecontentspage}}}
\titlecontents{figure}[0pc]{}{\makebox[6em][l]{\thecontentslabel}}{}{\hfill\MakeTextUppercase{\textbf{\thecontentspage}}}
\titlecontents{chapter}[0pc]{\addvspace{7pt}}{\makebox[6em][l]{\textbf{Capitolo\nobs\thecontentslabel}}\textbf}{\textbf}{\hfill\MakeTextUppercase{\textbf{\thecontentspage}}\\[-.75em]\rule{\textwidth}{.4pt}}
%
\titlecontents{section}[0pc]{}{\makebox[6em][l]{\thecontentslabel}}{}{\hfill\MakeTextUppercase{\textbf{\thecontentspage}}\\[-.75em]}
\titlecontents{subsection}[1pc]{}{\makebox[6em][l]{\thecontentslabel}}{}{\hfill\MakeTextUppercase{\textbf{\thecontentspage}}\\[-.75em]}
%
\titlecontents*{csection}[0pc]{}{\makebox[6em][l]{\thecontentslabel}}{}{\hfill\MakeTextUppercase{\textbf{\thecontentspage}}}\usepackage{titlesec}
\renewcommand{\thechapter}{\Roman{chapter}}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
{4ex}
{\titlerule
\vspace{2ex}%
\filright}
[\vspace{2ex}%
\titlerule]\titleformat{\section}
{
\vspace{.8ex}%
\normalfont\itshape}
{\thesection.}{.5em}{}\titleformat{\subsection}
{
\vspace{.8ex}%
\normalfont\itshape}
{\thesubsection.}{.5em}{}\usepackage{placeins}
\begin{document}
\frontmatter
\tableofcontents\cleardoublepage
\listoftables
\addcontentsline{toc}{chapter}{\listtablename}
%\mtcaddchapter
%\adjustptc
\cleardoublepage
\listoffigures
\addcontentsline{toc}{chapter}{\listfigurename}
%\mtcaddchapter
\todototoc
\cleardoublepage
\listoftodos
\mainmatter
\chapter{AAAA}
\startcontents[chapters]
\printcontents[chapters]{c}{1}{}
\bassapriorita{prova1}
\section{AAA}
\lipsum[1]
\begin{table}
\caption{prova 1}
\label{prova1}
\end{table}
\subsection{AAA}
\lipsum[1]
\section{AAA}
\lipsum[1]
\begin{table}
\caption{prova 1}
\label{prova1}
\end{table}
\subsection{AAA}
\lipsum[1]
\chapter{BBB}
\startcontents[chapters]
\printcontents[chapters]{c}{1}{}
\lipsum[1]
\section{BBB}
\lipsum[1]
\subsection{BBB}
\lipsum[1]
\chapter{BBB}
\startcontents[chapters]
\printcontents[chapters]{c}{1}{}
\lipsum[1]
\section{BBB}
\lipsum[1]
\subsection{BBB}
\lipsum[1]
\chapter{CCC}
\startcontents[chapters]
\printcontents[chapters]{c}{1}{}
\altapriorita{prova3}
\lipsum[1]
\section{CCC}
\lipsum[1]
\subsection{CCC}
\lipsum[1]
\end{document}
`
ciao
- Devi essere connesso per rispondere a questo topic.