- Questo topic ha 16 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 12 anni fa da .
-
Topic
-
Buongiorno a tutti,premetto che ho poca dimestichezza con LaTex anche se lo uso da un po’ di tempo. Mi trovo a pubblicare la mia tesi di dottorato con una casa editrice tedesca, la quale mi ha chiesto di inserire le testatine. Ho usato fancyhdr e tutto funziona a meraviglia, finché non si arriva alla parte degli indici analitici. Dal momento che ho previsto 5 diversi indici, avrei voluto avere un capitolo “Indici” nel quale i diversi indici comparissero come sezioni. Ho seguito le indicazioni del manuale di imakeidx e ho impostato level=section in \indexsetup. Così facendo, effettivamente si ottiene il risultato desiderato, ma non per le testatine. La prima pagina e la seconda pagina si comportano come previsto; la terza invece, nella quale inizia un nuovo indice, non ha alcuna testatina, mentre dovrebbe riportare, se ho scritto bene il codice, il titolo del capitolo, ovvero “Indici”.
Posto una versione abbreviata del codice e un pdf dell’indice cosicché possa risultare più chiaro quello che intendo. E’ come se non riconoscesse \chapter{Indici} come titolo del capitolo e quindi non lo inserisse nelle testatine. Spero che qualcuno possa aiutarmi. Grazie!`
\documentclass[12pt,twoside,b5paper, openright]{book}\usepackage[italian]{babel}
\usepackage{fancyhdr}
\usepackage{ibycus4}
\usepackage{needspace}
\usepackage{jurabib}
\usepackage{bibtopic}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{setspace}
\usepackage{tipa}
\usepackage{longtable}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{imakeidx}
\indexsetup{level=\section, toclevel=section, noclearpage}
\providecommand*\see[2]{\emph{\seename} #1}
\providecommand*\seealso[2]{\emph{\alsoname} #1}
\providecommand*\seename{vedi}
\providecommand*\alsoname{vedi anche}
\newcommand{\nn}[1]{#1n}\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\clearpage{\pagestyle{empty}\cleardoublepage}
\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
\clearpage
{\pagestyle{empty}\origdoublepage}%
}
\let\cleardoublepage\clearemptydoublepage
\usepackage[pdftex]{hyperref}\makeindex[title=Indice dei nomi e delle cose notevoli, columns=2]
\makeindex[name=latino, title=Indice dei termini latini, columns=2]
\makeindex[name=altre, title=Altre lingue indoeuropee, columns=2]
\makeindex[name=AutoriA, title=Indice degli autori antichi, columns=2]
\makeindex[name=autori, title=Indice degli autori citati, columns=2]\begin{document}
\hyphenation{ra-tio-nem Leon-hard Bergk e-di-tio ri-pro-du-zio-ne}\frontmatter
\setstretch{1}
\include{title1}
\cleardoublepage
\include{dedica}
\setcounter{secnumdepth}{-1}
\setcounter{tocdepth}{5}
\setstretch{1}
\cleardoublepage\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CE,CO]{\nouppercase{\leftmark}}\tableofcontents
\listoffigures
\listoftables
\setlength{\parindent}{0.5cm}\mainmatter
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CE,CO]{\leftmark}\include{Premessa}
\setcounter{secnumdepth}{2}\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CO]{\nouppercase{\rightmark}}
\fancyhead[CE]{\nouppercase{\leftmark}}\include{Carmen}
\include{Storia_CS}
\include{Status_CS}
\include{Edizione_CS}
\include{Lingua_CS}
\setcounter{secnumdepth}{-1}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CE,CO]{\nouppercase{\leftmark}}
\include{Conclusioni}\setstretch{1}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CO]{\nouppercase{\rightmark}}
\fancyhead[CE]{Le fonti classiche}
\include{Appendice}\setcounter{secnumdepth}{1}
%\setstretch{1}
\setcounter{secnumdepth}{-1}\bibliographystyle{jurabib}
\nocite{*}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CE]{\nouppercase{\rightmark}}
\fancyhead[CO]{\nouppercase{\leftmark}}\chapter{Riferimenti bibliografici}
\begin{btSect}{bibliouno}
\section{Fonti classiche}
\btPrintAll
\end{btSect}\begin{btSect}{bibliocinque}
\section{Fonti classiche in traduzione}
\btPrintAll
\end{btSect}\begin{btSect}{bibliodue}
\section{Edizioni del \emph{De Lingua Latina} di Varrone}
\btPrintAll
\end{btSect}\begin{btSect}{bibliotre}
\section{Edizioni del \emph{De Orthographia} di Terenzio Scauro}
\btPrintAll
\end{btSect}\begin{btSect}{biblioquattro}
\section{Edizioni del \emph{De verborum significatione} di Festo}
\btPrintAll
\end{btSect}\begin{btSect}{Kbib_CS}
\section{Altra bibliografia}
\btPrintAll
\end{btSect}\chapter{Indici}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CE]{\nouppercase{\rightmark}}
\fancyhead[CO]{\nouppercase{\leftmark}}\printindex
\printindex[AutoriA]
\printindex[autori]\end{document}
`
- Devi essere connesso per rispondere a questo topic.