latex table of contents change name code example Example: rename table of contents latex \renewcommand{\contentsname}{Whatever}