Re: Cambiare il sommario

#73301
Up
0
Down
::

logos” post=72401Per il nome, mi terrò “Indice” anche se non mi piace: forse preferirei “Indice degli argomenti trattati” o qualcosa di simile, ma fa niente. Ecco il preambolo:

`
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode

\documentclass[11pt,fleqn,oneside]{book}
\pagestyle{plain}

\usepackage[a4paper]{geometry}
\geometry{height=220mm,width=156mm}
% \setlength{\parindent}{0pt}

%— Testo
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[polutonikogreek,italian]{babel}

%— Pacchetti utili
\usepackage{lmodern}
\usepackage{amsmath,amssymb,amsthm,bm}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tikz}
\usepackage{enumitem}
\usepackage[hang]{footmisc}
\renewcommand{\footnotemargin}{10pt}
\renewcommand{\hangfootparindent}{\footnotemargin}

% Personalizzazione paragrafi
\usepackage{titlesec}

\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{section}}

\titleformat{\chapter}[display]
{\normalfont\huge\filcenter\bfseries}
{\chaptertitlename~\thechapter}{0.5pc}{}
\titlespacing{\chapter}{0pt}
{0pc}{4pc plus 2pt minus 2pt}

\titleformat{\section}[hang]
{\normalfont\large\filright\bfseries}
{\thesection.\quad}{0pt}{}
\titlespacing{\section}{0pt}
{2pc plus 2pt minus 2pt}
{1pc plus 2pt minus 2pt}

\numberwithin{equation}{section}

% Teoremi
\makeatletter
\newtheoremstyle{theo}{6pt}{6pt}%
{\slshape}{}%
{\scshape}{\enskip}%
{2pt}{(#2) #1\@ifnotempty{#3}{ #3}.}
\newtheoremstyle{defin}{6pt}{6pt}%
{}{}{\scshape}{\enskip}%
{2pt}{(#2) #1\@ifnotempty{#3}{ #3}.}
\newtheoremstyle{exerc}{6pt}{6pt}%
{}{}{\bfseries}{\enskip}%
{2pt}{}
\makeatother

\theoremstyle{theo}
\newtheorem{teorema}{Teorema}[section]
\newtheorem{lemma}[teorema]{Lemma}
\newtheorem{proposizione}[teorema]{Proposizione}
\newtheorem{corollario}[teorema]{Corollario}
\theoremstyle{defin}
\newtheorem{definizione}[teorema]{Definizione}
\newtheorem{osservazione}[teorema]{Osservazione}
\newtheorem{esempio}[teorema]{Esempio}
\theoremstyle{exerc}
\newtheorem{esercizio}{}[section]

\newenvironment{prova}[1][Dimostrazione]
{\begin{proof}[\scshape #1]}
{\end{proof}}

% Definizioni personalizzate
\renewcommand{\implies}{\Rightarrow}
\renewcommand{\iff}{\Leftrightarrow}
\newcommand{\de}{\partial}
\newcommand{\la}{\langle}
\newcommand{\ra}{\rangle}
\newcommand{\tensor}{\otimes}

%— Analisi
\renewcommand*{\d}{\mathop{}\mathopen{}\mathrm{d}\mathclose{}}
\renewcommand{\Re}{\mathop{\go{Re}}}
\renewcommand{\Im}{\mathop{\go{Im}}}
%— Teoria della misura
\newcommand{\ca}[1]{\mathcal{#1}}
\newcommand{\go}[1]{\mathfrak{#1}}
\newcommand{\mis}[1]{(#1,\ca #1)}
\newcommand{\bor}[1]{(#1,\ca{B}(#1))}
\newcommand{\mto}[2]{(#1,\ca{#1},#2)}
%— Logica e teoria degli insiemi
\DeclareMathOperator{\Card}{Card}
`

Grazie,

Andrea

Mi sembra tutto una pessima idea. Non è affatto detto che la pagina iniziale di un capitolo coincida con quella della prima sezione. Ma il documento è tuo.

Aggiungi in un posto appropriato (più o meno dove ti pare)
`\usepackage{etoolbox}
\makeatletter
\def\chapter@numberline#1{\chaptername\ #1 — }
\patchcmd{\l@chapter}{-\leftskip}{-\leftskip\let\numberline\chapter@numberline}{}{}
\patchcmd{\l@chapter}{\hb@xt@}{\@gobbletwo}{}{}
\makeatother`
Però poi non venire a lamentarti che per certi capitoli vuoi il numero di pagina. 🙂

Naturalmente basta leggere l’Arte per scoprire
`\addto\captionsitalian{\renewcommand{\contentsname}{QUELLO CHE TI PARE}}`
Ciao
Enrico

Go to top