I've created a very simple class file as follows:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cv}
\LoadClass{article}
\RequirePackage{titlesec}
\titleformat{\section}{\Large}{}{0pt}{}
When compiling the simple script:
\documentclass{cv}
\begin{document}
\section{Education}
\subsection{University of Blah}
\section{Work Experience}
\end{document}
I am met with the following error message:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./CV.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 81 language(s) loaded.
(./cv.cls
Document Class: cv
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/titlesec/titlesec.sty)
! Undefined control sequence.
l.6 \titleformat
{\section}{\Large}{}{0pt}{}
I have the package titlesec, and can use general other commands from it, so I can't fathom what the problem is here.
Best Answer
No problem here with a fully updated TeX Live 2018. Add \listfiles to the top of your document and compare it to my output: