- Questo topic ha 7 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 12 anni, 9 mesi fa da .
-
Topic
-
Sto impostando uno scritto e, in qualche misura, mi sono ispirato alla classica grafica
dei testi editi da Einaudi. Ora, volendo – come suol dirsi – la moglie ubriaca e la botte piena,
ho steso un codice che tuttavia non fa tutto quanto io vorrei:
`\documentclass[a4paper,11pt,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[no-math]{fontspec}
\defaultfontfeatures{Contextuals=NoAlternate}
\setmainfont[Ligatures=TeX,Numbers=OldStyle,Scale=1.1]{EB Garamond}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands=true]{italian}
\setotherlanguage[variant=polytonic]{greek}
\newfontfamily\greekfont[Scale=MatchLowercase]{GFS Didot}
\usepackage{microtype}% intestazioni
\usepackage{emptypage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{14pt}
\renewcommand{\chaptermark}[1]{\markboth{\footnotesize\textsc{\thechapter. #1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\footnotesize\textsc{\thesection. #1}}}
\renewcommand{\headrulewidth}{0.5pt}
\fancyhead[LE]{\nouppercase{\rightmark}}
\fancyhead[RO]{\nouppercase{\leftmark}}
\fancyhead[LO,RE]{\thepage}
\renewcommand{\chaptermark}[1]{\markboth{\textsc{\footnotesize\thechapter. #1}}{\footnotesize\textsc{\thechapter. #1}}}
\renewcommand \thesection {\arabic{section}}% titolo
\newcommand*{\TitleFont}{%
\usefont{\encodingdefault}{\rmdefault}{b}{n}%
\fontsize{18}{16}%
\selectfont}% titoli sezione
\usepackage{titlesec}
\renewcommand{\thechapter}{\scshape\roman{chapter}}
\titleformat{\chapter}
{\raggedright}
{\thechapter\quad}
{0pt}
{\scshape}
\titleformat{\section}
{\raggedright}
{\thesection\quad}
{0pt}
{\normalfont}% formato indice
\usepackage{tocloft,interfaces}
\settowidth{\cftchapnumwidth}{00.00\enspace}
\settowidth{\cftsecnumwidth}{000.000\enspace}
\renewcommand{\cfttoctitlefont}{\scshape}
%\renewcommand{\cfttoctitlefont}{\normalfont\Large\bfseries\MakeUppercase}
\renewcommand{\cftchapfillnum}[1]{\nobreak\hspace{1.5em}#1\cftparfillskip\par}
\renewcommand{\cftsecfillnum}[1]{\nobreak\hspace{1.5em}#1\cftparfillskip\par}
\renewcommand{\cftsubsecfillnum}[1]{\nobreak\hspace{1.5em}#1\cftparfillskip\par}
\setcounter{tocdepth}{2}
\tocsetup{chapter/skip=5pt}\usepackage{kantlipsum}
\author{}
\title{\TitleFont Il mito. Antologia critica}
\date{}\begin{document}
\maketitle
\tableofcontents\chapter{Introduzione}
\kant[1-5]\chapter{Il problema dell'oralità}
\section{Vegetti, La tradizione orale}
\kant[6-10]\section{Godart, La nascita della scrittura}
\kant[11-15]\chapter{Miti cosmogonici}
\section{Miti arcaici}
\kant[16-20]\section{Miti greci}
\kant[21-25]\section{Miti indiani}
\kant[26-30]\section{Miti amerindi}
\kant[31-35]\section{Miti nordici}
\kant[36-40]\chapter{Interpretazioni}
\section{Cassirer, Il mito come forma simbolica}
\kant[41-45]\section{Kérenyi, Il mito come racconto esplicativo}
\kant[46-50]\end{document}`
I miei desiderata sarebbero i seguenti:
1. nelle testatine tutto e solo in maiuscoletto
2. i titoli di capitolo tutti e solo in maiuscoletto
3. nell’indice i numeri dei capitoli in (romano) maiuscoletto.
Invece succede che nelle testatine e nei titoli di capitolo l’iniziale è maiuscola,
e se scrivo tutto in minuscolo (con \scshape), nelle testatine il risultato
è quello voluto, ma poi le maiuscole saltano nell’indice.
Nell’indice, i numeri dei capitoli sono in minuscolo, e non capisco dove
eventualmente mettere l’indicazione per \scshape.
È possibile avere il risultato che vorrei?grazie
mPS
Certo che kantlipsum lo avremmo voluto in tedesco! 🙂
- Devi essere connesso per rispondere a questo topic.