I have the following code, which runs and formats nicely.
\documentclass[a4paper,11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{classicthesis}
\usepackage[english]{babel}
\usepackage{mathtools}
\usepackage{enumitem}
\begin{document}
\section*{Examples}
For each function $f$ given,
\begin{enumerate}
\begin{enumerate}
\item Sketch the graph of $f.$
\item Write the open intervals for which $f$ is continuous.
\item Write the open intervals for which $f$ is increasing.
\item Write the open intervals for which $f$ is decreasing.
\item Write the open intervals for which $f$ is concave up.
\item Write the open intervals for which $f$ is concave down.
\end{enumerate}
\item $f(x)=x^3-x^2-x+1.$
\item $f(x)=\dfrac{x^2-2x+2}{x-1}.$
\item $f(x)=x\sqrt{3-x}.$
\item $f(x)=\dfrac{x^3}{36}\sqrt{7-x}.$
\end{enumerate}
\end{document}
But it gives a missing \item error. The result,
How should I edit the code to avoid the error, yet keep the same format and output?



xypackage. Now, commenting that out, the remaining issue is, thatenumerateexpects an\item, not another\begin{enumerate}– Aug 02 '15 at 22:55lmodernis certainly unnecessary as it will have no effect at all on your document.mathtoolsloadsamsmathanyway. Betterxcolorthancolor. Also, it would be better to usescrbookwithclassicthesis. It would also be better not to useclassicthesis, but that's a different issue. Finally,tabucannot be recommended if you hope your document will remain compilable in the future as the author has promised backwards incompatible changes. Once that happens, documents which use it will break. – cfr Aug 02 '15 at 23:02appendixnecessary here? Orhyperref? You don't really need anything except the document class andenumitem, do you? – cfr Aug 02 '15 at 23:04cfr-lmrather thanlmodern). But loadinglmodern*has no effect on your document*. Use the properties listing in your PDF viewer or runpdffonts <filename>.pdfto see what fonts you are actually getting. There is no Latin Modern there. I ran your example just to make sure before I commented earlier and not one Latin Modern font is used. – cfr Aug 02 '15 at 23:39classicthesis. Loadinglmodernbeforehand makes no difference.lmodernoverwrites the defaults. Thenclassicthesisoverwrites them all over again. It won't do any harm - it is just pointless and misleading if it makes you think you are getting LM. (You are getting a mixture of Computer Modern and various postscript fonts in the above MWE.) – cfr Aug 02 '15 at 23:51classicthesisitself is usually about 95% of the problem in questions which use it. This question is rather unusual in thatclassicthesisitself is not actually involved in the issue. – cfr Aug 03 '15 at 00:00