Oveleaf say that it's possible to use a set of pre-installed fonts here. One of these is "CMU Classical Serif" I want to change the section title in my document to be "CMU Classical Serif"
I try the following, but the font does not change at all (using package titlesec, XeLaTex compiler for fontspec)
\newfontfamily\sectionfonts{CMU Classical Serif}
\titleformat*{\section}{ \center \large \bf}
\titleformat*{\subsection}{\bf}
\titleformat*{\subsubsection}{\it}
Is this a problem with Overleaf or have I done something wrong?
Edit: there are no errors, not even "font not found", just no changes...
titlesec
doesn't use\sectionfonts
directly, so you'll need to actually call it in your\titleformat
perhaps?\center
should never be used as a command form, I think you intended \centering`