I decided to use \usepackage[center]{titlesec} in order to center my sections, but I don't want them displaying the chapter/section numbering in the chapter/section headings so I applied the titleformat. But with this new macro, it erased the [center] command.
\documentclass[14pt]{memoir}
\usepackage[center]{titlesec}
\usepackage{lipsum}
\titleformat{\chapter}
{\Large\bfseries}
{}
{0pt}
{\huge}
\titleformat{\section}
{\Large\bfseries}
{}
{0pt}
{\large}
\begin{document}
\tableofcontents
\chapter{This shouldn't be centered}
\clearpage
\section{This should be centered}
\lipsum[1]
\subsection{This should be centered}
Nothing to see here.
\end{document}
Result:
Best Answer
like this ? :
Result: