Center uppercase chapter title with titlesec!

chapterstitlesec

I would like three things:

  1. uppercase title and label,
  2. not bold, and
  3. centered.

I put the respective commands in the {label} section of the \titleformat command but nothing is happening. Both label and title appear to the left, bold, and not uppercase.

I just spent two hours reading the documentation for Titlesec and I must confess I did not get all of it. Please, help.

\documentclass[letterpaper,12pt]{book}
\usepackage[hmargin={1in},vmargin=1in]{geometry}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot[L,R]{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\usepackage{titlesec}
\titleformat{\chapter}[display]{\normalfont\Large\rmfamily}{\filcenter\MakeUppercase{\chaptertitlename} \thechapter}{1pc}{}


\usepackage{setspace}
\AtBeginDocument{\doublespacing}
\usepackage{stackengine}

\usepackage{polyglossia}
\usepackage{fontspec}

\setmainlanguage[variant=us]{english}
\setotherlanguage{hebrew}
\setotherlanguage[variant=ancient]{greek}

\setmainfont{Times New Roman}
\newfontfamily\greekfont[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{SBL BibLit}
\newfontfamily\hebrewfont[Script=Hebrew,Contextuals=Alternate,Ligatures=Required]{SBL BibLit}

\begin{document}
\chapter{Palaeographical Profile}

\end{document}

Best Answer

You need to put \filcenter in a different position and also to add \MakeUppercase for the chapter title.

Here's just the necessary code (with just titlesec for showing the issues)

\documentclass[letterpaper,12pt]{book}
\usepackage{titlesec}

\titleformat{\chapter}[display]
  {\normalfont\Large\rmfamily\filcenter}
  {\MakeUppercase{\chaptertitlename} \thechapter}
  {1pc}
  {\MakeUppercase}

\begin{document}

\chapter{Palaeographical Profile}

\end{document}

enter image description here

Here's an edited version of your preamble with less clutter: packages first and then settings.

\documentclass[letterpaper,12pt]{book}
\usepackage[hmargin={1in},vmargin=1in]{geometry}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{stackengine}
\usepackage{polyglossia}
\usepackage{fontspec}

\setmainlanguage[variant=us]{english}
\setotherlanguage{hebrew}
\setotherlanguage[variant=ancient]{greek}

\setmainfont{Times New Roman}
\newfontfamily\greekfont{SBL BibLit}[
  Script=Greek,
  Scale=MatchUppercase,
  Ligatures=TeX
]
\newfontfamily\hebrewfont{SBL BibLit}[
  Script=Hebrew,
  Contextuals=Alternate,
  Ligatures=Required
]

\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0pt}

\titleformat{\chapter}[display]
  {\normalfont\Large\rmfamily\filcenter}
  {\MakeUppercase{\chaptertitlename} \thechapter}
  {1pc}
  {\MakeUppercase}

\doublespacing

\begin{document}

\chapter{Palaeographical Profile}

\end{document}
Related Question