项目符号列表旁边的 Tikz 图表

项目符号列表旁边的 Tikz 图表

我有许多与项目符号列表相对应的图表,我想让它们在我的论文中并排显示(有足够的空间)。我该怎么做?

我的一个项目符号列表:

\begin{itemize}
\item \textbf{W}: $\{$\textit{w}$_1$, \textit{w}$_2$, \textit{w}$_3\}$
\item \textbf{R}: \textit{w}$_1$R\textit{w}$_2$, \textit{w}$_2$R\textit{w}$_1$, \textit{w}$_3$R\textit{w}$_1$
\item \textbf{S}: \textit{w}$_1$S\textit{w}$_3$
\item \textbf{\textit{v}}: \textit{v}$_{w1}$(A) = 1\\
\textit{v}$_{w2}$(A) = 1\\
\textit{v}$_{w3}$(A) = 0\\
\end{itemize}

以及对应的图表:

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node
  distance=2.8cm, semithick]

  \node[state, label=below:{$A=1$}] (A) {$w_1$};
  \node[state, label=above:{$A=1$}] (B) [above left of=A] {$w_2$};
  \node[state, label=above:{$A=0$}] (C) [above right of=A] {$w_3$};

  \path[black] (A)
  edge [blue] node {} (B)
  edge [bend right, red] node {} (C)
  (B) edge [blue] node {} (A)
  (C) edge [blue] node {} (A);
\end{tikzpicture}

感谢您的帮助!

答案1

在此处输入图片描述

\noindent%
\begin{minipage}{0.5\textwidth}
\begin{itemize}
\item \textbf{W}: $\{$\textit{w}$_1$, \textit{w}$_2$, \textit{w}$_3\}$
\item \textbf{R}: \textit{w}$_1$R\textit{w}$_2$, \textit{w}$_2$R\textit{w}$_1$, \textit{w}$_3$R\textit{w}$_1$
\item \textbf{S}: \textit{w}$_1$S\textit{w}$_3$
\item \textbf{\textit{v}}: \textit{v}$_{w1}$(A) = 1\\
\textit{v}$_{w2}$(A) = 1\\
\textit{v}$_{w3}$(A) = 0\\
\end{itemize}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node
  distance=2.8cm, semithick]

  \node[state, label=below:{$A=1$}] (A) {$w_1$};
  \node[state, label=above:{$A=1$}] (B) [above left of=A] {$w_2$};
  \node[state, label=above:{$A=0$}] (C) [above right of=A] {$w_3$};

  \path[black] (A)
  edge [blue] node {} (B)
  edge [bend right, red] node {} (C)
  (B) edge [blue] node {} (A)
  (C) edge [blue] node {} (A);
\end{tikzpicture}
\end{minipage}

相关内容