Skip to content

Commit

Permalink
Correct example for every pic #519 #751
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed Nov 5, 2019
1 parent 3cf7276 commit 6ccafff
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions doc/generic/pgf/text-en/pgfmanual-en-tikz-pics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,15 @@ \subsection{The Pic Syntax}
\begin{stylekey}{/tikz/every pic (initially \normalfont empty)}
This style is installed at the beginning of every pic.
%
\begin{codeexample}[]
\begin{tikzpicture}[every node/.style={draw}]
\draw (0,0) node {A} -- (1,1) node {B};
\begin{codeexample}[
pre={\tikzset{
seagull/.pic={
% Code for a "seagull". Do you see it?...
\draw (-3mm,0) to [bend left] (0,0) to [bend left] (3mm,0);
},
}}]
\begin{tikzpicture}[every pic/.style={scale=2,transform shape}]
\pic foreach \x in {1,2,3} at (\x,0) {seagull};
\end{tikzpicture}
\end{codeexample}
\end{stylekey}
Expand Down

0 comments on commit 6ccafff

Please sign in to comment.