Adding \usepackage{subfig} in my code give the following error ! Undefined control sequence.<argument> \sf@counterlistl.40 \begin{document}

I tried commenting all other packages except subfig, however the error persists. The preamble of my file looks as follows

\usepackage[square, numbers, comma, sort&compress]{natbib}  
\hypersetup{urlcolor=blue, colorlinks=true} 

this question is similar, however I am not using the caption package

The following minimal code reproduces the error on my machine.

\documentclass[a4paper, 11pt, oneside]{Thesis}  
  • Welcome to SE! Please provide the simplest code, which we can compile and which exibits your problem. With following simple MWE I cannot reproduce your problem: \documentclass{article} \usepackage{graphicx}\usepackage{subfig}\begin{document} \begin{figure}\subfloat[]{\includegraphics{example-image}} \end{figure}\end{document} – Zarko Jan 28 '16 at 5:34
  • Thesis class, there is more than one so where we can find this one – touhami Jan 28 '16 at 6:03
  • It seems that problems lie in documentclass thesis. In Other documentclass-es (article, book) your MWE works. Unfortunately, I don't know it. – Zarko Jan 28 '16 at 6:11
  • 1
    The problem was with the Thesis cls file. The file included the subfigure package which was causing problems. Thanks for you help – sandy Jan 28 '16 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.