我很难让我的 latex 再次运行,我即将撰写一篇博士论文。当我编译当前文件时,缺少一些包,但即时安装解决了这个问题,直到我收到错误
! Package biblatex Error: Outdated 'xstring' package.
这坚持了我迄今为止的所有努力,我将在下面描述:
- 取消重新安装 xstring 包;手动删除并下载,检查包管理器中的日期:打包日期:2013-10-23,似乎是最新的。
- 但
\includepackage[...]{biblatex}
错误仍然存在 将文件压缩为
\documentclass[12pt]{article} \begin{document} lorem ipsum \end{document}
但错误仍然存在
关闭项目,打开一个新文件并编译上述最少代码 - 没有问题
不知道该如何处理,请向 stackexchange 寻求帮助
[编辑] 在撰写帖子时,我意识到错误消息上面的几行:
Writing index file Dissertation.idx (C:\Users\xxx\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.sty (C:\Users\xxx\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.sty (C:\Users\xxx\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.def)) (C:\Users\xxx\AppData\Roaming\MiKTeX\2.9\tex\latex\url\url.sty) (C:\Users\xxx\AppData\Roaming\MiKTeX\2.9\tex\latex\xstring\xstring.sty (xstring.tex)) ! Package biblatex Error: Outdated 'xstring' package.
并将上面的 xstring.sty 替换为新下载的
C:\Program Files\MiKTeX 2.9\tex\latex\xstring
但错误仍然存在
可能有趣的信息:
- Windows 7
- Miktex 2.9
- 微软WindowsEdt 9
- 它做过几周前我上次编译的时候
原文序言:
%Typische Dissvorlage im Tex-Style % Einstellungen für das IACETH der ETH Zürich % von Marc Wüest (2001) % Modifikationen Jörg Mäder (2003) % Mehr wichtige Infos unter % http://iacweb.ethz.ch/en/various/Mittelbau/disslatex.html % Erstellen in UNIX (evt in einem Skript ablegen: diss_script) % latex diss_main.tex % makeindex diss_main % bibtex diss_main % latex diss_main.tex % latex diss_main.tex % dvips -o diss_main.ps diss_main.dvi % gv diss_main.ps \documentclass[12pt]{ETHthesis} %%Language \usepackage{E} %%ETH-Layout \usepackage{ETHthesis} %% % vereinfachtes Eingeben von Leerschlägen hinter Shortcut-Commands % Beispiel: \newcommand{\DNA}{deoxyribose nucleid acid\xspace} %\usepackage{xspace} %???? %\usepackage{foot} %Verbessertes Float-Handling mit Schalter H (gleiche Position wie im Skript) \usepackage{float} %%Force to place figures only after they have been referenced for the first time \usepackage{flafter} %%Enables \FloatBarrier command \usepackage{placeins} %% %%for landscape pages \usepackage{pdflscape} %% %%Subfigure package \usepackage{subfigure} % \renewcommand{\thesubfigure}{[\alph{subfigure}]} \renewcommand{\thesubtable}{[\alph{subtable}]} %%Some different symbol packages \usepackage{amssymb} %\usepackage{amstext} %\usepackage{amsfonts} %\usepackage{amsbsy} %\usepackage{amscd} %\usepackage{latexsym} \usepackage{amsmath} %% \usepackage[toc,page]{appendix} %% package for rotating figures \usepackage{rotating} %including graphics files, rotating parts of a page, and scaling parts of a page \usepackage{graphicx} \usepackage{epstopdf} %%Package for table formatting %\usepackage{tabularx} %% %% %%Definitions for CV \newcommand{\entrylabel}[1]{\mbox{#1}\hfil} \newenvironment{CV} {\begin{list}{} {\renewcommand{\makelabel}{\entrylabel} \setlength{\labelwidth}{84pt} \setlength{\leftmargin}{84pt} }} {\end{list} } %% %besserer eps import: \eps import ERSETZEN durch \epsfig %\usepackage{epsf} %%Setting language \usepackage[english,german]{babel} \usepackage{csquotes}% Recommended by some webpage %% %%Setting page \usepackage{a4} %% %%Package to enable line spacing set-up \usepackage{setspace} %% %% package for displaying rotated pages \usepackage{pdflscape} %% package for frames around figures %%\usepackage{mdframed} %%Definition of input encoding to allow öä etc. %\usepackage[ansinew]{inputenc} % utf8 support %!!!!!!!!!!!!!!!!!!!! %\usepackage[T1]{fontenc} % code for pdf file %!!!!!!!!!!!!!!!!!!!! \usepackage{ae} %%Setting the fontfamily \renewcommand{\familydefault}{\rmdefault} %\renewcommand{\familydefault}{phv} %% %entsprechend Eintragen und Auskommetierung aufheben %\graphicspath{{}{/home/DEINNAME/DAS/VERZEICHNIS}{/WO/AUCH/IMMER}} %%PAGE LAYOUT \setlength{\topmargin}{-10mm} \setlength{\headheight}{5.mm} \setlength{\headsep}{+15.mm} \setlength{\textheight}{220mm} \setlength{\footskip}{+20.mm} \setlength{\textwidth}{161mm} \setlength{\oddsidemargin}{0mm} \setlength{\evensidemargin}{0mm} \setlength{\parindent}{0pt} %%Skip between the paragraphs \setlength{\parskip}{1ex plus 0.0ex minus 0.0ex} %% %%New values \setcounter{topnumber}{2} \setcounter{bottomnumber}{2} \setcounter{totalnumber}{4} \renewcommand{\topfraction}{0.85} \renewcommand{\bottomfraction}{0.85} \renewcommand{\textfraction}{0.15} \renewcommand{\floatpagefraction}{0.7} %% %%Original values %\renewcommand{\floatpagefraction}{0.9} %\renewcommand{\topfraction}{0.9} %\renewcommand{\bottomfraction}{0.9} %\renewcommand{\textfraction}{0.1} %\renewcommand{\textfloatsep}{5mm} \renewcommand{\baselinestretch}{1.15} %% \initETHthesis \makeindex %Needed line %%New command for degree sign \newcommand{\grad}{\ensuremath{^\circ}} %% \providecommand{\e}[1]{\ensuremath{\times 10^{#1}}} %%The natbib package is a reimplementation of the LATEX \cite command AND INCOMPATIBLE WITH BIBLATEX!! %\usepackage[numbers,compress]{natbib} % Start of 'ignore natbib' hack %\let\bibhang\relax %\let\citename\relax %\let\bibfont\relax %\let\Citeauthor\relax %\expandafter\let\csname [email protected]\endcsname\relax % End of 'ignore natbib' hack \usepackage[ backend=biber, style=alphabetic, natbib=true, ]{biblatex} \emergencystretch=1em % removes overful box warning in the bibliography %das File mit den Referenzen drin, %\bibliography{mendeley/library} \addbibresource{mendeley/library.bib} %%Package used for the acronym list \usepackage[printonlyused,withpage]{acronym} %\usepackage[printonlyused,nohyperlinks]{acronym} %% %%Package used for the nomenclature \usepackage{nomencl} \setlength{\nomitemsep}{-\parsep} %Linespacing \makenomenclature %Needed line %% %\usepackage{bookmark} %%Package used for the tables \usepackage{booktabs} \renewcommand{\arraystretch}{1.2}%Linespacing %% %% package for using chemical formulae \usepackage[version=3]{mhchem} %package for SI units \usepackage[per-mode=fraction]{siunitx} \DeclareSIUnit\year{a} %% package for using colors \usepackage{xcolor} %% use document intern hyperlinks, needs xcolor %\usepackage{hyperref} \usepackage[bookmarks,raiselinks,pageanchor, hyperindex,colorlinks, citecolor=blue!80!black, linkcolor=blue!80!black, urlcolor=blue!80!black, filecolor=blue!80!black, menucolor=orange, %pagebackref, pdfauthor={Christian Bolesch}, pdftitle={Heated Neutron Tomography} ]{hyperref} %%Formatting of the font used in Acronyms %\renewcommand{\bflabel}[1]{{\textbf{#1}\hfill}} %% %\usepackage[titletoc]{appendix} %ALLOWS WHITEPAGE IN THE BOTTOM OF THE PAGE \raggedbottom %PENALTIES FOR LEAVING LAST LINE OF PARAGRAPH ON THE NEXT PAGE \widowpenalty=10000 %more than one line (beginning) \clubpenalty=10000 %more than one line (end) %%DISABLE HYPHENATION %\tolerance=1 % \emergencystretch=\maxdimen % \hyphenpenalty=10000 % \hbadness=10000 %%% %\includeonly{design} %% Chris specific stuff \newcommand{\kgpmmm}{\si[per-mode=fraction]{\kilogram\per\cubic\meter}} \newcommand{\kjpkg}{\si[per-mode=fraction]{\kilo\joule\per\kilogram}} \usepackage{footnote} \usepackage{threeparttable} \makesavenoteenv{tabular} \makesavenoteenv{table} \usepackage{afterpage} %intended to fix the half empty pages before landscape pages %\raggedbottom % supposedly to force footnotes on the bottom of the page where tey apear \usepackage{dcolumn} \newcolumntype{d}[1]{D{.}{.}{#1}}
谢谢你的帮助!
答案1
您的文档文件夹中有一个xstring.tex
。请删除或重命名此文件。