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.

Question:

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):

Screenshot

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

Thanks!

Code:

\documentclass[11pt]{report}
\usepackage{geometry}                
\geometry{a4paper}                   
\usepackage{graphicx,subfig}
\usepackage{amsmath} 
\usepackage{amssymb}
\usepackage{wasysym}
\usepackage{booktabs}
\usepackage{epstopdf}
\usepackage{rotating}
\usepackage{longtable}
\usepackage[dvipsnames]{xcolor}
\usepackage{colortbl} 
\usepackage[colorlinks=true, linkcolor=Blue, citecolor=Blue, urlcolor=Blue, backref=page]{hyperref}
% Sprachpaket
\usepackage[english]{babel} 
% Umlaute
\usepackage[applemac]{inputenc}
\usepackage{tikz}

% Zur Darstellung von URLs im Literaturverzeichnis
\usepackage{url}
\usepackage[round]{natbib}
\usepackage{fancyhdr}
\pagestyle{fancy}

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
(./Matrix.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size11.clo))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty))
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def
(/usr/share/texmf-texlive/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ltxcmds.sty)

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
{pdftexversion}{%

! 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
dftexversion}{%

! 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
(/usr/share/texmf-texlive/tex/latex/caption/caption.sty
(/usr/share/texmf-texlive/tex/latex/caption/caption3.sty)))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texmf-texlive/tex/latex/wasysym/wasysym.sty)
(/usr/share/texmf-texlive/tex/latex/booktabs/booktabs.sty)
(/usr/share/texmf-texlive/tex/latex/oberdiek/epstopdf.sty
(/usr/share/texmf-texlive/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texmf-texlive/tex/latex/oberdiek/grfext.sty

! 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]
^^M
!  ==> 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 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 at 12:47
1  
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 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 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 at 14:55
4  
This question appears to be off-topic because it's about an installation problem that cannot be reproduced. –  Jubobs Sep 28 at 19:07

Browse other questions tagged or ask your own question.