Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have installed texmaker (version:4.0.3) and it worked for some test file. But when I tried to run a predefined template, texmaker can't generate the changed pdf (it shows the old pdf). So I checked out the log and found an error

Package epstopdf Warning: Drivers other than `pdftex.def' are not supported.

)) (/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.cfg))
(./booktabs.sty) (./rotating.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)) (./listings.sty
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty

***
*** This file requires `listings.sty' version 1.5.
*** You have a serious problem, so I'm exiting ...
***

texlive-latex-recommended and texlive-latex-extra both packages are already installed. Also /usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty file is available.

System:

Ubuntu 13.10 64bit

What is the problem? What am I missing?

share|improve this question
    
What version is your listings.sty? Does running pdflatex on the file directly work? –  bombcar Mar 26 at 19:57
    
@bombcar Thanks for quick reply. listings.sty version is 1.5 [\def\fileversion{1.5} from file], and pdflatex file.tex is showing the same error. –  shantanu Mar 26 at 20:02
    
I think its subfigure.sty problem. Is it? –  shantanu Mar 26 at 20:28
1  
Why is it loading listings from current dir? Along with booktabs and rotating. That lstmisc is probably not right for the local listings version. –  daleif Mar 26 at 20:41
1  
@daleif You are right, I found a local listing.sty. Which version is 1.4(older). Removing this file works for me. Please post the comment as answer. I will mark it as accepted answer –  shantanu Mar 26 at 20:44

1 Answer 1

up vote 0 down vote accepted

While debugging, the log file is always a good place to look if you cannot find obvious errors in the code.

One thing to be suspicious about is packages loaded from other places than the latex dist. Double check those.

In this case a stray listings.sty was a problem

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.