使用以下代码:
\documentclass[conference]{IEEEtran}
\usepackage{balance}
\IEEEoverridecommandlockouts
\usepackage[dvips]{graphicx}
\usepackage{listings}
\usepackage[OT4,T1]{fontenc}
\interdisplaylinepenalty=2500
\usepackage{dcolumn}
\usepackage{graphics}
\usepackage{graphicx} % standard LaTeX graphics tool
% when including figure files
\usepackage{multicol} % used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
\usepackage{newtxtext} %
\usepackage{newtxmath} % selects Times Roman as basic font
\usepackage{kotex}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage{amsfonts,amssymb,amsmath}
\usepackage{tikz,tikz-inet,pgf,pgfplots}
\usetikzlibrary{arrows,patterns,shapes,automata,backgrounds,petri,fit}
\pgfplotsset{compat=1.16}
\title{aaa}
\author{xx}
\date{June 2020}
\begin{document}
\maketitle
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm,
semithick]
\tikzstyle{every state}=[text=black]
\node[state] (A) {$A$};
\node[state] (B) [above left of=A] {$B$};
\node[state] (C) [above right of=A] {$C$};
\node[state] (D) [below right of=A] {$D$};
\node[state] (E) [below left of=A] {$E$};
\path (A) edge [bend left] node {25} (B)
(B) edge [bend left] node {30} (A)
(C) edge node[above] {14} (B)
(C) edge node {13} (A)
(D) edge [bend left] node {6} (A)
(A) edge [bend left] node {4} (D)
(E) edge node {5} (A)
(D) edge node[right] {2} (C)
(E) edge [bend left] node {3} (B);
\end{tikzpicture}
\end{document}
我应该获得:
而我得到的却是
答案1
主要问题是[dvips]
中的\usepackage[dvips]{graphicx}
。如果您将其删除,并使用 进行编译pdflatex
,那么它将可以工作。
钛钾我担心Z 无法与dvi->ps
汇编一起工作。
PD 还发出了警告:
Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended.
...最好按照它说的做;如果你使用 IEEE 文档类,你就必须接受它们的标题样式,没有必要改变它们(你将被迫在提交时撤消它们)。