我想绘制一张 pgfpicture,并在其上添加一些图片文件。
使用下面的代码,我收到以下错误消息:
软件包 pgfkeys 错误:我不知道密钥“/pgf/decoration/\p gfkeyscurrentname”,我将忽略它。也许您拼错了。请参阅 pgfkeys 软件包文档以获取解释。键入 H 可立即获得帮助。... l.97 \Item 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[]{}
您可能需要稍微清理一下您的序言,您多次加载了多个包。