在 parbix 中显示项目符号

在 parbix 中显示项目符号

我正在尝试为每个项目添加项目符号。但是,项目列表没有显示项目符号。有人能告诉我问题是什么吗?

另外,我怎样才能让物品自动填充盒子并包装?

% EPC flow charts
% Author: Fabian Schuh
\documentclass{minimal}

\usepackage{pgf}
\usepackage{tikz}
%%%<
\usepackage{verbatim}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%
%%%>

\begin{comment}
:Title:  EPC flow charts
:Grid: 1x2


\end{comment}
\usepackage[utf8]{inputenc}
\usetikzlibrary{arrows,automata}
\usetikzlibrary{positioning}


\tikzset{
    state/.style={
           rectangle,
           rounded corners,
           draw=black, very thick,
           minimum height=2em,
           inner sep=2pt,
           text centered,
           },
}

\begin{document}

\begin{tikzpicture}[->,>=stealth']

 % Position of QUERY 
 % Use previously defined 'state' as layout (see above)
 % use tabular for content to get columns/rows
 % parbox to limit width of the listing
 \node[state] (QUERY) 
 {\begin{tabular}{l}
  \textbf{Query}\\
  \parbox{4cm}{\begin{itemize}
   \item Start
   \item Parameter $Q$
   \item Zufallszahl aus \mbox{$[0, 2^Q-1]$} in Slotzähler $SC$
  \end{itemize}
  }\\[4em]
  \textbf{QueryAdjust}\\
  \parbox{4cm}{\begin{itemize}
   \item Variiere Q
   \item neue Zufallszahl
  \end{itemize}
  }
 \end{tabular}};

\end{tikzpicture}
\end{document}

答案1

我认为您不需要任何 tabular、parbox 等。如果您选择不同的文档类别,项目符号将会显示。

\documentclass{article}

\usepackage{pgf}
\usepackage{tikz}
%%%<
\usepackage{verbatim}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%
%%%>

\begin{comment}
:Title:  EPC flow charts
:Grid: 1x2


\end{comment}
\usepackage[utf8]{inputenc}
\usetikzlibrary{arrows,automata}
\usetikzlibrary{positioning}


\tikzset{
    state/.style={
           rectangle,
           rounded corners,
           draw=black, very thick,
           minimum height=2em,
           inner sep=2pt,
           text centered,
           },
}

\begin{document}

\begin{tikzpicture}[->,>=stealth']

 % Position of QUERY 
 % Use previously defined 'state' as layout (see above)
 % use tabular for content to get columns/rows
 % parbox to limit width of the listing
 \node[state,text width=4cm,align=left] (QUERY) 
 {\textbf{Query}
  \begin{itemize}
   \item Start
   \item Parameter $Q$
   \item Zufallszahl aus $[0, 2^Q-1]$ in Slotz\"ahler $SC$
  \end{itemize}
  \vspace*{0.2cm} %<- if you really want to have these vertical spaces, you can   get them like this
  \textbf{QueryAdjust}
  \begin{itemize}
   \item Variiere Q
   \item neue Zufallszahl
  \end{itemize} 
  };

\end{tikzpicture}
\end{document}

enter image description here

如果您确实想要所有这些垂直空间,您可以使用\vspace

相关内容