我无法呈现此文档。
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
% Define block styles
\tikzstyle{decision} = [diamond, draw, fill=blue!20, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!20, text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex]
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm, minimum height=2em]
\begin{document}
\begin{figure} [h] % here
\begin{center}
\begin{tikzpicture}[node distance = 4cm, auto]
% % Place nodes
\node [block] (start) {Lorem};
\node [decision, below of=start] (decide) {Ipsum};
\node [block, left of=decide] (dagens) {Lorem};
\node [block, below of=dagens] (spara) {Ipsum};
\node [block, right of=decide] (ladda) {Lorem};
\node [block, below of=decide] (satt) {Ipsum};
\node [cloud, below of=satt] (resten) {Lorem Ipsum};
\draw [line] (start) -- (decide); % if i remove this line it works
\draw [line] (decide) -- (dagens);
\draw [line] (dagens) -- (spara);
\draw [line] (spara) -- (satt);
\draw [line] (satt) -- (resten);
\draw [line] (decide) -- (ladda);
\draw [line] (ladda) -- (satt);
\end{tikzpicture}
\end{center}
\caption {Lorem Ipsum}
\label{fig1}
\end{figure}
\end{document}
我总是收到这个错误:
! Package tikz Error: Giving up on this path. Did you forget a semicolon?.
See the tikz package documentation for explanation.
Type H <return> for immediate help.
...
l.26 \draw [line]
(start) -- (decide);
?
我正在运行 OSX,使用终端中的 pdflatex 进行渲染。