- Questo topic ha 11 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 7 anni, 10 mesi fa da .
-
Topic
-
partendo da questo codice che per il resto soddisfa le mie esigenze
`\documentclass[a4paper]{report}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainfont[Ligatures=TeX,Numbers=OldStyle]{EB Garamond}
\setmainlanguage[babelshorthands=true]{italian}
\PolyglossiaSetup{italian}{indentfirst=false}
\frenchspacing
\usepackage{lipsum}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{titletoc}
\titlecontents{chapter}
[3em]
{\vspace*{\baselineskip}\mdseries}
{\contentslabel[\hfill\thecontentslabel\phantom{.}]{3em}\enspace}
{\hspace*{0.5em}}
{}
[]\titlecontents{section}
[3em]
{\vspace*{\baselineskip}\mdseries}
{\contentslabel[\hfill\thecontentslabel\phantom{.}]{3em}\enspace}
{}
{\hfill\llap{\makebox[\dimexpr\linewidth-1.3pc][l]{\thecontentspage}}}
[]\titlecontents*{subsection}
[3.525em]
{\footnotesize}
{}
{}
{,~\thecontentspage}
[~–~]
[]%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\fontsize{11pt}{12pt}\selectfont}{\thechapter}{0pt}{}
\renewcommand\thesection{\arabic{section}}
\titleformat{\section}
{\normalfont\fontsize{11pt}{12pt}\selectfont}{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\fontsize{11pt}{12pt}\selectfont\itshape}{\phantom{\thesection}}{1em}{}
\titlespacing{\chapter}{0pt}{0pt}{3cm}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thechapter}{\scshape\roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\tableofcontents
\chapter{A Very Short History of Rhetoric}
\section{The Greek World}\section{The Greek World}
\subsection{Aristoteles}\chapter{A Very Short History of Rhetoric}
\section{The Greek World}
\subsection{Aristoteles}\section{The Greek World}
\subsection{Aristoteles}\setcounter{page}{68}.
\chapter{A Very Short History of Rhetoric}\section{The Greek World}
\subsection{Aristoteles}\setcounter{page}{178}.
\chapter{A Very Short History of Rhetoric}\section{The Greek World}
\subsection{Aristoteles}\end{document}`
qual è il trucco per allineare i numeri di pagine in base all’ultima cifra e non alla prima, ovvero per ottenere NON
`1
11
123`
MA
` 1
11
123`grazie
m
- Devi essere connesso per rispondere a questo topic.