Change name “Contents” in frontmatter











up vote
0
down vote

favorite












I am new in LaTeX and I'm trying to change the name "Contents" in top right of the picture attached. Where can I do this?enter image description here



Thanks.



This is my dissertation.tex:



%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode


documentclass{Dissertate}

begin{document}

% the front matter
input{frontmatter/personalize}
%maketitle
% copyrightpage
frontmatter
setstretch{dnormalspacing}
% abstractpage
% tableofcontents
% %authorlist
% listoffigures
% dedicationpage
% acknowledgments

% doublespacing

% include each chapter...
setcounter{chapter}{0} % start chapter numbering at 1
include{chapters/introduction}
include{chapters/chapter1}
include{chapters/chapter2}
include{chapters/chapter3}
include{chapters/conclusion}

addcontentsline{toc}{chapter}{Riferimenti}
%bibliographystyle{unstr}
bibliography{references}
cleardoublepage
phantomsection
addcontentsline{toc}{chapter}{Acknowledgments}
acknowledgments


% clearpage
% bibliography{references}
% addcontentsline{toc}{chapter}{References}
% bibliographystyle{apalike2}

% include{endmatter/colophon}

end{document}


This is my Dissertate.cls file:



% -------------------------------------------------------------------
% @LaTeX-class-file{
% filename = "Dissertate.cls",
% version = "2.0",
% date = "25 March 2014",
% codetable = "ISO/ASCII",
% keywords = "LaTeX, Dissertate",
% supported = "Send email to suchow@post.harvard.edu.",
% docstring = "Class for a dissertation."
% --------------------------------------------------------------------

NeedsTeXFormat{LaTeX2e}
ProvidesClass{Dissertate}[2014/03/25 v2.0 Dissertate Class]
LoadClass[12pt, twoside, openright, a4paper]{book}

%
% Options
%
RequirePackage{etoolbox}

% Line spacing: dsingle/ddouble
% Whether to use single- or doublespacing.
newtoggle{DissertateSingleSpace}
toggletrue{DissertateSingleSpace}
DeclareOption{dsingle}{
toggletrue{DissertateSingleSpace}
ClassWarning{Dissertate}{Single-spaced mode on.}
}
DeclareOption{ddouble}{togglefalse{DissertateSingleSpace}}

ProcessOptionsrelax

% Line Spacing
% Define two line spacings: one for the body, and one that is more compressed.
iftoggle{DissertateSingleSpace}{
newcommand{dnormalspacing}{1.2}
newcommand{dcompressedspacing}{1.0}
}{
newcommand{dnormalspacing}{2.0}
newcommand{dcompressedspacing}{1.2}
}

% Block quote with compressed spacing
letoldquotequote
letendoldquoteendquote
renewenvironment{quote}
{begin{spacing}{dcompressedspacing}oldquote}
{endoldquoteend{spacing}}

% Itemize with compressed spacing
letolditemizeitemize
letendolditemizeenditemize
renewenvironment{itemize}
{begin{spacing}{dcompressedspacing}olditemize}
{endolditemizeend{spacing}}

% Enumerate with compressed spacing
letoldenumerateenumerate
letendoldenumerateendenumerate
renewenvironment{enumerate}
{begin{spacing}{dcompressedspacing}oldenumerate}
{endoldenumerateend{spacing}}

% Text layout.
RequirePackage[outer=1in, inner=1.55in, twoside, a4paper]{geometry}
usepackage{ragged2e}
%RaggedRight
RequirePackage{graphicx}
usepackage{fixltx2e}
parindent 12pt
RequirePackage{lettrine/lettrine-2018-08-18}
RequirePackage{setspace}
RequirePackage{verbatim}

% Fonts.
RequirePackage{color}
RequirePackage{xcolor}
usepackage{hyperref}
RequirePackage{url}
RequirePackage{amssymb}
RequirePackage{mathspec}
%setmathsfont(Digits,Latin,Greek)[Numbers={Proportional}]{EB Garamond}
%setmathrm{EB Garamond}
AtBeginEnvironment{tabular}{addfontfeature{RawFeature=+tnum}}
widowpenalty=300
clubpenalty=300
setromanfont[Numbers=OldStyle, Ligatures={Common, TeX}, Scale=1.0]{EB Garamond}
newfontfamily{smallcaps}[RawFeature={+c2sc,+scmp}]{EB Garamond}
setsansfont[Scale=MatchLowercase, BoldFont={Lato Bold}]{Lato Regular}
setmonofont[Scale=MatchLowercase]{Source Code Pro}
RequirePackage[labelfont={bf,sf,footnotesize,singlespacing},
textfont={sf,footnotesize,singlespacing},
justification={justified,RaggedRight},
singlelinecheck=false,
margin=0pt,
figurewithin=chapter,
tablewithin=chapter]{caption}
renewcommand{thefootnote}{fnsymbol{footnote}}
RequirePackage{microtype}

% Tikz
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}
pgfplotsset{plot coordinates/math parser=false}
newlengthfheight
newlengthfwidth
usepackage{booktabs}
usepackage{multirow}
%usepackage{multicolumn}
usepackage{subcaption}
usetikzlibrary{patterns,decorations.pathreplacing,backgrounds,calc}
usepackage{afterpage}
usepackage{tabulary}
newcommand{ra}[1]{renewcommand{arraystretch}{#1}}


% Pseudocode
usepackage{algorithms/algorithm}
usepackage[noend]{algorithms/algpseudocode}
renewcommandalgorithmicthen{}
renewcommandalgorithmicdo{}
@addtoreset{algorithm}{chapter}% algorithm counter resets every chapter
usepackage{lscape}
renewcommand{thealgorithm}{thechapter.arabic{algorithm}}% Algorithm # is <chapter>.<algorithm>


% Abbreviations
newcommand{abbrlabel}[1]{makebox[3cm][l]{textbf{#1} dotfill}}
newenvironment{abbreviations}{begin{list}{}{renewcommand{makelabel}{abbrlabel}}}{end{list}}


% Headings and headers.
RequirePackage{fancyhdr}
RequirePackage[tiny, md, sc]{titlesec}
setlength{headheight}{15pt}
pagestyle{plain}
RequirePackage{titling}

% Front matter.
setcounter{tocdepth}{2}
usepackage[titles]{tocloft}
usepackage[titletoc]{appendix}
renewcommand{cftsecleader}{cftdotfill{cftdotsep}}
renewcommand{cftchapfont}{normalsize scshape}
renewcommandlistfigurename{scshape{Elenco delle figure}}
renewcommandlisttablename{scshape{Elenco delle tabelle}}

% Endmatter
renewcommand{setthesection}{arabic{chapter}.Aarabic{section}}

% References.
renewcommandbibname{Riferimenti}
%RequirePackage[super,comma,numbers]{natbib}
RequirePackage[comma,numbers]{natbib}
renewcommand{bibnumfmt}[1]{[#1]}
RequirePackage[palatino]{quotchap}
renewcommand*{chapterheadstartvskip}{vspace*{-0.5baselineskip}}
renewcommand*{chapterheadendvskip}{vspace{1.3baselineskip}}
bibliographystyle{IEEEtran}

% An environment for paragraph-style section.
providecommandnewthought[1]{%
addvspace{1.0baselineskip plus 0.5ex minus 0.2ex}%
noindenttextsc{#1}%
}

% Align reference numbers so that they do not cause an indent.
newlengthmybibindent
setlengthmybibindent{0pt}
renewenvironment{thebibliography}[1]
{chapter*{bibname}%
@mkboth{MakeUppercasebibname}{MakeUppercasebibname}%
list{@biblabel{@arabicc@enumiv}}
{settowidthlabelwidth{@biblabel{999}}
leftmarginlabelwidth
advanceleftmargindimexprlabelsep+mybibindentrelaxitemindent-mybibindent
@openbib@code
usecounter{enumiv}
letp@enumiv@empty
renewcommandtheenumiv{@arabicc@enumiv}}
sloppy
clubpenalty4000
@clubpenalty clubpenalty
widowpenalty4000%
sfcode`.@m}
{def@noitemerr
{@latex@warning{Empty `thebibliography' environment}}
endlist}

% Some definitions.
defadvisor#1{gdef@advisor{#1}}
defmastername#1{gdef@mastername{#1}}
defcoadvisorOne#1{gdef@coadvisorOne{#1}}
defcoadvisorOneUniversity#1{gdef@coadvisorOneUniversity{#1}}
defcoadvisorTwo#1{gdef@coadvisorTwo{#1}}
defcommitteeInternal#1{gdef@committeeInternal{#1}}
defcommitteeInternalOne#1{gdef@committeeInternalOne{#1}}
defcommitteeInternalTwo#1{gdef@committeeInternalTwo{#1}}
defcommitteeExternal#1{gdef@committeeExternal{#1}}
defdegreeyear#1{gdef@degreeyear{#1}}
defdegreemonth#1{gdef@degreemonth{#1}}
defdegreeterm#1{gdef@degreeterm{#1}}
defdegree#1{gdef@degree{#1}}
defdepartment#1{gdef@department{#1}}
deffield#1{gdef@field{#1}}
defuniversity#1{gdef@university{#1}}
defuniversitycity#1{gdef@universitycity{#1}}
defuniversitystate#1{gdef@universitystate{#1}}
defprogramname#1{gdef@programname{#1}}
defpdOneName#1{gdef@pdOneName{#1}}
defpdOneSchool#1{gdef@pdOneSchool{#1}}
defpdOneYear#1{gdef@pdOneYear{#1}}
defpdTwoName#1{gdef@pdTwoName{#1}}
defpdTwoSchool#1{gdef@pdTwoSchool{#1}}
defpdTwoYear#1{gdef@pdTwoYear{#1}}
% School name and location
university{University of Padova}
universitycity{Padova}
universitystate{Italy}

% School color found from university's graphic identity site:
% http://www.nyu.edu/employees/resources-and-services/media-and-communications/styleguide.html
definecolor{SchoolColor}{rgb}{0.71, 0, 0.106} % UNIPD red
definecolor{chaptergrey}{rgb}{0.61, 0, 0.09} % dialed back a little
definecolor{midgrey}{rgb}{0.4, 0.4, 0.4}

hypersetup{
colorlinks,
citecolor=SchoolColor,
filecolor=black,
linkcolor=black,
urlcolor=SchoolColor,
}


renewcommand{frontmatter}{
pagenumbering{roman}
input{frontmatter/personalize}
maketitle
frontispiece
dedicationpage
abstractpage
sommario
tableofcontents
phantomsection
clearpage

% figure listing - required if you have any figures
addcontentsline{toc}{chapter}{Elenco delle figure}
listoffigures
phantomsection
cleardoublepage

% table listing - required if you have any tables
addcontentsline{toc}{chapter}{Elenco delle tabelle}
listoftables
phantomsection
cleardoublepage

% acronyms

cleardoublepage
setcounter{page}{1}
pagenumbering{arabic}
}

newcommand{cover}{
pagenumbering{roman}
input{frontmatter/personalize}
makecover
}

renewcommand{maketitle}{
thispagestyle{empty}
setcounter{page}{1}
begin{center}
vbox to0pt{vbox totextheight{vfill includegraphics[width=11.5cm]{resources/unipd-light} vfill}vss}
%vspace*{fill}
begin{figure}
centering
includegraphics[height=2.5cm]{resources/unipd-bn}
end{figure}

setstretch{1.5}

scshape{Large{bfseries{Università degli Studi di Padova}}} \
line(1, 0){400} \
scshape{large{DIPARTIMENTO DI INGEGNERIA DELL'INFORMAZIONE (DEI)}} \

vspace{5pt}
small{textit{Tesi di Laurea Magistrale in}}
@mastername

setstretch{2.5}

vspace{30pt}
scshape{LARGE{bfseries{textcolor{SchoolColor}{thetitle}}}} normalsize \
vspace{25pt}
vspace{15pt}

setstretch{1.2}

vfill
begin{normalsize}
begin{flushleft}
textit{Supervisore} hfill textit{Candidato}\
vspace{1pt}
@advisor hfill @author\
Università di Padova \
vspace{6pt}
textit{Co-supervisore} \
@coadvisorOne \
@coadvisorOneUniversity
vspace{10pt}
end{flushleft}
end{normalsize}

end{center}
vspace*{fill}
singlespacing
cleardoublepage
}

newcommand{copyrightpage}{
newpage
thispagestyle{empty}
vspace*{25pt}
begin{center}
scshape noindent small copyright small theauthor \
all rights reserved, @degreeyear
end{center}
newpage
rm
}

newcommand{frontispiece}{
newpage
thispagestyle{empty}
vspace*{fill}
begin{center}
end{center}
vspace*{fill}
}

newcommand{dedicationpage}{
phantomsection
setcounter{page}{3}
vspace*{fill}
scshape noindent input{frontmatter/dedication}
vspace*{fill}
cleardoublepage
rm
}

newcommand{acknowledgments}{
phantomsection
chapter*{Ringraziamenti}
noindent
input{frontmatter/thanks}
vspace*{fill} newpage
}

newcommand{Sommario}{
phantomsection
chapter*{scshape{Sommario}}
input{frontmatter/preface}
}

newcommand{acronyms}{
phantomsection
addcontentsline{toc}{chapter}{Listing of acronyms}
chapter*{Listing of acronyms}
input{frontmatter/abbr.tex}
}

newcommand{abstractpage}{
phantomsection
setcounter{page}{5}
addcontentsline{toc}{chapter}{scshape{Abstract}}
chapter*{scshape{Abstract}}
input{frontmatter/abstract}
}

renewcommand{backmatter}{
begin{appendices}
include{chapters/appendixA}
end{appendices}
input{endmatter/personalize}
clearpage
bibliography{references}
addcontentsline{toc}{chapter}{Riferimenti}
bibliographystyle{apalike2}
include{endmatter/colophon}
}









share|improve this question









New contributor




Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass{...} and ending with end{document}.
    – Stefan Pinnow
    Nov 12 at 8:20






  • 2




    Wouldn't usepackage[italian]{babel} solve the issue? It would also use better names than “lista delle figure” (it should be “elenco”)
    – egreg
    Nov 12 at 8:38












  • It’s interesting how one Q can be “read” different ways. Per egreg’s suggestion, on this texlive 2016 system, babel produces "Indice." If the Q asks, how may the title read, say, e.g., “Table of Contents,” or "Sommario," or "Contenuto," etc., then see if this helps: tocloft documentation p.7 (sec. 2.2) renewcommandcontentsname{New ToC Title}
    – Saphar Koshet
    Nov 12 at 14:46










  • usepackage[italian]{babel} doesn't solve the issue because I also wuold change the type of font in that title. About see the documentation, I understand what I must to write, but my problem is: where can I do this? I update my question with two files of the code.
    – Daniele Dal Degan
    Nov 12 at 20:32










  • renewcommandcontentsname{New ToC Title} I use this command, I found the solution. Thanks!!
    – Daniele Dal Degan
    Nov 12 at 21:07















up vote
0
down vote

favorite












I am new in LaTeX and I'm trying to change the name "Contents" in top right of the picture attached. Where can I do this?enter image description here



Thanks.



This is my dissertation.tex:



%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode


documentclass{Dissertate}

begin{document}

% the front matter
input{frontmatter/personalize}
%maketitle
% copyrightpage
frontmatter
setstretch{dnormalspacing}
% abstractpage
% tableofcontents
% %authorlist
% listoffigures
% dedicationpage
% acknowledgments

% doublespacing

% include each chapter...
setcounter{chapter}{0} % start chapter numbering at 1
include{chapters/introduction}
include{chapters/chapter1}
include{chapters/chapter2}
include{chapters/chapter3}
include{chapters/conclusion}

addcontentsline{toc}{chapter}{Riferimenti}
%bibliographystyle{unstr}
bibliography{references}
cleardoublepage
phantomsection
addcontentsline{toc}{chapter}{Acknowledgments}
acknowledgments


% clearpage
% bibliography{references}
% addcontentsline{toc}{chapter}{References}
% bibliographystyle{apalike2}

% include{endmatter/colophon}

end{document}


This is my Dissertate.cls file:



% -------------------------------------------------------------------
% @LaTeX-class-file{
% filename = "Dissertate.cls",
% version = "2.0",
% date = "25 March 2014",
% codetable = "ISO/ASCII",
% keywords = "LaTeX, Dissertate",
% supported = "Send email to suchow@post.harvard.edu.",
% docstring = "Class for a dissertation."
% --------------------------------------------------------------------

NeedsTeXFormat{LaTeX2e}
ProvidesClass{Dissertate}[2014/03/25 v2.0 Dissertate Class]
LoadClass[12pt, twoside, openright, a4paper]{book}

%
% Options
%
RequirePackage{etoolbox}

% Line spacing: dsingle/ddouble
% Whether to use single- or doublespacing.
newtoggle{DissertateSingleSpace}
toggletrue{DissertateSingleSpace}
DeclareOption{dsingle}{
toggletrue{DissertateSingleSpace}
ClassWarning{Dissertate}{Single-spaced mode on.}
}
DeclareOption{ddouble}{togglefalse{DissertateSingleSpace}}

ProcessOptionsrelax

% Line Spacing
% Define two line spacings: one for the body, and one that is more compressed.
iftoggle{DissertateSingleSpace}{
newcommand{dnormalspacing}{1.2}
newcommand{dcompressedspacing}{1.0}
}{
newcommand{dnormalspacing}{2.0}
newcommand{dcompressedspacing}{1.2}
}

% Block quote with compressed spacing
letoldquotequote
letendoldquoteendquote
renewenvironment{quote}
{begin{spacing}{dcompressedspacing}oldquote}
{endoldquoteend{spacing}}

% Itemize with compressed spacing
letolditemizeitemize
letendolditemizeenditemize
renewenvironment{itemize}
{begin{spacing}{dcompressedspacing}olditemize}
{endolditemizeend{spacing}}

% Enumerate with compressed spacing
letoldenumerateenumerate
letendoldenumerateendenumerate
renewenvironment{enumerate}
{begin{spacing}{dcompressedspacing}oldenumerate}
{endoldenumerateend{spacing}}

% Text layout.
RequirePackage[outer=1in, inner=1.55in, twoside, a4paper]{geometry}
usepackage{ragged2e}
%RaggedRight
RequirePackage{graphicx}
usepackage{fixltx2e}
parindent 12pt
RequirePackage{lettrine/lettrine-2018-08-18}
RequirePackage{setspace}
RequirePackage{verbatim}

% Fonts.
RequirePackage{color}
RequirePackage{xcolor}
usepackage{hyperref}
RequirePackage{url}
RequirePackage{amssymb}
RequirePackage{mathspec}
%setmathsfont(Digits,Latin,Greek)[Numbers={Proportional}]{EB Garamond}
%setmathrm{EB Garamond}
AtBeginEnvironment{tabular}{addfontfeature{RawFeature=+tnum}}
widowpenalty=300
clubpenalty=300
setromanfont[Numbers=OldStyle, Ligatures={Common, TeX}, Scale=1.0]{EB Garamond}
newfontfamily{smallcaps}[RawFeature={+c2sc,+scmp}]{EB Garamond}
setsansfont[Scale=MatchLowercase, BoldFont={Lato Bold}]{Lato Regular}
setmonofont[Scale=MatchLowercase]{Source Code Pro}
RequirePackage[labelfont={bf,sf,footnotesize,singlespacing},
textfont={sf,footnotesize,singlespacing},
justification={justified,RaggedRight},
singlelinecheck=false,
margin=0pt,
figurewithin=chapter,
tablewithin=chapter]{caption}
renewcommand{thefootnote}{fnsymbol{footnote}}
RequirePackage{microtype}

% Tikz
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}
pgfplotsset{plot coordinates/math parser=false}
newlengthfheight
newlengthfwidth
usepackage{booktabs}
usepackage{multirow}
%usepackage{multicolumn}
usepackage{subcaption}
usetikzlibrary{patterns,decorations.pathreplacing,backgrounds,calc}
usepackage{afterpage}
usepackage{tabulary}
newcommand{ra}[1]{renewcommand{arraystretch}{#1}}


% Pseudocode
usepackage{algorithms/algorithm}
usepackage[noend]{algorithms/algpseudocode}
renewcommandalgorithmicthen{}
renewcommandalgorithmicdo{}
@addtoreset{algorithm}{chapter}% algorithm counter resets every chapter
usepackage{lscape}
renewcommand{thealgorithm}{thechapter.arabic{algorithm}}% Algorithm # is <chapter>.<algorithm>


% Abbreviations
newcommand{abbrlabel}[1]{makebox[3cm][l]{textbf{#1} dotfill}}
newenvironment{abbreviations}{begin{list}{}{renewcommand{makelabel}{abbrlabel}}}{end{list}}


% Headings and headers.
RequirePackage{fancyhdr}
RequirePackage[tiny, md, sc]{titlesec}
setlength{headheight}{15pt}
pagestyle{plain}
RequirePackage{titling}

% Front matter.
setcounter{tocdepth}{2}
usepackage[titles]{tocloft}
usepackage[titletoc]{appendix}
renewcommand{cftsecleader}{cftdotfill{cftdotsep}}
renewcommand{cftchapfont}{normalsize scshape}
renewcommandlistfigurename{scshape{Elenco delle figure}}
renewcommandlisttablename{scshape{Elenco delle tabelle}}

% Endmatter
renewcommand{setthesection}{arabic{chapter}.Aarabic{section}}

% References.
renewcommandbibname{Riferimenti}
%RequirePackage[super,comma,numbers]{natbib}
RequirePackage[comma,numbers]{natbib}
renewcommand{bibnumfmt}[1]{[#1]}
RequirePackage[palatino]{quotchap}
renewcommand*{chapterheadstartvskip}{vspace*{-0.5baselineskip}}
renewcommand*{chapterheadendvskip}{vspace{1.3baselineskip}}
bibliographystyle{IEEEtran}

% An environment for paragraph-style section.
providecommandnewthought[1]{%
addvspace{1.0baselineskip plus 0.5ex minus 0.2ex}%
noindenttextsc{#1}%
}

% Align reference numbers so that they do not cause an indent.
newlengthmybibindent
setlengthmybibindent{0pt}
renewenvironment{thebibliography}[1]
{chapter*{bibname}%
@mkboth{MakeUppercasebibname}{MakeUppercasebibname}%
list{@biblabel{@arabicc@enumiv}}
{settowidthlabelwidth{@biblabel{999}}
leftmarginlabelwidth
advanceleftmargindimexprlabelsep+mybibindentrelaxitemindent-mybibindent
@openbib@code
usecounter{enumiv}
letp@enumiv@empty
renewcommandtheenumiv{@arabicc@enumiv}}
sloppy
clubpenalty4000
@clubpenalty clubpenalty
widowpenalty4000%
sfcode`.@m}
{def@noitemerr
{@latex@warning{Empty `thebibliography' environment}}
endlist}

% Some definitions.
defadvisor#1{gdef@advisor{#1}}
defmastername#1{gdef@mastername{#1}}
defcoadvisorOne#1{gdef@coadvisorOne{#1}}
defcoadvisorOneUniversity#1{gdef@coadvisorOneUniversity{#1}}
defcoadvisorTwo#1{gdef@coadvisorTwo{#1}}
defcommitteeInternal#1{gdef@committeeInternal{#1}}
defcommitteeInternalOne#1{gdef@committeeInternalOne{#1}}
defcommitteeInternalTwo#1{gdef@committeeInternalTwo{#1}}
defcommitteeExternal#1{gdef@committeeExternal{#1}}
defdegreeyear#1{gdef@degreeyear{#1}}
defdegreemonth#1{gdef@degreemonth{#1}}
defdegreeterm#1{gdef@degreeterm{#1}}
defdegree#1{gdef@degree{#1}}
defdepartment#1{gdef@department{#1}}
deffield#1{gdef@field{#1}}
defuniversity#1{gdef@university{#1}}
defuniversitycity#1{gdef@universitycity{#1}}
defuniversitystate#1{gdef@universitystate{#1}}
defprogramname#1{gdef@programname{#1}}
defpdOneName#1{gdef@pdOneName{#1}}
defpdOneSchool#1{gdef@pdOneSchool{#1}}
defpdOneYear#1{gdef@pdOneYear{#1}}
defpdTwoName#1{gdef@pdTwoName{#1}}
defpdTwoSchool#1{gdef@pdTwoSchool{#1}}
defpdTwoYear#1{gdef@pdTwoYear{#1}}
% School name and location
university{University of Padova}
universitycity{Padova}
universitystate{Italy}

% School color found from university's graphic identity site:
% http://www.nyu.edu/employees/resources-and-services/media-and-communications/styleguide.html
definecolor{SchoolColor}{rgb}{0.71, 0, 0.106} % UNIPD red
definecolor{chaptergrey}{rgb}{0.61, 0, 0.09} % dialed back a little
definecolor{midgrey}{rgb}{0.4, 0.4, 0.4}

hypersetup{
colorlinks,
citecolor=SchoolColor,
filecolor=black,
linkcolor=black,
urlcolor=SchoolColor,
}


renewcommand{frontmatter}{
pagenumbering{roman}
input{frontmatter/personalize}
maketitle
frontispiece
dedicationpage
abstractpage
sommario
tableofcontents
phantomsection
clearpage

% figure listing - required if you have any figures
addcontentsline{toc}{chapter}{Elenco delle figure}
listoffigures
phantomsection
cleardoublepage

% table listing - required if you have any tables
addcontentsline{toc}{chapter}{Elenco delle tabelle}
listoftables
phantomsection
cleardoublepage

% acronyms

cleardoublepage
setcounter{page}{1}
pagenumbering{arabic}
}

newcommand{cover}{
pagenumbering{roman}
input{frontmatter/personalize}
makecover
}

renewcommand{maketitle}{
thispagestyle{empty}
setcounter{page}{1}
begin{center}
vbox to0pt{vbox totextheight{vfill includegraphics[width=11.5cm]{resources/unipd-light} vfill}vss}
%vspace*{fill}
begin{figure}
centering
includegraphics[height=2.5cm]{resources/unipd-bn}
end{figure}

setstretch{1.5}

scshape{Large{bfseries{Università degli Studi di Padova}}} \
line(1, 0){400} \
scshape{large{DIPARTIMENTO DI INGEGNERIA DELL'INFORMAZIONE (DEI)}} \

vspace{5pt}
small{textit{Tesi di Laurea Magistrale in}}
@mastername

setstretch{2.5}

vspace{30pt}
scshape{LARGE{bfseries{textcolor{SchoolColor}{thetitle}}}} normalsize \
vspace{25pt}
vspace{15pt}

setstretch{1.2}

vfill
begin{normalsize}
begin{flushleft}
textit{Supervisore} hfill textit{Candidato}\
vspace{1pt}
@advisor hfill @author\
Università di Padova \
vspace{6pt}
textit{Co-supervisore} \
@coadvisorOne \
@coadvisorOneUniversity
vspace{10pt}
end{flushleft}
end{normalsize}

end{center}
vspace*{fill}
singlespacing
cleardoublepage
}

newcommand{copyrightpage}{
newpage
thispagestyle{empty}
vspace*{25pt}
begin{center}
scshape noindent small copyright small theauthor \
all rights reserved, @degreeyear
end{center}
newpage
rm
}

newcommand{frontispiece}{
newpage
thispagestyle{empty}
vspace*{fill}
begin{center}
end{center}
vspace*{fill}
}

newcommand{dedicationpage}{
phantomsection
setcounter{page}{3}
vspace*{fill}
scshape noindent input{frontmatter/dedication}
vspace*{fill}
cleardoublepage
rm
}

newcommand{acknowledgments}{
phantomsection
chapter*{Ringraziamenti}
noindent
input{frontmatter/thanks}
vspace*{fill} newpage
}

newcommand{Sommario}{
phantomsection
chapter*{scshape{Sommario}}
input{frontmatter/preface}
}

newcommand{acronyms}{
phantomsection
addcontentsline{toc}{chapter}{Listing of acronyms}
chapter*{Listing of acronyms}
input{frontmatter/abbr.tex}
}

newcommand{abstractpage}{
phantomsection
setcounter{page}{5}
addcontentsline{toc}{chapter}{scshape{Abstract}}
chapter*{scshape{Abstract}}
input{frontmatter/abstract}
}

renewcommand{backmatter}{
begin{appendices}
include{chapters/appendixA}
end{appendices}
input{endmatter/personalize}
clearpage
bibliography{references}
addcontentsline{toc}{chapter}{Riferimenti}
bibliographystyle{apalike2}
include{endmatter/colophon}
}









share|improve this question









New contributor




Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass{...} and ending with end{document}.
    – Stefan Pinnow
    Nov 12 at 8:20






  • 2




    Wouldn't usepackage[italian]{babel} solve the issue? It would also use better names than “lista delle figure” (it should be “elenco”)
    – egreg
    Nov 12 at 8:38












  • It’s interesting how one Q can be “read” different ways. Per egreg’s suggestion, on this texlive 2016 system, babel produces "Indice." If the Q asks, how may the title read, say, e.g., “Table of Contents,” or "Sommario," or "Contenuto," etc., then see if this helps: tocloft documentation p.7 (sec. 2.2) renewcommandcontentsname{New ToC Title}
    – Saphar Koshet
    Nov 12 at 14:46










  • usepackage[italian]{babel} doesn't solve the issue because I also wuold change the type of font in that title. About see the documentation, I understand what I must to write, but my problem is: where can I do this? I update my question with two files of the code.
    – Daniele Dal Degan
    Nov 12 at 20:32










  • renewcommandcontentsname{New ToC Title} I use this command, I found the solution. Thanks!!
    – Daniele Dal Degan
    Nov 12 at 21:07













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am new in LaTeX and I'm trying to change the name "Contents" in top right of the picture attached. Where can I do this?enter image description here



Thanks.



This is my dissertation.tex:



%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode


documentclass{Dissertate}

begin{document}

% the front matter
input{frontmatter/personalize}
%maketitle
% copyrightpage
frontmatter
setstretch{dnormalspacing}
% abstractpage
% tableofcontents
% %authorlist
% listoffigures
% dedicationpage
% acknowledgments

% doublespacing

% include each chapter...
setcounter{chapter}{0} % start chapter numbering at 1
include{chapters/introduction}
include{chapters/chapter1}
include{chapters/chapter2}
include{chapters/chapter3}
include{chapters/conclusion}

addcontentsline{toc}{chapter}{Riferimenti}
%bibliographystyle{unstr}
bibliography{references}
cleardoublepage
phantomsection
addcontentsline{toc}{chapter}{Acknowledgments}
acknowledgments


% clearpage
% bibliography{references}
% addcontentsline{toc}{chapter}{References}
% bibliographystyle{apalike2}

% include{endmatter/colophon}

end{document}


This is my Dissertate.cls file:



% -------------------------------------------------------------------
% @LaTeX-class-file{
% filename = "Dissertate.cls",
% version = "2.0",
% date = "25 March 2014",
% codetable = "ISO/ASCII",
% keywords = "LaTeX, Dissertate",
% supported = "Send email to suchow@post.harvard.edu.",
% docstring = "Class for a dissertation."
% --------------------------------------------------------------------

NeedsTeXFormat{LaTeX2e}
ProvidesClass{Dissertate}[2014/03/25 v2.0 Dissertate Class]
LoadClass[12pt, twoside, openright, a4paper]{book}

%
% Options
%
RequirePackage{etoolbox}

% Line spacing: dsingle/ddouble
% Whether to use single- or doublespacing.
newtoggle{DissertateSingleSpace}
toggletrue{DissertateSingleSpace}
DeclareOption{dsingle}{
toggletrue{DissertateSingleSpace}
ClassWarning{Dissertate}{Single-spaced mode on.}
}
DeclareOption{ddouble}{togglefalse{DissertateSingleSpace}}

ProcessOptionsrelax

% Line Spacing
% Define two line spacings: one for the body, and one that is more compressed.
iftoggle{DissertateSingleSpace}{
newcommand{dnormalspacing}{1.2}
newcommand{dcompressedspacing}{1.0}
}{
newcommand{dnormalspacing}{2.0}
newcommand{dcompressedspacing}{1.2}
}

% Block quote with compressed spacing
letoldquotequote
letendoldquoteendquote
renewenvironment{quote}
{begin{spacing}{dcompressedspacing}oldquote}
{endoldquoteend{spacing}}

% Itemize with compressed spacing
letolditemizeitemize
letendolditemizeenditemize
renewenvironment{itemize}
{begin{spacing}{dcompressedspacing}olditemize}
{endolditemizeend{spacing}}

% Enumerate with compressed spacing
letoldenumerateenumerate
letendoldenumerateendenumerate
renewenvironment{enumerate}
{begin{spacing}{dcompressedspacing}oldenumerate}
{endoldenumerateend{spacing}}

% Text layout.
RequirePackage[outer=1in, inner=1.55in, twoside, a4paper]{geometry}
usepackage{ragged2e}
%RaggedRight
RequirePackage{graphicx}
usepackage{fixltx2e}
parindent 12pt
RequirePackage{lettrine/lettrine-2018-08-18}
RequirePackage{setspace}
RequirePackage{verbatim}

% Fonts.
RequirePackage{color}
RequirePackage{xcolor}
usepackage{hyperref}
RequirePackage{url}
RequirePackage{amssymb}
RequirePackage{mathspec}
%setmathsfont(Digits,Latin,Greek)[Numbers={Proportional}]{EB Garamond}
%setmathrm{EB Garamond}
AtBeginEnvironment{tabular}{addfontfeature{RawFeature=+tnum}}
widowpenalty=300
clubpenalty=300
setromanfont[Numbers=OldStyle, Ligatures={Common, TeX}, Scale=1.0]{EB Garamond}
newfontfamily{smallcaps}[RawFeature={+c2sc,+scmp}]{EB Garamond}
setsansfont[Scale=MatchLowercase, BoldFont={Lato Bold}]{Lato Regular}
setmonofont[Scale=MatchLowercase]{Source Code Pro}
RequirePackage[labelfont={bf,sf,footnotesize,singlespacing},
textfont={sf,footnotesize,singlespacing},
justification={justified,RaggedRight},
singlelinecheck=false,
margin=0pt,
figurewithin=chapter,
tablewithin=chapter]{caption}
renewcommand{thefootnote}{fnsymbol{footnote}}
RequirePackage{microtype}

% Tikz
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}
pgfplotsset{plot coordinates/math parser=false}
newlengthfheight
newlengthfwidth
usepackage{booktabs}
usepackage{multirow}
%usepackage{multicolumn}
usepackage{subcaption}
usetikzlibrary{patterns,decorations.pathreplacing,backgrounds,calc}
usepackage{afterpage}
usepackage{tabulary}
newcommand{ra}[1]{renewcommand{arraystretch}{#1}}


% Pseudocode
usepackage{algorithms/algorithm}
usepackage[noend]{algorithms/algpseudocode}
renewcommandalgorithmicthen{}
renewcommandalgorithmicdo{}
@addtoreset{algorithm}{chapter}% algorithm counter resets every chapter
usepackage{lscape}
renewcommand{thealgorithm}{thechapter.arabic{algorithm}}% Algorithm # is <chapter>.<algorithm>


% Abbreviations
newcommand{abbrlabel}[1]{makebox[3cm][l]{textbf{#1} dotfill}}
newenvironment{abbreviations}{begin{list}{}{renewcommand{makelabel}{abbrlabel}}}{end{list}}


% Headings and headers.
RequirePackage{fancyhdr}
RequirePackage[tiny, md, sc]{titlesec}
setlength{headheight}{15pt}
pagestyle{plain}
RequirePackage{titling}

% Front matter.
setcounter{tocdepth}{2}
usepackage[titles]{tocloft}
usepackage[titletoc]{appendix}
renewcommand{cftsecleader}{cftdotfill{cftdotsep}}
renewcommand{cftchapfont}{normalsize scshape}
renewcommandlistfigurename{scshape{Elenco delle figure}}
renewcommandlisttablename{scshape{Elenco delle tabelle}}

% Endmatter
renewcommand{setthesection}{arabic{chapter}.Aarabic{section}}

% References.
renewcommandbibname{Riferimenti}
%RequirePackage[super,comma,numbers]{natbib}
RequirePackage[comma,numbers]{natbib}
renewcommand{bibnumfmt}[1]{[#1]}
RequirePackage[palatino]{quotchap}
renewcommand*{chapterheadstartvskip}{vspace*{-0.5baselineskip}}
renewcommand*{chapterheadendvskip}{vspace{1.3baselineskip}}
bibliographystyle{IEEEtran}

% An environment for paragraph-style section.
providecommandnewthought[1]{%
addvspace{1.0baselineskip plus 0.5ex minus 0.2ex}%
noindenttextsc{#1}%
}

% Align reference numbers so that they do not cause an indent.
newlengthmybibindent
setlengthmybibindent{0pt}
renewenvironment{thebibliography}[1]
{chapter*{bibname}%
@mkboth{MakeUppercasebibname}{MakeUppercasebibname}%
list{@biblabel{@arabicc@enumiv}}
{settowidthlabelwidth{@biblabel{999}}
leftmarginlabelwidth
advanceleftmargindimexprlabelsep+mybibindentrelaxitemindent-mybibindent
@openbib@code
usecounter{enumiv}
letp@enumiv@empty
renewcommandtheenumiv{@arabicc@enumiv}}
sloppy
clubpenalty4000
@clubpenalty clubpenalty
widowpenalty4000%
sfcode`.@m}
{def@noitemerr
{@latex@warning{Empty `thebibliography' environment}}
endlist}

% Some definitions.
defadvisor#1{gdef@advisor{#1}}
defmastername#1{gdef@mastername{#1}}
defcoadvisorOne#1{gdef@coadvisorOne{#1}}
defcoadvisorOneUniversity#1{gdef@coadvisorOneUniversity{#1}}
defcoadvisorTwo#1{gdef@coadvisorTwo{#1}}
defcommitteeInternal#1{gdef@committeeInternal{#1}}
defcommitteeInternalOne#1{gdef@committeeInternalOne{#1}}
defcommitteeInternalTwo#1{gdef@committeeInternalTwo{#1}}
defcommitteeExternal#1{gdef@committeeExternal{#1}}
defdegreeyear#1{gdef@degreeyear{#1}}
defdegreemonth#1{gdef@degreemonth{#1}}
defdegreeterm#1{gdef@degreeterm{#1}}
defdegree#1{gdef@degree{#1}}
defdepartment#1{gdef@department{#1}}
deffield#1{gdef@field{#1}}
defuniversity#1{gdef@university{#1}}
defuniversitycity#1{gdef@universitycity{#1}}
defuniversitystate#1{gdef@universitystate{#1}}
defprogramname#1{gdef@programname{#1}}
defpdOneName#1{gdef@pdOneName{#1}}
defpdOneSchool#1{gdef@pdOneSchool{#1}}
defpdOneYear#1{gdef@pdOneYear{#1}}
defpdTwoName#1{gdef@pdTwoName{#1}}
defpdTwoSchool#1{gdef@pdTwoSchool{#1}}
defpdTwoYear#1{gdef@pdTwoYear{#1}}
% School name and location
university{University of Padova}
universitycity{Padova}
universitystate{Italy}

% School color found from university's graphic identity site:
% http://www.nyu.edu/employees/resources-and-services/media-and-communications/styleguide.html
definecolor{SchoolColor}{rgb}{0.71, 0, 0.106} % UNIPD red
definecolor{chaptergrey}{rgb}{0.61, 0, 0.09} % dialed back a little
definecolor{midgrey}{rgb}{0.4, 0.4, 0.4}

hypersetup{
colorlinks,
citecolor=SchoolColor,
filecolor=black,
linkcolor=black,
urlcolor=SchoolColor,
}


renewcommand{frontmatter}{
pagenumbering{roman}
input{frontmatter/personalize}
maketitle
frontispiece
dedicationpage
abstractpage
sommario
tableofcontents
phantomsection
clearpage

% figure listing - required if you have any figures
addcontentsline{toc}{chapter}{Elenco delle figure}
listoffigures
phantomsection
cleardoublepage

% table listing - required if you have any tables
addcontentsline{toc}{chapter}{Elenco delle tabelle}
listoftables
phantomsection
cleardoublepage

% acronyms

cleardoublepage
setcounter{page}{1}
pagenumbering{arabic}
}

newcommand{cover}{
pagenumbering{roman}
input{frontmatter/personalize}
makecover
}

renewcommand{maketitle}{
thispagestyle{empty}
setcounter{page}{1}
begin{center}
vbox to0pt{vbox totextheight{vfill includegraphics[width=11.5cm]{resources/unipd-light} vfill}vss}
%vspace*{fill}
begin{figure}
centering
includegraphics[height=2.5cm]{resources/unipd-bn}
end{figure}

setstretch{1.5}

scshape{Large{bfseries{Università degli Studi di Padova}}} \
line(1, 0){400} \
scshape{large{DIPARTIMENTO DI INGEGNERIA DELL'INFORMAZIONE (DEI)}} \

vspace{5pt}
small{textit{Tesi di Laurea Magistrale in}}
@mastername

setstretch{2.5}

vspace{30pt}
scshape{LARGE{bfseries{textcolor{SchoolColor}{thetitle}}}} normalsize \
vspace{25pt}
vspace{15pt}

setstretch{1.2}

vfill
begin{normalsize}
begin{flushleft}
textit{Supervisore} hfill textit{Candidato}\
vspace{1pt}
@advisor hfill @author\
Università di Padova \
vspace{6pt}
textit{Co-supervisore} \
@coadvisorOne \
@coadvisorOneUniversity
vspace{10pt}
end{flushleft}
end{normalsize}

end{center}
vspace*{fill}
singlespacing
cleardoublepage
}

newcommand{copyrightpage}{
newpage
thispagestyle{empty}
vspace*{25pt}
begin{center}
scshape noindent small copyright small theauthor \
all rights reserved, @degreeyear
end{center}
newpage
rm
}

newcommand{frontispiece}{
newpage
thispagestyle{empty}
vspace*{fill}
begin{center}
end{center}
vspace*{fill}
}

newcommand{dedicationpage}{
phantomsection
setcounter{page}{3}
vspace*{fill}
scshape noindent input{frontmatter/dedication}
vspace*{fill}
cleardoublepage
rm
}

newcommand{acknowledgments}{
phantomsection
chapter*{Ringraziamenti}
noindent
input{frontmatter/thanks}
vspace*{fill} newpage
}

newcommand{Sommario}{
phantomsection
chapter*{scshape{Sommario}}
input{frontmatter/preface}
}

newcommand{acronyms}{
phantomsection
addcontentsline{toc}{chapter}{Listing of acronyms}
chapter*{Listing of acronyms}
input{frontmatter/abbr.tex}
}

newcommand{abstractpage}{
phantomsection
setcounter{page}{5}
addcontentsline{toc}{chapter}{scshape{Abstract}}
chapter*{scshape{Abstract}}
input{frontmatter/abstract}
}

renewcommand{backmatter}{
begin{appendices}
include{chapters/appendixA}
end{appendices}
input{endmatter/personalize}
clearpage
bibliography{references}
addcontentsline{toc}{chapter}{Riferimenti}
bibliographystyle{apalike2}
include{endmatter/colophon}
}









share|improve this question









New contributor




Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am new in LaTeX and I'm trying to change the name "Contents" in top right of the picture attached. Where can I do this?enter image description here



Thanks.



This is my dissertation.tex:



%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode


documentclass{Dissertate}

begin{document}

% the front matter
input{frontmatter/personalize}
%maketitle
% copyrightpage
frontmatter
setstretch{dnormalspacing}
% abstractpage
% tableofcontents
% %authorlist
% listoffigures
% dedicationpage
% acknowledgments

% doublespacing

% include each chapter...
setcounter{chapter}{0} % start chapter numbering at 1
include{chapters/introduction}
include{chapters/chapter1}
include{chapters/chapter2}
include{chapters/chapter3}
include{chapters/conclusion}

addcontentsline{toc}{chapter}{Riferimenti}
%bibliographystyle{unstr}
bibliography{references}
cleardoublepage
phantomsection
addcontentsline{toc}{chapter}{Acknowledgments}
acknowledgments


% clearpage
% bibliography{references}
% addcontentsline{toc}{chapter}{References}
% bibliographystyle{apalike2}

% include{endmatter/colophon}

end{document}


This is my Dissertate.cls file:



% -------------------------------------------------------------------
% @LaTeX-class-file{
% filename = "Dissertate.cls",
% version = "2.0",
% date = "25 March 2014",
% codetable = "ISO/ASCII",
% keywords = "LaTeX, Dissertate",
% supported = "Send email to suchow@post.harvard.edu.",
% docstring = "Class for a dissertation."
% --------------------------------------------------------------------

NeedsTeXFormat{LaTeX2e}
ProvidesClass{Dissertate}[2014/03/25 v2.0 Dissertate Class]
LoadClass[12pt, twoside, openright, a4paper]{book}

%
% Options
%
RequirePackage{etoolbox}

% Line spacing: dsingle/ddouble
% Whether to use single- or doublespacing.
newtoggle{DissertateSingleSpace}
toggletrue{DissertateSingleSpace}
DeclareOption{dsingle}{
toggletrue{DissertateSingleSpace}
ClassWarning{Dissertate}{Single-spaced mode on.}
}
DeclareOption{ddouble}{togglefalse{DissertateSingleSpace}}

ProcessOptionsrelax

% Line Spacing
% Define two line spacings: one for the body, and one that is more compressed.
iftoggle{DissertateSingleSpace}{
newcommand{dnormalspacing}{1.2}
newcommand{dcompressedspacing}{1.0}
}{
newcommand{dnormalspacing}{2.0}
newcommand{dcompressedspacing}{1.2}
}

% Block quote with compressed spacing
letoldquotequote
letendoldquoteendquote
renewenvironment{quote}
{begin{spacing}{dcompressedspacing}oldquote}
{endoldquoteend{spacing}}

% Itemize with compressed spacing
letolditemizeitemize
letendolditemizeenditemize
renewenvironment{itemize}
{begin{spacing}{dcompressedspacing}olditemize}
{endolditemizeend{spacing}}

% Enumerate with compressed spacing
letoldenumerateenumerate
letendoldenumerateendenumerate
renewenvironment{enumerate}
{begin{spacing}{dcompressedspacing}oldenumerate}
{endoldenumerateend{spacing}}

% Text layout.
RequirePackage[outer=1in, inner=1.55in, twoside, a4paper]{geometry}
usepackage{ragged2e}
%RaggedRight
RequirePackage{graphicx}
usepackage{fixltx2e}
parindent 12pt
RequirePackage{lettrine/lettrine-2018-08-18}
RequirePackage{setspace}
RequirePackage{verbatim}

% Fonts.
RequirePackage{color}
RequirePackage{xcolor}
usepackage{hyperref}
RequirePackage{url}
RequirePackage{amssymb}
RequirePackage{mathspec}
%setmathsfont(Digits,Latin,Greek)[Numbers={Proportional}]{EB Garamond}
%setmathrm{EB Garamond}
AtBeginEnvironment{tabular}{addfontfeature{RawFeature=+tnum}}
widowpenalty=300
clubpenalty=300
setromanfont[Numbers=OldStyle, Ligatures={Common, TeX}, Scale=1.0]{EB Garamond}
newfontfamily{smallcaps}[RawFeature={+c2sc,+scmp}]{EB Garamond}
setsansfont[Scale=MatchLowercase, BoldFont={Lato Bold}]{Lato Regular}
setmonofont[Scale=MatchLowercase]{Source Code Pro}
RequirePackage[labelfont={bf,sf,footnotesize,singlespacing},
textfont={sf,footnotesize,singlespacing},
justification={justified,RaggedRight},
singlelinecheck=false,
margin=0pt,
figurewithin=chapter,
tablewithin=chapter]{caption}
renewcommand{thefootnote}{fnsymbol{footnote}}
RequirePackage{microtype}

% Tikz
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}
pgfplotsset{plot coordinates/math parser=false}
newlengthfheight
newlengthfwidth
usepackage{booktabs}
usepackage{multirow}
%usepackage{multicolumn}
usepackage{subcaption}
usetikzlibrary{patterns,decorations.pathreplacing,backgrounds,calc}
usepackage{afterpage}
usepackage{tabulary}
newcommand{ra}[1]{renewcommand{arraystretch}{#1}}


% Pseudocode
usepackage{algorithms/algorithm}
usepackage[noend]{algorithms/algpseudocode}
renewcommandalgorithmicthen{}
renewcommandalgorithmicdo{}
@addtoreset{algorithm}{chapter}% algorithm counter resets every chapter
usepackage{lscape}
renewcommand{thealgorithm}{thechapter.arabic{algorithm}}% Algorithm # is <chapter>.<algorithm>


% Abbreviations
newcommand{abbrlabel}[1]{makebox[3cm][l]{textbf{#1} dotfill}}
newenvironment{abbreviations}{begin{list}{}{renewcommand{makelabel}{abbrlabel}}}{end{list}}


% Headings and headers.
RequirePackage{fancyhdr}
RequirePackage[tiny, md, sc]{titlesec}
setlength{headheight}{15pt}
pagestyle{plain}
RequirePackage{titling}

% Front matter.
setcounter{tocdepth}{2}
usepackage[titles]{tocloft}
usepackage[titletoc]{appendix}
renewcommand{cftsecleader}{cftdotfill{cftdotsep}}
renewcommand{cftchapfont}{normalsize scshape}
renewcommandlistfigurename{scshape{Elenco delle figure}}
renewcommandlisttablename{scshape{Elenco delle tabelle}}

% Endmatter
renewcommand{setthesection}{arabic{chapter}.Aarabic{section}}

% References.
renewcommandbibname{Riferimenti}
%RequirePackage[super,comma,numbers]{natbib}
RequirePackage[comma,numbers]{natbib}
renewcommand{bibnumfmt}[1]{[#1]}
RequirePackage[palatino]{quotchap}
renewcommand*{chapterheadstartvskip}{vspace*{-0.5baselineskip}}
renewcommand*{chapterheadendvskip}{vspace{1.3baselineskip}}
bibliographystyle{IEEEtran}

% An environment for paragraph-style section.
providecommandnewthought[1]{%
addvspace{1.0baselineskip plus 0.5ex minus 0.2ex}%
noindenttextsc{#1}%
}

% Align reference numbers so that they do not cause an indent.
newlengthmybibindent
setlengthmybibindent{0pt}
renewenvironment{thebibliography}[1]
{chapter*{bibname}%
@mkboth{MakeUppercasebibname}{MakeUppercasebibname}%
list{@biblabel{@arabicc@enumiv}}
{settowidthlabelwidth{@biblabel{999}}
leftmarginlabelwidth
advanceleftmargindimexprlabelsep+mybibindentrelaxitemindent-mybibindent
@openbib@code
usecounter{enumiv}
letp@enumiv@empty
renewcommandtheenumiv{@arabicc@enumiv}}
sloppy
clubpenalty4000
@clubpenalty clubpenalty
widowpenalty4000%
sfcode`.@m}
{def@noitemerr
{@latex@warning{Empty `thebibliography' environment}}
endlist}

% Some definitions.
defadvisor#1{gdef@advisor{#1}}
defmastername#1{gdef@mastername{#1}}
defcoadvisorOne#1{gdef@coadvisorOne{#1}}
defcoadvisorOneUniversity#1{gdef@coadvisorOneUniversity{#1}}
defcoadvisorTwo#1{gdef@coadvisorTwo{#1}}
defcommitteeInternal#1{gdef@committeeInternal{#1}}
defcommitteeInternalOne#1{gdef@committeeInternalOne{#1}}
defcommitteeInternalTwo#1{gdef@committeeInternalTwo{#1}}
defcommitteeExternal#1{gdef@committeeExternal{#1}}
defdegreeyear#1{gdef@degreeyear{#1}}
defdegreemonth#1{gdef@degreemonth{#1}}
defdegreeterm#1{gdef@degreeterm{#1}}
defdegree#1{gdef@degree{#1}}
defdepartment#1{gdef@department{#1}}
deffield#1{gdef@field{#1}}
defuniversity#1{gdef@university{#1}}
defuniversitycity#1{gdef@universitycity{#1}}
defuniversitystate#1{gdef@universitystate{#1}}
defprogramname#1{gdef@programname{#1}}
defpdOneName#1{gdef@pdOneName{#1}}
defpdOneSchool#1{gdef@pdOneSchool{#1}}
defpdOneYear#1{gdef@pdOneYear{#1}}
defpdTwoName#1{gdef@pdTwoName{#1}}
defpdTwoSchool#1{gdef@pdTwoSchool{#1}}
defpdTwoYear#1{gdef@pdTwoYear{#1}}
% School name and location
university{University of Padova}
universitycity{Padova}
universitystate{Italy}

% School color found from university's graphic identity site:
% http://www.nyu.edu/employees/resources-and-services/media-and-communications/styleguide.html
definecolor{SchoolColor}{rgb}{0.71, 0, 0.106} % UNIPD red
definecolor{chaptergrey}{rgb}{0.61, 0, 0.09} % dialed back a little
definecolor{midgrey}{rgb}{0.4, 0.4, 0.4}

hypersetup{
colorlinks,
citecolor=SchoolColor,
filecolor=black,
linkcolor=black,
urlcolor=SchoolColor,
}


renewcommand{frontmatter}{
pagenumbering{roman}
input{frontmatter/personalize}
maketitle
frontispiece
dedicationpage
abstractpage
sommario
tableofcontents
phantomsection
clearpage

% figure listing - required if you have any figures
addcontentsline{toc}{chapter}{Elenco delle figure}
listoffigures
phantomsection
cleardoublepage

% table listing - required if you have any tables
addcontentsline{toc}{chapter}{Elenco delle tabelle}
listoftables
phantomsection
cleardoublepage

% acronyms

cleardoublepage
setcounter{page}{1}
pagenumbering{arabic}
}

newcommand{cover}{
pagenumbering{roman}
input{frontmatter/personalize}
makecover
}

renewcommand{maketitle}{
thispagestyle{empty}
setcounter{page}{1}
begin{center}
vbox to0pt{vbox totextheight{vfill includegraphics[width=11.5cm]{resources/unipd-light} vfill}vss}
%vspace*{fill}
begin{figure}
centering
includegraphics[height=2.5cm]{resources/unipd-bn}
end{figure}

setstretch{1.5}

scshape{Large{bfseries{Università degli Studi di Padova}}} \
line(1, 0){400} \
scshape{large{DIPARTIMENTO DI INGEGNERIA DELL'INFORMAZIONE (DEI)}} \

vspace{5pt}
small{textit{Tesi di Laurea Magistrale in}}
@mastername

setstretch{2.5}

vspace{30pt}
scshape{LARGE{bfseries{textcolor{SchoolColor}{thetitle}}}} normalsize \
vspace{25pt}
vspace{15pt}

setstretch{1.2}

vfill
begin{normalsize}
begin{flushleft}
textit{Supervisore} hfill textit{Candidato}\
vspace{1pt}
@advisor hfill @author\
Università di Padova \
vspace{6pt}
textit{Co-supervisore} \
@coadvisorOne \
@coadvisorOneUniversity
vspace{10pt}
end{flushleft}
end{normalsize}

end{center}
vspace*{fill}
singlespacing
cleardoublepage
}

newcommand{copyrightpage}{
newpage
thispagestyle{empty}
vspace*{25pt}
begin{center}
scshape noindent small copyright small theauthor \
all rights reserved, @degreeyear
end{center}
newpage
rm
}

newcommand{frontispiece}{
newpage
thispagestyle{empty}
vspace*{fill}
begin{center}
end{center}
vspace*{fill}
}

newcommand{dedicationpage}{
phantomsection
setcounter{page}{3}
vspace*{fill}
scshape noindent input{frontmatter/dedication}
vspace*{fill}
cleardoublepage
rm
}

newcommand{acknowledgments}{
phantomsection
chapter*{Ringraziamenti}
noindent
input{frontmatter/thanks}
vspace*{fill} newpage
}

newcommand{Sommario}{
phantomsection
chapter*{scshape{Sommario}}
input{frontmatter/preface}
}

newcommand{acronyms}{
phantomsection
addcontentsline{toc}{chapter}{Listing of acronyms}
chapter*{Listing of acronyms}
input{frontmatter/abbr.tex}
}

newcommand{abstractpage}{
phantomsection
setcounter{page}{5}
addcontentsline{toc}{chapter}{scshape{Abstract}}
chapter*{scshape{Abstract}}
input{frontmatter/abstract}
}

renewcommand{backmatter}{
begin{appendices}
include{chapters/appendixA}
end{appendices}
input{endmatter/personalize}
clearpage
bibliography{references}
addcontentsline{toc}{chapter}{Riferimenti}
bibliographystyle{apalike2}
include{endmatter/colophon}
}






front-matter






share|improve this question









New contributor




Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 12 at 20:46





















New contributor




Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 12 at 8:04









Daniele Dal Degan

11




11




New contributor




Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Daniele Dal Degan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass{...} and ending with end{document}.
    – Stefan Pinnow
    Nov 12 at 8:20






  • 2




    Wouldn't usepackage[italian]{babel} solve the issue? It would also use better names than “lista delle figure” (it should be “elenco”)
    – egreg
    Nov 12 at 8:38












  • It’s interesting how one Q can be “read” different ways. Per egreg’s suggestion, on this texlive 2016 system, babel produces "Indice." If the Q asks, how may the title read, say, e.g., “Table of Contents,” or "Sommario," or "Contenuto," etc., then see if this helps: tocloft documentation p.7 (sec. 2.2) renewcommandcontentsname{New ToC Title}
    – Saphar Koshet
    Nov 12 at 14:46










  • usepackage[italian]{babel} doesn't solve the issue because I also wuold change the type of font in that title. About see the documentation, I understand what I must to write, but my problem is: where can I do this? I update my question with two files of the code.
    – Daniele Dal Degan
    Nov 12 at 20:32










  • renewcommandcontentsname{New ToC Title} I use this command, I found the solution. Thanks!!
    – Daniele Dal Degan
    Nov 12 at 21:07














  • 1




    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass{...} and ending with end{document}.
    – Stefan Pinnow
    Nov 12 at 8:20






  • 2




    Wouldn't usepackage[italian]{babel} solve the issue? It would also use better names than “lista delle figure” (it should be “elenco”)
    – egreg
    Nov 12 at 8:38












  • It’s interesting how one Q can be “read” different ways. Per egreg’s suggestion, on this texlive 2016 system, babel produces "Indice." If the Q asks, how may the title read, say, e.g., “Table of Contents,” or "Sommario," or "Contenuto," etc., then see if this helps: tocloft documentation p.7 (sec. 2.2) renewcommandcontentsname{New ToC Title}
    – Saphar Koshet
    Nov 12 at 14:46










  • usepackage[italian]{babel} doesn't solve the issue because I also wuold change the type of font in that title. About see the documentation, I understand what I must to write, but my problem is: where can I do this? I update my question with two files of the code.
    – Daniele Dal Degan
    Nov 12 at 20:32










  • renewcommandcontentsname{New ToC Title} I use this command, I found the solution. Thanks!!
    – Daniele Dal Degan
    Nov 12 at 21:07








1




1




Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass{...} and ending with end{document}.
– Stefan Pinnow
Nov 12 at 8:20




Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass{...} and ending with end{document}.
– Stefan Pinnow
Nov 12 at 8:20




2




2




Wouldn't usepackage[italian]{babel} solve the issue? It would also use better names than “lista delle figure” (it should be “elenco”)
– egreg
Nov 12 at 8:38






Wouldn't usepackage[italian]{babel} solve the issue? It would also use better names than “lista delle figure” (it should be “elenco”)
– egreg
Nov 12 at 8:38














It’s interesting how one Q can be “read” different ways. Per egreg’s suggestion, on this texlive 2016 system, babel produces "Indice." If the Q asks, how may the title read, say, e.g., “Table of Contents,” or "Sommario," or "Contenuto," etc., then see if this helps: tocloft documentation p.7 (sec. 2.2) renewcommandcontentsname{New ToC Title}
– Saphar Koshet
Nov 12 at 14:46




It’s interesting how one Q can be “read” different ways. Per egreg’s suggestion, on this texlive 2016 system, babel produces "Indice." If the Q asks, how may the title read, say, e.g., “Table of Contents,” or "Sommario," or "Contenuto," etc., then see if this helps: tocloft documentation p.7 (sec. 2.2) renewcommandcontentsname{New ToC Title}
– Saphar Koshet
Nov 12 at 14:46












usepackage[italian]{babel} doesn't solve the issue because I also wuold change the type of font in that title. About see the documentation, I understand what I must to write, but my problem is: where can I do this? I update my question with two files of the code.
– Daniele Dal Degan
Nov 12 at 20:32




usepackage[italian]{babel} doesn't solve the issue because I also wuold change the type of font in that title. About see the documentation, I understand what I must to write, but my problem is: where can I do this? I update my question with two files of the code.
– Daniele Dal Degan
Nov 12 at 20:32












renewcommandcontentsname{New ToC Title} I use this command, I found the solution. Thanks!!
– Daniele Dal Degan
Nov 12 at 21:07




renewcommandcontentsname{New ToC Title} I use this command, I found the solution. Thanks!!
– Daniele Dal Degan
Nov 12 at 21:07















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Daniele Dal Degan is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459575%2fchange-name-contents-in-frontmatter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Daniele Dal Degan is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Daniele Dal Degan is a new contributor. Be nice, and check out our Code of Conduct.













Daniele Dal Degan is a new contributor. Be nice, and check out our Code of Conduct.












Daniele Dal Degan is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459575%2fchange-name-contents-in-frontmatter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents