錯誤訊息 pgfplots pgfkeyscurrentname

錯誤訊息 pgfplots pgfkeyscurrentname

我想繪製一個 pgfpicture,除此之外還添加一些圖片檔案。

使用下面的程式碼,我收到以下錯誤訊息:

套件 pgfkeys 錯誤:我不知道金鑰 '/pgf/decoration/\p gfkeyscurrentname ',我將忽略它。也許你拼錯了。有關說明,請參閱 pgfkeys 套件文件。輸入 H 以獲得立即幫助。 ... l.97 \項目 R 2pt (180:-40)

我必須在以下程式碼中更正或添加什麼?

    \documentclass[a0,portrait]{a0poster}

        \usepackage{multicol} 
        \columnsep=100pt 
        \columnseprule=3pt 
        \usepackage[svgnames]{xcolor} 
        \usepackage{times} 
        \usepackage{amsmath}
        \usepackage{graphicx} 
        \graphicspath{{figures/}} 
        \usepackage{booktabs} 
        \usepackage[font=small,labelfont=bf]{caption} 
        \usepackage{amsfonts, amsmath, amsthm, amssymb} 
        \usepackage{wrapfig} 
        \usepackage{xcolor}
        \usepackage{mathtools,amssymb,lipsum}
        \usepackage[framemethod=tikz]{mdframed}
        \usepackage{MnSymbol}
        \usepackage{tikz}
        \usetikzlibrary{matrix}
        \usepackage{pst-node}
        \usepackage{tikz-cd} 

        \usepackage{fancybox}
        \usepackage{tikz}
        \usepackage{subcaption}
        \usepackage{multirow}
        \usepackage{caption}
        \usepackage{algpseudocode}
        \usepackage{lipsum}
        \usepackage{algorithmicx,algorithm}
        \usetikzlibrary{intersections,automata,arrows,positioning,calc}
        \usepackage{ulem}
        \DeclareCaptionFormat{algor}{%
          \hrulefill\par\offinterlineskip\vskip1pt%
            \textbf{#1#2}#3\offinterlineskip\hrulefill}
        \DeclareCaptionStyle{algori}{singlelinecheck=off,format=algor,labelsep=space}
        \usepackage{pgfplots}
        \pgfplotsset{compat=1.14}

        \title{Poster}
\usetikzlibrary{bending}
        \begin{document}
        \setcounter{section}{1}
        \setcounter{subsection}{1}

        % Shorthands
        \newcommand*\iffdef{\overset{\text{def}}{\iff}}
        \DeclarePairedDelimiter\abs{\lvert}{\rvert}
        \DeclarePairedDelimiter\norm{\lVert}{\rVert}

        % Theorem
        \mdtheorem[
          linecolor=NavyBlue,
          frametitlefont=\sffamily\bfseries\color{white},
          frametitlebackgroundcolor=NavyBlue,
        ]{Def}{Theorem}

        \begin{multicols}{2}

        text

        \begin{figure}[H]
        \begin{center}\begin{tabular}{cc}
        \begin{tikzpicture}[scale=6.3,cap=round,>=latex]
          \def\Radius{.3cm}
          \draw (0cm,0cm) circle[radius=\Radius];
          \begin{scope}[
            -{Stealth[round, length=8pt, width=8pt, bend]},
            shorten >=4pt,
            very thin,
          ]
        %    \draw (0.315cm, -0.38cm) arc(-40-3:-40+3:\Radius);
            \draw (-\Radius, 0) arc(180+3:180-3:\Radius);
          \end{scope}
          % draw the two points 
          \fill[radius=.7pt]
            (-20:\Radius) circle[] node[below right] {$e+r$}
            (-40:\Radius) circle[] node[below right] {$0$}
            (-60:\Radius) circle[] node[below right] {$1$}
            (-80:\Radius) circle[] node[below right] {$...$}
            (-220:\Radius) circle[] node[below right] {$e-1$}
            (-240:\Radius) circle[] node[below right] {$e$}
          ;
          \def\Item#1#2(#3:#4){%
            \path[
              decoration={
                text along path,
                text={#1},
                text align=center,
              },
              decorate,
            ]
              (#3:\Radius-#2) arc(#3:#4:\Radius-#2)
            ;
          }
          \Item R 2pt (180:-40)
          \Item E 1pt (180:300)
        \end{tikzpicture}
        &
        \includegraphics[scale=0.8]{pic.pdf}\\
        (a) & (b) 
        \end{tabular}\end{center}
        \caption[Illustration]{some text}}
        \label{Fig:1}
        \end{figure}



        \end{multicols}
        \end{document}

答案1

新增\usetikzlibrary{decorations.text}}刪除\caption[]{}.

您可能想稍微清理一下您的序言,因為您多次加載了多個包。

相關內容