What I'm trying to do is pretty basic it seems, but it's also above my pay grade: change the font and the color used for the TOC title Contents
and the LOT title List of Tables
(see attached screen caps).
I'd like the Candara font I use for my chapters, and the color I've picked for them, to be used for both "Table of Contents" and "List of Tables"
% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[oneside,centered,twocolumn]{book}
%\documentclass[a4paper,oneside,centered,twocolumn]{book}
\special{papersize=215.9mm,279.4mm}
%\usepackage[top=3cm, bottom=3.2cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage[english]{babel}
\usepackage{tocloft} % Customization of TOC LOF LOT
\usepackage[table,xcdraw]{xcolor} % For shading in tables
\usepackage{pdfcolmk}
\usepackage{multirow}
%\usepackage{lscape} %to put the long table of dwellings sideways
%\usepackage{wallpaper}
\usepackage{blindtext}
%\usepackage{showframe}
\usepackage{textcomp}
\usepackage{pdfpages}
\usepackage{ltablex}
\usepackage{nicefrac} % to write fractions
\usepackage{attrib} % For source of quotations
\usepackage{lettrine} % For NewThought formatting
\usepackage{array} % To define width of columns in long table
\usepackage{booktabs} % Nicer spacing in columns
\usepackage{siunitx} % To write Celsius, etc.
\usepackage{enumitem} % To create item lists
\usepackage{caption} % To change way captions are labelled
\usepackage{scrextend}
\usepackage{threeparttable} % For table notes + To allow footnote material to stay with the tabular environment
\usepackage{etoolbox} % To make table footnote font smaller
\usepackage{threeparttablex}
\appto\TPTnoteSettings{\footnotesize}
\usepackage{textcomp} % For Numero symbol
\usepackage[T1]{fontenc}
\usepackage{titlesec,color}
\usepackage{xcolor}
\usepackage[linguistics,edges]{forest}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{titling}
\usepackage{fontspec}
\usepackage{newpxtext} % Font for document instead of obsolete Palatino
\usepackage{fancyhdr}
\usepackage{etoolbox}
% To make TOC in two columns and List of Tables into one column.
\usepackage{multitoc}
\makeatletter
\renewcommand*{\@starttoc}[1]{%
\ifthenelse{\equal{#1}{toc}}{%
\ifnum\multicolumntoc>1
\begin{multicols}{\multicolumntoc}%
\@multitoc@starttoc{#1}%
\end{multicols}%
\else
\@multitoc@starttoc{#1}%
\fi}{}%
\ifthenelse{\equal{#1}{lot}}{%
\ifnum\multicolumnlot>1
\begin{multicols}{\multicolumnlot}%
\@multitoc@starttoc{#1}%
\end{multicols}%
\else
\@multitoc@starttoc{#1}%
\fi}{}%
\ifthenelse{\equal{#1}{lof}}{%
\ifnum\multicolumnlof>1
\begin{multicols}{\multicolumnlof}%
\@multitoc@starttoc{#1}%
\end{multicols}%
\else
\@multitoc@starttoc{#1}%
\fi}{}%
}
\makeatother
\renewcommand{\multicolumnlot}{1}
% CHAPTER, SECTION, SUBSECTION STYLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newfontfamily\headingfont[]{Candara}
\titleformat{\chapter}[display]
{\bfseries\color{blue}\filcenter\fontsize{35}{35}\headingfont} % Size of Chapter1&Chapter
{\huge\MakeUppercase\headingfont{\chaptertitlename} \thechapter}
{12pt}
{\tikz[remember picture,overlay]\node[inner sep=0pt] at ($(current page.north) +
(0pt,-117pt)$) {\includegraphics[width=14cm]{chapterHead_10cm}};}
\titlespacing{\chapter}{0pt}{50mm}{42.5mm}
\titleformat*{\section}{\LARGE\color{orange}\headingfont}
\titleformat*{\subsection}{\Large\color{orange}\headingfont}
\titleformat*{\subsubsection}{\large\color{orange}\headingfont}
\renewcommand{\maketitlehooka}{\headingfont}
\begin{document}
% To inlcude background wallpaper/image
%\CenterWallPaper{1}{TKML_ESB_Page_Background_2}
%\layout
% FRONTMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
\tableofcontents
\clearpage
\addcontentsline{toc}{section}{\listtablename}
\listoftables
\clearpage
\onecolumn
\thispagestyle{plain} % To not have "List of Tables appear" at the top of the "Preface" page
\section{Preface}
\blindtext
\clearpage
\thispagestyle{plain} % To not have "List of Tables appear" at the top of the "Preface" page
\section{Introduction}
\blindtext
\twocolumn
\clearpage
% MAINMATTER STARTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\blindtext
\end{document}
\addto\captionsenglish{\renewcommand{\contentsname}{\textcolor{green}{Contents}}}
I can't test, because no MWE.fontspec
, which selects modern fonts. It won’t work (although it could be made to if you really wanted). You should remove the packagesfontenc
,textcomp
,intputenc
andnewpxtext
, and add the command\setmainfont[Scale=1.0]{Candara}
. If you want a font that looks likenewpx
, either replaceCandara
withTeX Gyre Pagella
, or better yet, use the original both of them are cloned from:\setmainfont[Scale=1.0, Ligatures={Common, Rare, TeX}]{Palatino Linotype}
.