降级的 TeX 文件?

降级的 TeX 文件?

问题:

大家好。我尝试安装一些软件包(subfigure/subfig 和 mcode),但破坏了我的整个 TeX。我正在运行 Kubuntu 12.04,下载了文件,创建了 .sty 文件并将它们放入相关文件夹中。然后我运行

sudo texhash

并且可以肯定

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

这是我的 .sty 文件所在的文件夹。现在,每当我想要生成 .pdf 文件时,Kile 都会显示以下错误(要查看错误代码,请向下滚动):

截屏

我想,我没有更新 TeX,而是降级了,有人能帮帮我吗?

谢谢!

代码:

\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}

错误代码:


*****     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.

相关内容