diff options
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-er.tex')
-rw-r--r-- | graphics/pgf/base/doc/text-en/pgfmanual-en-library-er.tex | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-er.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-er.tex index 691d4e1d79..28939c1a5c 100644 --- a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-er.tex +++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-er.tex @@ -34,7 +34,7 @@ The package defines a simple style for drawing entities: and a class in object-oriented programming). If this bothers you, feel free to define a style |entity type| instead. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{er,positioning}}] \begin{tikzpicture} \node[entity] (sheep) {Sheep}; \node[entity] (genome) [right=of sheep] {Genome}; @@ -47,7 +47,7 @@ The package defines a simple style for drawing entities: This style is evoked by the style |entity|. To change the appearance of entities, you can change this style. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{er,positioning}}] \begin{tikzpicture} [every entity/.style={draw=blue!50,fill=blue!20,thick}] \node[entity] (sheep) {Sheep}; @@ -67,7 +67,7 @@ entities. This style works like |entity|, only it is to be used for relationships. Again, |relationship|s are actually relationship types. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{er}}] \begin{tikzpicture} \node[entity] (sheep) at (0,0) {Sheep}; \node[entity] (genome) at (2,0) {Genome}; @@ -82,7 +82,7 @@ entities. \begin{stylekey}{/tikz/every relationship} Works like |every entity|. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{er}}] \begin{tikzpicture} [every entity/.style={fill=blue!20,draw=blue,thick}, every relationship/.style={fill=orange!20,draw=orange,thick,aspect=1.5}] @@ -104,7 +104,7 @@ entities. attribute to its entity, you can use, for example, the |child| command or the |pin| option. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{er}}] \begin{tikzpicture} \node[entity] (sheep) {Sheep} child {node[attribute] {name}} @@ -112,7 +112,7 @@ entities. \end{tikzpicture} \end{codeexample} % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{er}}] \begin{tikzpicture}[every pin edge/.style=draw] \node[entity,pin={[attribute]60:name},pin={[attribute]120:color}] {Sheep}; \end{tikzpicture} @@ -130,7 +130,7 @@ entities. This style is used with every attribute, and therefore also for every key attribute. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{er}}] \begin{tikzpicture} [text depth=1pt, every attribute/.style={fill=black!20,draw=black}, |