pgf 安装错误 - MiKTeX

pgf 安装错误 - MiKTeX

我从另一个试图生成树的问题中获取了这段代码:

\documentclass{article}
\usepackage{tikz-qtree}
\begin{document}
\tikzset{edge from parent/.style=
{draw, edge from parent path={(\tikzparentnode.south)
-- +(0,-8pt)
-| (\tikzchildnode)}}}
\begin{tikzpicture}
\matrix
{
\node{\Tree
    [.Class  \edge[color=white]; 
    [.Order  \edge[color=white];
    [.Family \edge[color=white]; 
    [.Genus ]]]]};
&
\node{\Tree 
 [.{$\gamma$-proteobacteria} 
    [.Alteromonadales 
        [.Alteromonadaceae  {Glaciecola}  Alteromonas Agarivorans ] ]
    [.Vibrionales [.Vibrionacae Vibrio ]]]};\\
};           
\end{tikzpicture}

\end{document}

但是在 MiKTeX 2.9 中使用 TeXworks 进行编译时我总是收到相同的错误:

This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9)
entering extended mode
(C:/Users/nagi/Desktop/these/myLaTeX/these.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\latex\tikz-qtree\tikz-qtree.sty"
======================================================================
pdflatex.EXE: Cannot start MiKTeX package manager.
pdflatex.EXE: Data: The class is not configured to support Elevated activation.

======================================================================


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

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

Enter file name: 

你能帮我解决这个问题吗,我真的需要在我的论文中画一些树......
谢谢。

编辑:
按照 Alan Munn 的要求,我尝试从包管理器安装 pgf,并在下载过程结束时收到此错误:

MiKTeX Problem Report Message: The operation could not be completed because the following file failed verification: C:\Users\nagi\AppData\Local\Temp\mik2E71.tmp

一段时间后,我尝试再次安装 pgf,但结果相同(错误)。

答案1

谢谢大家!有了你们的反馈,我能够运行这个示例。我在 Google 上搜索并手动安装了软件包pgf,并ms使用了软件包管理器。希望 MiKTeX 能尽快修复他们的存储库...

相关内容