So Im slightly frustrated because I cant figure out why TeXnic keeps saying it cant find the right .sty file. Im trying to use the subfig package, I've downloaded the package. I went to MiKTex and refreshed/updated the file name but everytime I try and compile it gives me an error. If I remove the usepackage command and remove the picture Im trying to show, the rest of the document compiles. I managed to run it using Texworks and that worked fine (but obviously I'd like to get it working in Texnic as thats what Im familiar with).
I dont understand because it seems to be seeing other packages, just not this one.
What am I doing wrong?
This is the relevant code:
Code: Select all
Code, edit and compile here:
\documentclass[]{report}\usepackage{graphicx,subfig}\linespread{1.5}\begin{document}\section{Structure and Materials}lots of text goes here. then theres a picture:\begin{figure}[h]\centering\subfloat[Large Type A door]{\label{fig:bigdoor}\includegraphics[scale=0.4]{bigdoor.pdf}}\subfloat[Type I door]{\label{fig:smalldoor}\includegraphics[scale=0.35]{smalldoor.pdf}}\caption{somedoors}\label{fig:doors}\end{figure}\end{document}
Code: Select all
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded format=pdflatex 2010.5.16) 7 JUN 2010 22:22entering extended mode**F:/DSE/materials.tex(F:\DSE\materials.texLaTeX2e <2005/12/01>Babel <v3.8g> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, french, loaded.("C:\Program Files\MiKTeX 2.5\tex\latex\base\report.cls"Document Class: report 2005/09/16 v1.4f Standard LaTeX document class("C:\Program Files\MiKTeX 2.5\tex\latex\base\size10.clo"File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option))\c@part=\count79\c@chapter=\count80\c@section=\count81\c@subsection=\count82\c@subsubsection=\count83\c@paragraph=\count84\c@subparagraph=\count85\c@figure=\count86\c@table=\count87\abovecaptionskip=\skip41\belowcaptionskip=\skip42\bibindent=\dimen102)("C:\Program Files\MiKTeX 2.5\tex\latex\graphics\graphicx.sty"Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)("C:\Program Files\MiKTeX 2.5\tex\latex\graphics\keyval.sty"Package: keyval 1999/03/16 v1.13 key=value parser (DPC)\KV@toks@=\toks14)("C:\Program Files\MiKTeX 2.5\tex\latex\graphics\graphics.sty"Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)("C:\Program Files\MiKTeX 2.5\tex\latex\graphics\trig.sty"Package: trig 1999/03/16 v1.09 sin cos tan (DPC))("C:\Program Files\MiKTeX 2.5\tex\latex\00miktex\graphics.cfg"File: graphics.cfg 2005/12/29 v1.2 MiKTeX 'graphics' configuration)