summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-06-17 23:22:38 +0000
committerKarl Berry <karl@freefriends.org>2007-06-17 23:22:38 +0000
commit5c5c7843fbd37c6960799b6e1a32d5948966316c (patch)
treeea73f6b5ba799656992ebe2f34beccd2555f1342 /Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex
parentf0c1f4cdb9fad83f293fd91d194538425f9f7633 (diff)
pgf 1.18 (15jun07)
git-svn-id: svn://tug.org/texlive/trunk@4459 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex57
1 files changed, 57 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex
index c10e98f39d5..d877d60e52a 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex
@@ -250,6 +250,63 @@ Let us start with the basic coordinate systems.
\end{coordinatesystem}
+\subsubsection{Barycentric Systems}
+\label{section-barycentric-coordinates}
+
+In the barycentric coordinate system a point is expressed as the
+linear combination of multiple vectors. The idea is that you specify
+vectors $v_1$, $v_2$, \dots, $v_n$ and numbers $\alpha_1$, $\alpha_2$,
+\dots, $\alpha_n$. Then the barycentric coordinate specified by these
+vectors and numbers is
+\begin{align*}
+ \frac{\alpha_1 v_1 + \alpha_2 v_2 + \cdots + \alpha_n v_n}{\alpha_1
+ + \alpha_2 + \cdots + \alpha_n}
+\end{align*}
+
+The |barycentric cs| allows you to specifiy such coordiantes easily.
+
+\begin{coordinatesystem}{barycentric}
+ For this coordinate system, the \meta{coordinate specification}
+ should be a comma-separated list of expressions of the form
+ \meta{node name}|=|\meta{number}. Note that (currently) the list
+ should not contain any spaces before or after the \meta{node name}
+ (unlike normal key-value pairs).
+
+ The specified coordinate is now computed as follows: Each pair
+ provides one vector and a number. The vector is the |center| anchor
+ of the \meta{node name}. The number is the \meta{number}. Note that
+ (currently) you cannot specify a different anchor, so that in order
+ to use, say, the |north| anchor of a node you first have to create a
+ new coordinate at this north anchor. (Using for instance
+ \texttt{\string\coordinate (mynorth) at (mynode.north);}.)
+
+\begin{codeexample}[]
+\begin{tikzpicture}
+ \coordinate (content) at (90:3cm);
+ \coordinate (structure) at (210:3cm);
+ \coordinate (form) at (-30:3cm);
+
+ \node [above] at (content) {content oriented};
+ \node [below left] at (structure) {structure oriented};
+ \node [below right] at (form) {form oriented};
+
+ \draw [thick,gray] (content.south) -- (structure.north east) -- (form.north west) -- cycle;
+
+ \small
+ \node at (barycentric cs:content=0.5,structure=0.1 ,form=1) {PostScript};
+ \node at (barycentric cs:content=1 ,structure=0 ,form=0.4) {DVI};
+ \node at (barycentric cs:content=0.5,structure=0.5 ,form=1) {PDF};
+ \node at (barycentric cs:content=0 ,structure=0.25,form=1) {CSS};
+ \node at (barycentric cs:content=0.5,structure=1 ,form=0) {XML};
+ \node at (barycentric cs:content=0.5,structure=1 ,form=0.4) {HTML};
+ \node at (barycentric cs:content=1 ,structure=0.2 ,form=0.8) {\TeX};
+ \node at (barycentric cs:content=1 ,structure=0.6 ,form=0.8) {\LaTeX};
+ \node at (barycentric cs:content=0.8,structure=0.8 ,form=1) {Word};
+ \node at (barycentric cs:content=1 ,structure=0.05,form=0.05) {ASCII};
+\end{tikzpicture}
+\end{codeexample}
+\end{coordinatesystem}
+
\subsubsection{Node Coordinate System}
\label{section-node-coordinates}