<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
I'm using TexShop for my master thesis. If I insert the package subfigure in the preamble I get the following error<br><br><br>! LaTeX Error: Command \c@lofdepth already defined.<br>               Or name \end... illegal, see p.192 of the manual.<br><br>See the LaTeX manual or LaTeX Companion for explanation.<br>Type  H <return>  for immediate help.<br> ...                                              <br>                                                  <br>l.124 \newcounter{lofdepth}<br>                           <br>? <br><br>This is the preamble I'm using<br><br>\documentclass[a4paper,12pt]{kth-mag}<br>\usepackage{url}<br>\usepackage{amsmath, amsthm, amssymb}<br>\usepackage[T1]{fontenc}<br>\usepackage{graphicx}<br>\usepackage{textcomp}<br>%\usepackage{subfigure}<br>\usepackage{lmodern}<br>\usepackage[latin1]{inputenc}<br>\usepackage[swedish,english]{babel}<br>\usepackage{nada-ex}<br><br><br>The problem seems to be really odd, because using a different compiler than TexShop I don't get this error anymore. <br>Thank you in advance for any hints<br><br>/rust<br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>