I am in the process of writing my own class for CV/Resume purposes, with the help of this website. However, when I compile cv.tex I get an error of undefined control sequence and also a missing \begin{document error}. Below I have included the code for cv.tex and my_cv.cls (the class file I am writing). I am unable to figure out what exactly has been causing these errors, but when I build into PDF, I get the desired output but with a blank page preceding it (the error messages do not go away).




\datedsubsection{University of Blah}{2016--}

\subsection{Blah Blah}






    \section[#1]{#1 \hfill #2}

    \subsection[#1]{#1 \hfill #2}

1 Answer 1


You have a typo in the first line of your class file. If you compile interactively, LaTeX tells you this.

! Undefined control sequence.
l.5 \NeedsTexFormat

The macro should be

  • 3
    (the difference is the X in TeXFormat that must be written with upper case. Took me a while to find it!)
    – ebosi
    Jul 24, 2016 at 8:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .