I am writing a document using lmodern package and I need to redefine all sections in order to be bolded and in small caps. I cannot change the lmodern font for another one including bold small caps and tricks like
\usepackage{lmodern}
\usepackage{fontspec}
\usepackage[T1]{fontenc}
{\fontfamily{cmr}\textsc{\textbf{Hello World}}}
do not seem to work in Lualatex when I define:
\titleformat{\section}[hang]{\centering\fontfamily{cmr}\large\textsc\textbf}{\Roman{section}.}{2ex}{}[]
Is there a way to make all sections bolded and small caps while keeping lmodern package for the rest of the document?