TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


Hey everyone. I tried to install some packages (subfigure/subfig and mcode), but destroyed my whole TeX. I am running Kubuntu 12.04, downloaded the files, created the .sty-Files and put them into the associated folder. Then I ran

sudo texhash

and to be sure

 sudo latex /usr/local/texlive/2013/texmf-dist/tex/latex/*

which is the folder, my .sty-files are in. Now, whenever I want to produce a .pdf File, Kile shows the following error (for error-code scroll further down):


I guess, I did not up- but downdated TeX Can anyone help me?



\usepackage[colorlinks=true, linkcolor=Blue, citecolor=Blue, urlcolor=Blue, backref=page]{hyperref}
% Sprachpaket
% Umlaute

% Zur Darstellung von URLs im Literaturverzeichnis

Error Code:

*****     PDFLaTeX output: 
*****     cd "/home/david/Projekte/TWIN-SEA/TeX"
*****     pdflatex -interaction=nonstopmode Matrix.tex
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class

LaTeX Warning: You have requested, on input line 406, version
`2010/12/07' of package ltxcmds,
but only version
`2009/08/05 v1.0 Some LaTeX kernel commands for general use (HO)
is available.

! Undefined control sequence.
l.417 \ltx@IfUndefined

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.417 \ltx@IfUndefined{p

! Package pdftex.def Error: Option `pdftex' requires pdfTeX,
(pdftex.def)                but pdfTeX features are missing.
(pdftex.def)                Loading of this driver file is aborted.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.

l.422   }\@ehc

))) (/usr/share/texmf-texlive/tex/latex/subfig/subfig.sty
For additional information on amsmath, use the `?' option.

! LaTeX Error: File `kvdefinekeys.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.252 \RequirePackage{kvdefinekeys}[2010/03/01]
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on Matrix.log.
share|improve this question

closed as off-topic by Jubobs, Papiro, percusse, Guido, Christian Hupfer Sep 28 '14 at 19:51

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.SX! By the way, that screenshot is really small ;-) – Christian Hupfer Jun 3 '14 at 12:47
i can't understand why you chose to do sudo latex /usr/local/texlive/2013/texmf-dist/tex/latex/* -- i'm not surprised that it didn't help much, but that it found and tried to process any files (there's only directories in my directory at that address). did you copy your downloaded stuff into that directory? if so, it is not surprising it doesn't work. – wasteofspace Jun 3 '14 at 13:18
I think, it is better to move the current (faulty) installation to another place and reinstall again, and then place the packages at the right position texmf-dist/tex/latex/package_name' and afterwards do a texhash` (as root or via sudo) – Christian Hupfer Jun 3 '14 at 13:24
from the path to your latex installation, it seems like you didn't use the package manager provided by ubuntu to install tex. Was it on purpose ? Otherwise you could try to get rid of the faulty installation and use the package manager to reinstall tex. It seems however like mcode.sty is not available from a package, and you might still have to install it by hand. – Vincent Nivoliers Jun 3 '14 at 14:55
This question appears to be off-topic because it's about an installation problem that cannot be reproduced. – Jubobs Sep 28 '14 at 19:07

Browse other questions tagged or ask your own question.