\path コマンドに問題があります。制御シーケンスが定義されていません。

\path コマンドに問題があります。制御シーケンスが定義されていません。

\pathロジック スキームを作成しようとしていますが、環境のコマンドに問題がありますtikzpicture。理由はわかりませんが、ノード間の接続を作成できません。あらゆる種類のコマンド ( \path、、、など) を試しましたが、LateX をコンパイルすると\path{draw}、であると表示されます。以下のコードを参照してください。\draw\path[->]Undefined control sequence

コードのある行をコメントすると\path...正常に機能しますが、明らかにボックスは矢印でリンクされていません。

何が間違っているのでしょうか?

PS: 私はWin7、MikTeX 2.9 64ビット、TeXnicCenterを使用しています。

\documentclass[a4paper,twoside,openright,11pt]{report}    
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage[english]{babel} 
\usepackage{graphicx}
\usepackage{caption} 
\usepackage{subfig} 
\usepackage{booktabs} 
\usepackage{float} 
\usepackage{amsmath} 
\usepackage{siunitx} 
\usepackage{bbding}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\usepackage{tikz}
\usetikzlibrary{arrows,snakes,backgrounds}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{intersections}
\usepackage{listings}
\lstset{basicstyle=\small\ttfamily}
\lstset{language=Matlab}
\addto\captionsenglish{\renewcommand{\bibname}{References}}

\begin{document}
[...]
\begin{tikzpicture}[auto]

\tikzstyle{block1} = [rectangle, draw=blue, thick, fill=blue!20,
    text width=80mm, text centered, rounded corners, minimum width=80mm, 
    inner sep=2mm]
\tikzstyle{block2} = [rectangle, draw=red, thin, fill=red!20,
    text width=80mm, text centered, sharp corners, minimum width=60mm, inner sep=2mm]
\tikzstyle{line} = [draw, thick, -latex’,shorten >=0pt];
\matrix [column sep=5mm,row sep=7mm]
{
    % row 1
        \node [block1] (init) {
            \large{\lstinline$startup.m$}
            \footnotesize{
            \begin{itemize}
                \item geometry file name
                \item fluid and thermodynamic library settings
                \item \textit{``Error\_report.txt''} initialization
            \end{itemize}
            }
            }; \\
    % row 2
        \node [block1] (main) {
            \large{\lstinline$turbine_calculation_singlepoint.m$}
            \footnotesize{
            \begin{itemize}
                \item thermodynamic boundary conditions settings
                \item load geometry
            \end{itemize}
            }
            }; \\
    % row 3
        \node [block2] (turb_calc) {
            \large{\lstinline$turbine_calculation.m$}
            };  \\
    % row 4
        \node [block2] (1st_calc) {
            First stage calculation with \lstinline$stage_calculation.m$
            }; \\
    % row 5
};

\tikzstyle{every path}=[line];
\path   (init)      -- (main);
\path   (main)      -- (turb_calc);
\path   (turb_calc) -- (1st_calc);

\end{tikzpicture}

[...]

\end{document}

答え1

元のコードには、 RIGHT SINGLE QUOTATION MARKUnicodeでは)ではなく'APOSTROPHEUnicodeでは)が含まれていました。

\tikzstyle{line} = [draw, thick, -latex’,shorten >=0pt];

正しいヒントを使用すると、コードは正常にコンパイルされます。

ここに画像の説明を入力してください

関連情報