diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/version-for-tex4ht/en/pgfmanualse11.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/version-for-tex4ht/en/pgfmanualse11.html | 615 |
1 files changed, 335 insertions, 280 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/version-for-tex4ht/en/pgfmanualse11.html b/Master/texmf-dist/doc/generic/pgf/version-for-tex4ht/en/pgfmanualse11.html index 1cf07894112..0920e36cb57 100644 --- a/Master/texmf-dist/doc/generic/pgf/version-for-tex4ht/en/pgfmanualse11.html +++ b/Master/texmf-dist/doc/generic/pgf/version-for-tex4ht/en/pgfmanualse11.html @@ -7,7 +7,7 @@ <meta name="originator" content="TeX4ht (http://www.cis.ohio-state.edu/~gurari/TeX4ht/mn.html)"> <!-- html --> <meta name="src" content="pgfmanual.tex"> -<meta name="date" content="2005-10-23 18:34:00"> +<meta name="date" content="2005-11-15 18:41:00"> <link rel="stylesheet" type="text/css" href="pgfmanual.css"> </head><body > @@ -62,7 +62,7 @@ frame="void" id="TBL-223-" ><colgroup id="TBL-223-1g"><col id="TBL-223-1"><col id="TBL-223-2"></colgroup><tr valign="baseline" id="TBL-223-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-223-1-1" -class="td11"> <object data="pgfmanual-223.svg" width="84.6049pt" height="70.51587pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-223-1-2" +class="td11"> <object data="pgfmanual-223.svg" width="113.8061 " height="95.0208 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-223-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -94,7 +94,7 @@ class="cmtt-8"> node};</span></div> <!--l. 48--><p class="indent"> The syntax for specifying nodes is the following: <dl class="description"><dt class="description"> <span -class="colorbox" id="colorbox82"><span id="textcolor83"><span +class="colorbox" id="colorbox83"><span id="textcolor84"><span class="cmtt-10">\path</span> ...</span> <span class="cmtt-10">node</span><span class="obeylines-h"><span class="verb"><span class="cmtt-10">[</span></span></span><span @@ -116,7 +116,7 @@ class="cmtt-10">{</span><span class="cmsy-10"><</span><span class="cmti-10">text</span><span class="cmsy-10">></span><span -class="cmtt-10">}</span> <span id="textcolor84">...<span +class="cmtt-10">}</span> <span id="textcolor85">...<span class="cmtt-10">;</span></span></span> </dt><dd class="description"> <a @@ -183,7 +183,7 @@ frame="void" id="TBL-224-" ><colgroup id="TBL-224-1g"><col id="TBL-224-1"><col id="TBL-224-2"></colgroup><tr valign="baseline" id="TBL-224-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-224-1-1" -class="td11"> <object data="pgfmanual-224.svg" width="85.5049pt" height="71.21587pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-224-1-2" +class="td11"> <object data="pgfmanual-224.svg" width="115.00609 " height="95.95412 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-224-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -229,7 +229,7 @@ frame="void" id="TBL-225-" ><colgroup id="TBL-225-1g"><col id="TBL-225-1"><col id="TBL-225-2"></colgroup><tr valign="baseline" id="TBL-225-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-225-1-1" -class="td11"> <object data="pgfmanual-225.svg" width="97.92332pt" height="90.71239pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-225-1-2" +class="td11"> <object data="pgfmanual-225.svg" width="131.56393 " height="121.94939 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-225-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -317,7 +317,7 @@ frame="void" id="TBL-226-" ><colgroup id="TBL-226-1g"><col id="TBL-226-1"><col id="TBL-226-2"></colgroup><tr valign="baseline" id="TBL-226-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-226-1-1" -class="td11"> <object data="pgfmanual-226.svg" width="42.81036pt" height="42.352pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-226-1-2" +class="td11"> <object data="pgfmanual-226.svg" width="58.08026 " height="57.46912 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-226-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -361,7 +361,7 @@ frame="void" id="TBL-227-" ><colgroup id="TBL-227-1g"><col id="TBL-227-1"><col id="TBL-227-2"></colgroup><tr valign="baseline" id="TBL-227-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-227-1-1" -class="td11"> <object data="pgfmanual-227.svg" width="46.05266pt" height="45.71931pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-227-1-2" +class="td11"> <object data="pgfmanual-227.svg" width="62.4033 " height="61.95885 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-227-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -397,7 +397,7 @@ class="cmtt-8">\end{tikzpicture}</span></div> <!--l. 154--><p class="indent"> <dl class="description"><dt class="description"> <span -class="colorbox" id="colorbox85"><span id="textcolor86"><span +class="colorbox" id="colorbox86"><span id="textcolor87"><span class="cmtt-10">\path</span> ...</span> <span class="cmtt-10">coordinate</span><span class="obeylines-h"><span class="verb"><span class="cmtt-10">[</span></span></span><span @@ -414,7 +414,7 @@ class="cmtt-10">at(</span></span></span><span class="cmsy-10"><</span><span class="cmti-10">coordinate</span><span class="cmsy-10">></span><span class="obeylines-h"><span class="verb"><span -class="cmtt-10">)</span></span></span> <span id="textcolor87">...<span +class="cmtt-10">)</span></span></span> <span id="textcolor88">...<span class="cmtt-10">;</span></span></span> </dt><dd class="description"> <a @@ -468,7 +468,7 @@ command: <!--l. 181--><p class="indent"> <dl class="description"><dt class="description"> <span -class="colorbox" id="colorbox88"><span +class="colorbox" id="colorbox89"><span class="cmtt-10">\nodepart</span><span class="cmtt-10">{</span><span class="cmsy-10"><</span><span @@ -503,7 +503,7 @@ frame="void" id="TBL-228-" ><colgroup id="TBL-228-1g"><col id="TBL-228-1"><col id="TBL-228-2"></colgroup><tr valign="baseline" id="TBL-228-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-228-1-1" -class="td11"> <object data="pgfmanual-228.svg" width="32.57529pt" height="32.57529pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-228-1-2" +class="td11"> <object data="pgfmanual-228.svg" width="44.43355 " height="44.43355 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-228-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -603,7 +603,7 @@ frame="void" id="TBL-229-" ><colgroup id="TBL-229-1g"><col id="TBL-229-1"><col id="TBL-229-2"></colgroup><tr valign="baseline" id="TBL-229-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-229-1-1" -class="td11"> <object data="pgfmanual-229.svg" width="31.57529pt" height="31.57529pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-229-1-2" +class="td11"> <object data="pgfmanual-229.svg" width="43.10022 " height="43.10022 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-229-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikzstyle{every</span><span @@ -646,7 +646,7 @@ frame="void" id="TBL-230-" ><colgroup id="TBL-230-1g"><col id="TBL-230-1"><col id="TBL-230-2"></colgroup><tr valign="baseline" id="TBL-230-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-230-1-1" -class="td11"> <object data="pgfmanual-230.svg" width="95.84955pt" height="42.46312pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-230-1-2" +class="td11"> <object data="pgfmanual-230.svg" width="128.7989 " height="57.61726 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-230-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -704,23 +704,83 @@ class="cmtt-8"> {red};</span> class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> </li></ul> -<!--l. 238--><p class="indent"> Next, you may wish to adjust the font used for the text. Use the following option for this: +<!--l. 238--><p class="indent"> Just like the color itself, you may also wish to set the opacity of the text only. For this, use the following +option: <ul class="itemize1"> <li class="itemize"><span -class="cmtt-10">font</span><a +class="cmtt-10">text opacity</span><a id="dx12-139003"></a><a id="dx12-139004"></a><span class="obeylines-h"><span class="verb"><span class="cmtt-10">=</span></span></span><span class="cmsy-10"><</span><span -class="cmti-10">font commands</span><span -class="cmsy-10">> </span>Sets the font used for text labels. +class="cmti-10">value</span><span +class="cmsy-10">> </span>Sets the opacity of text labels. + + <!--l. 243--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" frame="void" id="TBL-231-" ><colgroup id="TBL-231-1g"><col id="TBL-231-1"><col id="TBL-231-2"></colgroup><tr valign="baseline" id="TBL-231-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-231-1-1" -class="td11"> <object data="pgfmanual-231.svg" width="42.84676pt" height="42.46312pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-231-1-2" +class="td11"> <object data="pgfmanual-231.svg" width="122.39786 " height="96.85042 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-231-1-2" +class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> +<br><span +class="cmtt-8">\begin{tikzpicture}</span> +<br><span +class="cmtt-8"> </span><span +class="cmtt-8"> \draw[line</span><span +class="cmtt-8"> width=2mm,blue!50,cap=round]</span><span +class="cmtt-8"> (0,0)</span><span +class="cmtt-8"> grid</span><span +class="cmtt-8"> (3,2);</span> +<br><span +class="cmtt-8"> </span><span +class="cmtt-8"> \tikzstyle{every</span><span +class="cmtt-8"> node}=[fill,draw]</span> +<br> +<br><span +class="cmtt-8"> </span><span +class="cmtt-8"> \node[opacity=0.5]</span><span +class="cmtt-8"> at</span><span +class="cmtt-8"> (1.5,2)</span><span +class="cmtt-8"> {Upper</span><span +class="cmtt-8"> node};</span> +<br><span +class="cmtt-8"> </span><span +class="cmtt-8"> \node[draw</span><span +class="cmtt-8"> opacity=0.8,fill</span><span +class="cmtt-8"> opacity=0.2,text</span><span +class="cmtt-8"> opacity=1]</span> +<br><span +class="cmtt-8"> </span><span +class="cmtt-8"> </span><span +class="cmtt-8"> </span><span +class="cmtt-8"> at</span><span +class="cmtt-8"> (1.5,0)</span><span +class="cmtt-8"> {Lower</span><span +class="cmtt-8"> node};</span> +<br><span +class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> +</tr></table></div> + </li></ul> +<!--l. 255--><p class="indent"> Next, you may wish to adjust the font used for the text. Use the following option for this: + <ul class="itemize1"> + <li class="itemize"><span +class="cmtt-10">font</span><a + id="dx12-139005"></a><a + id="dx12-139006"></a><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">=</span></span></span><span +class="cmsy-10"><</span><span +class="cmti-10">font commands</span><span +class="cmsy-10">> </span>Sets the font used for text labels. + <!--l. 260--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" +cellspacing="0" cellpadding="0" +frame="void" id="TBL-232-" ><colgroup id="TBL-232-1g"><col +id="TBL-232-1"><col +id="TBL-232-2"></colgroup><tr + valign="baseline" id="TBL-232-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-232-1-1" +class="td11"> <object data="pgfmanual-232.svg" width="58.12878 " height="57.61726 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-232-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -735,16 +795,14 @@ class="cmtt-8"> {italic};</span> <br><span class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> - - - <!--l. 248--><p class="noindent">A perhaps more useful example is the following: - <!--l. 250--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 265--><p class="noindent">A perhaps more useful example is the following: + <!--l. 267--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-232-" ><colgroup id="TBL-232-1g"><col -id="TBL-232-1"><col -id="TBL-232-2"></colgroup><tr - valign="baseline" id="TBL-232-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-232-1-1" -class="td11"> <object data="pgfmanual-232.svg" width="41.58603pt" height="41.58603pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-232-1-2" +frame="void" id="TBL-233-" ><colgroup id="TBL-233-1g"><col +id="TBL-233-1"><col +id="TBL-233-2"></colgroup><tr + valign="baseline" id="TBL-233-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-233-1-1" +class="td11"> <object data="pgfmanual-233.svg" width="56.44781 " height="56.44781 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-233-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikzstyle{every</span><span @@ -773,16 +831,16 @@ class="cmtt-8"> \nodepart{output}</span><span class="cmtt-8"> output};</span></div> </td></tr></table> </td> </tr></table></div> </li></ul> -<!--l. 259--><p class="indent"> Normally, when a node is typeset, all the text you give in the braces is but in one long line (in an <span class="obeylines-h"><span class="verb"><span +<!--l. 276--><p class="indent"> Normally, when a node is typeset, all the text you give in the braces is but in one long line (in an <span class="obeylines-h"><span class="verb"><span class="cmtt-10">\hbox</span></span></span>, to be precise) and the node will become as wide as necessary. -<!--l. 263--><p class="indent"> You can change this behaviour using the following options. They allow you to limit the width of a node +<!--l. 280--><p class="indent"> You can change this behaviour using the following options. They allow you to limit the width of a node (naturally, at the expense of its height). <ul class="itemize1"> <li class="itemize"><span class="cmtt-10">text width</span><a - id="dx12-139005"></a><a - id="dx12-139006"></a><span class="obeylines-h"><span class="verb"><span + id="dx12-139007"></a><a + id="dx12-139008"></a><span class="obeylines-h"><span class="verb"><span class="cmtt-10">=</span></span></span><span class="cmsy-10"><</span><span class="cmti-10">dimension</span><span @@ -790,21 +848,21 @@ class="cmsy-10">> </span>This option will put the text of a node in a box of precisely, in a <span class="obeylines-h"><span class="verb"><span class="cmtt-10">{minipage}</span></span></span> of this width; for plain <span class="TEX">T<span class="E">E</span>X</span> a rudimentary “minipage emulation” is used). - <!--l. 273--><p class="noindent">If the node text is not as wide as <span + <!--l. 290--><p class="noindent">If the node text is not as wide as <span class="cmsy-10"><</span><span class="cmti-10">dimension</span><span class="cmsy-10">></span>, it will nevertheless be put in a box of this width. If it is larger, line breaking will be done. - <!--l. 277--><p class="noindent">By default, when this option is given, a ragged right border will be used. This is sensible since, typically, these + <!--l. 294--><p class="noindent">By default, when this option is given, a ragged right border will be used. This is sensible since, typically, these boxes are narrow and justifying the text looks ugly. - <!--l. 280--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 297--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-233-" ><colgroup id="TBL-233-1g"><col -id="TBL-233-1"><col -id="TBL-233-2"></colgroup><tr - valign="baseline" id="TBL-233-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-233-1-1" -class="td11"> <object data="pgfmanual-233.svg" width="92.0242pt" height="61.61038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-233-1-2" +frame="void" id="TBL-234-" ><colgroup id="TBL-234-1g"><col +id="TBL-234-1"><col +id="TBL-234-2"></colgroup><tr + valign="baseline" id="TBL-234-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-234-1-1" +class="td11"> <object data="pgfmanual-234.svg" width="123.69846 " height="83.14685 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-234-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -826,20 +884,22 @@ class="cmtt-8"> line</span><span class="cmtt-8"> breaking</span><span class="cmtt-8"> works.};</span></div> </td></tr></table> </td> </tr></table></div> + + </li> <li class="itemize"><span class="cmtt-10">text justified</span><a - id="dx12-139007"></a><a - id="dx12-139008"></a> causes the text to be justified instead of (right)ragged. Use this only with pretty broad + id="dx12-139009"></a><a + id="dx12-139010"></a> causes the text to be justified instead of (right)ragged. Use this only with pretty broad nodes. - <!--l. 289--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 306--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-234-" ><colgroup id="TBL-234-1g"><col -id="TBL-234-1"><col -id="TBL-234-2"></colgroup><tr - valign="baseline" id="TBL-234-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-234-1-1" -class="td11"> <object data="pgfmanual-234.svg" width="92.0242pt" height="61.61038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-234-1-2" +frame="void" id="TBL-235-" ><colgroup id="TBL-235-1g"><col +id="TBL-235-1"><col +id="TBL-235-2"></colgroup><tr + valign="baseline" id="TBL-235-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-235-1-1" +class="td11"> <object data="pgfmanual-235.svg" width="123.69846 " height="83.14685 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-235-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -862,7 +922,7 @@ class="cmtt-8"> line</span><span class="cmtt-8"> breaking</span><span class="cmtt-8"> works.};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 294--><p class="noindent">In the above example, <span class="TEX">T<span + <!--l. 311--><p class="noindent">In the above example, <span class="TEX">T<span class="E">E</span>X</span> complains (rightfully) about three very badly typeset lines. (For this manual I asked <span class="TEX">T<span class="E">E</span>X</span> to stop complaining by using <span class="obeylines-h"><span class="verb"><span @@ -871,20 +931,20 @@ class="cmtt-10">\hbadness=10000</span></span></span>, but this is a foul deed, </li> <li class="itemize"><span class="cmtt-10">text ragged</span><a - id="dx12-139009"></a><a - id="dx12-139010"></a> causes the text to be typeset with a ragged right. This uses the original plain <span class="TEX">T<span + id="dx12-139011"></a><a + id="dx12-139012"></a> causes the text to be typeset with a ragged right. This uses the original plain <span class="TEX">T<span class="E">E</span>X</span> definition of a ragged right border, in which <span class="TEX">T<span class="E">E</span>X</span> will try to balance the right border as well as possible. This is the default. - <!--l. 303--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 320--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-235-" ><colgroup id="TBL-235-1g"><col -id="TBL-235-1"><col -id="TBL-235-2"></colgroup><tr - valign="baseline" id="TBL-235-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-235-1-1" -class="td11"> <object data="pgfmanual-235.svg" width="92.0242pt" height="61.61038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-235-1-2" +frame="void" id="TBL-236-" ><colgroup id="TBL-236-1g"><col +id="TBL-236-1"><col +id="TBL-236-2"></colgroup><tr + valign="baseline" id="TBL-236-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-236-1-1" +class="td11"> <object data="pgfmanual-236.svg" width="123.69846 " height="83.14685 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-236-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -907,24 +967,22 @@ class="cmtt-8"> line</span><span class="cmtt-8"> breaking</span><span class="cmtt-8"> works.};</span></div> </td></tr></table> </td> </tr></table></div> - - </li> <li class="itemize"><span class="cmtt-10">text badly ragged</span><a - id="dx12-139011"></a><a - id="dx12-139012"></a> causes the right border to be ragged in the <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span + id="dx12-139013"></a><a + id="dx12-139014"></a> causes the right border to be ragged in the <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span class="E">E</span>X</span></span>-style, in which no balancing occurs. This looks ugly, but it may be useful for very narrow boxes and when you wish to avoid hyphenations. - <!--l. 311--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 328--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-236-" ><colgroup id="TBL-236-1g"><col -id="TBL-236-1"><col -id="TBL-236-2"></colgroup><tr - valign="baseline" id="TBL-236-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-236-1-1" -class="td11"> <object data="pgfmanual-236.svg" width="92.0242pt" height="133.61038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-236-1-2" +frame="void" id="TBL-237-" ><colgroup id="TBL-237-1g"><col +id="TBL-237-1"><col +id="TBL-237-2"></colgroup><tr + valign="baseline" id="TBL-237-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-237-1-1" +class="td11"> <object data="pgfmanual-237.svg" width="123.69846 " height="179.14648 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-237-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -951,16 +1009,16 @@ class="cmtt-8"> works.};</span></div> </li> <li class="itemize"><span class="cmtt-10">text centered</span><a - id="dx12-139013"></a><a - id="dx12-139014"></a> centers the text, but tries to balance the lines. - <!--l. 317--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + id="dx12-139015"></a><a + id="dx12-139016"></a> centers the text, but tries to balance the lines. + <!--l. 334--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-237-" ><colgroup id="TBL-237-1g"><col -id="TBL-237-1"><col -id="TBL-237-2"></colgroup><tr - valign="baseline" id="TBL-237-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-237-1-1" -class="td11"> <object data="pgfmanual-237.svg" width="92.0242pt" height="63.55484pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-237-1-2" +frame="void" id="TBL-238-" ><colgroup id="TBL-238-1g"><col +id="TBL-238-1"><col +id="TBL-238-2"></colgroup><tr + valign="baseline" id="TBL-238-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-238-1-1" +class="td11"> <object data="pgfmanual-238.svg" width="123.69846 " height="85.73946 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-238-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -983,19 +1041,21 @@ class="cmtt-8"> line</span><span class="cmtt-8"> breaking</span><span class="cmtt-8"> works.};</span></div> </td></tr></table> </td> </tr></table></div> + + </li> <li class="itemize"><span class="cmtt-10">text badly centered</span><a - id="dx12-139015"></a><a - id="dx12-139016"></a> centers the text, without balancing the lines. - <!--l. 323--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + id="dx12-139017"></a><a + id="dx12-139018"></a> centers the text, without balancing the lines. + <!--l. 340--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-238-" ><colgroup id="TBL-238-1g"><col -id="TBL-238-1"><col -id="TBL-238-2"></colgroup><tr - valign="baseline" id="TBL-238-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-238-1-1" -class="td11"> <object data="pgfmanual-238.svg" width="92.0242pt" height="133.61038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-238-1-2" +frame="void" id="TBL-239-" ><colgroup id="TBL-239-1g"><col +id="TBL-239-1"><col +id="TBL-239-2"></colgroup><tr + valign="baseline" id="TBL-239-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-239-1-1" +class="td11"> <object data="pgfmanual-239.svg" width="123.69846 " height="179.14648 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-239-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1020,12 +1080,12 @@ class="cmtt-8"> breaking</span><span class="cmtt-8"> works.};</span></div> </td></tr></table> </td> </tr></table></div> </li></ul> -<!--l. 331--><p class="noindent"> +<!--l. 348--><p class="noindent"> <h4 class="subsectionHead"><span class="titlemark">11.4 </span> <a id="x12-14000011.4"></a>Placing Nodes Using Anchors</h4> -<!--l. 333--><p class="noindent">When you place a node at some coordinate, the node is centered on this coordinate by default. This is often +<!--l. 350--><p class="noindent">When you place a node at some coordinate, the node is centered on this coordinate by default. This is often undesirable and it would be better to have the node to the right or above the actual coordinate. -<!--l. 337--><p class="indent"> <span +<!--l. 354--><p class="indent"> <span class="cmcsc-10"><small class="small-caps">P</small><small class="small-caps">G</small><small @@ -1042,10 +1102,8 @@ The center of the shape has an anchor called <span class="obeylines-h"><span cla class="cmtt-10">center</span></span></span> on top of it, and so on. Here are some examples (a complete list is given in Section <a href="#x12-14600011.8">11.8<!--tex4ht:ref: section-the-shapes --></a>). - - -<!--l. 346--><p class="noindent"><object data="pgfmanual-239.svg" width="201.82925pt" height="70.08255pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> -<!--l. 357--><p class="indent"> Now, when you place a node at a certain coordinate, you can ask Ti<span +<!--l. 363--><p class="noindent"><object data="pgfmanual-240.svg" width="270.10464 " height="94.44304 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> +<!--l. 374--><p class="indent"> Now, when you place a node at a certain coordinate, you can ask Ti<span class="cmti-10">k</span>Z to place the node shifted around in such a way that a certain anchor is at the coordinate. In the following example, we ask Ti<span class="cmti-10">k</span>Z to shift the first node such @@ -1056,11 +1114,11 @@ class="cmtt-10">(0,0)</span></span></span> and that the <span class="obeylines-h class="cmtt-10">west</span></span></span> anchor of the second node is at coordinate <span class="obeylines-h"><span class="verb"><span class="cmtt-10">(1,1)</span></span></span>. -<!--l. 364--><p class="noindent"><div class="obeylines-v"></div><object data="pgfmanual-240.svg" width="136.76814pt" height="49.06831pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object><!--tex4ht:inline--><div class="tabular"><table class="tabular" +<!--l. 381--><p class="noindent"><div class="obeylines-v"></div><object data="pgfmanual-241.svg" width="183.35683 " height="66.42416 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-239-" ><colgroup id="TBL-239-1g"><col -id="TBL-239-1"></colgroup><tr - valign="baseline" id="TBL-239-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-239-1-1" +frame="void" id="TBL-240-" ><colgroup id="TBL-240-1g"><col +id="TBL-240-1"></colgroup><tr + valign="baseline" id="TBL-240-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-240-1-1" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1099,7 +1157,7 @@ class="cmtt-8"> {second</span><span class="cmtt-8"> node};</span></div> </td></tr></table> </td> </tr></table> </div> -<!--l. 369--><p class="indent"> Since the default anchor is <span class="obeylines-h"><span class="verb"><span +<!--l. 386--><p class="indent"> Since the default anchor is <span class="obeylines-h"><span class="verb"><span class="cmtt-10">center</span></span></span>, the default behaviour is to shift the node in such a way that it is centered on the current position. <ul class="itemize1"> @@ -1115,7 +1173,7 @@ class="cmsy-10"><</span><span class="cmti-10">anchor name</span><span class="cmsy-10">> </span>lies on the current coordinate. - <!--l. 378--><p class="noindent">The only anchor that is present in all shapes is <span class="obeylines-h"><span class="verb"><span + <!--l. 395--><p class="noindent">The only anchor that is present in all shapes is <span class="obeylines-h"><span class="verb"><span class="cmtt-10">center</span></span></span>. However, most shapes will at least define anchors in all “compass directions.” Furthermore, the standard shapes also define a <span class="obeylines-h"><span class="verb"><span class="cmtt-10">base</span></span></span> anchor, as @@ -1124,7 +1182,9 @@ class="cmtt-10">base</span><span class="cmtt-10"> west</span></span></span> and <span class="obeylines-h"><span class="verb"><span class="cmtt-10">base</span><span class="cmtt-10"> east</span></span></span>, for placing things on the baseline of the text. - <!--l. 384--><p class="noindent">The standard shapes also define a <span class="obeylines-h"><span class="verb"><span + + + <!--l. 401--><p class="noindent">The standard shapes also define a <span class="obeylines-h"><span class="verb"><span class="cmtt-10">mid</span></span></span> anchor (and <span class="obeylines-h"><span class="verb"><span class="cmtt-10">mid</span><span class="cmtt-10"> west</span></span></span> and <span class="obeylines-h"><span class="verb"><span @@ -1132,14 +1192,11 @@ class="cmtt-10">mid</span><span class="cmtt-10"> east</span></span></span>). This anchor is half the height of the character “x” above the base line. This anchor is useful for vertically centering multiple nodes that have different heights and depth. Here is an example: - <!--l. 389--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> -<table class="tabular" + <!--l. 406--><p class="noindent"><div class="obeylines-v"></div><object data="pgfmanual-242.svg" width="159.80756 " height="170.36287 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-240-" ><colgroup id="TBL-240-1g"><col -id="TBL-240-1"><col -id="TBL-240-2"></colgroup><tr - valign="baseline" id="TBL-240-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-240-1-1" -class="td11"> <object data="pgfmanual-241.svg" width="119.10612pt" height="127.02264pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-240-1-2" +frame="void" id="TBL-241-" ><colgroup id="TBL-241-1g"><col +id="TBL-241-1"></colgroup><tr + valign="baseline" id="TBL-241-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-241-1-1" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}[scale=3,transform</span><span @@ -1221,7 +1278,7 @@ class="cmtt-8"> node{t};</span> class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> </li></ul> -<!--l. 401--><p class="indent"> Unfortunately, while perfectly logical, it is often rather counter-intuitive that in order to place a node <span +<!--l. 418--><p class="indent"> Unfortunately, while perfectly logical, it is often rather counter-intuitive that in order to place a node <span class="cmti-10">above </span>a given point, you need to specify the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">south</span></span></span> anchor. For this reason, there are some useful options that allow you to @@ -1243,15 +1300,13 @@ class="cmsy-10">> </span>is specified, the node is additionally shifted class="cmsy-10"><</span><span class="cmti-10">offset</span><span class="cmsy-10">></span>. - - - <!--l. 411--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 428--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-241-" ><colgroup id="TBL-241-1g"><col -id="TBL-241-1"><col -id="TBL-241-2"></colgroup><tr - valign="baseline" id="TBL-241-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-241-1-1" -class="td11"> <object data="pgfmanual-242.svg" width="31.66602pt" height="15.81038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-241-1-2" +frame="void" id="TBL-242-" ><colgroup id="TBL-242-1g"><col +id="TBL-242-1"><col +id="TBL-242-2"></colgroup><tr + valign="baseline" id="TBL-242-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-242-1-1" +class="td11"> <object data="pgfmanual-243.svg" width="43.22119 " height="22.08041 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-242-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"><br> <span class="cmtt-8">\tikz</span><span @@ -1262,13 +1317,13 @@ class="cmtt-8"> (2pt)</span><span class="cmtt-8"> node[above]</span><span class="cmtt-8"> {above};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 414--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 431--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-242-" ><colgroup id="TBL-242-1g"><col -id="TBL-242-1"><col -id="TBL-242-2"></colgroup><tr - valign="baseline" id="TBL-242-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-242-1-1" -class="td11"> <object data="pgfmanual-243.svg" width="31.66602pt" height="17.81038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-242-1-2" +frame="void" id="TBL-243-" ><colgroup id="TBL-243-1g"><col +id="TBL-243-1"><col +id="TBL-243-2"></colgroup><tr + valign="baseline" id="TBL-243-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-243-1-1" +class="td11"> <object data="pgfmanual-244.svg" width="43.22119 " height="24.74707 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-243-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1297,13 +1352,13 @@ class="cmsy-10">> </span>is specified, the node is additionally class="cmsy-10"><</span><span class="cmti-10">offset</span><span class="cmsy-10">></span>. - <!--l. 421--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 438--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-243-" ><colgroup id="TBL-243-1g"><col -id="TBL-243-1"><col -id="TBL-243-2"></colgroup><tr - valign="baseline" id="TBL-243-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-243-1-1" -class="td11"> <object data="pgfmanual-244.svg" width="51.36604pt" height="15.81038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-243-1-2" +frame="void" id="TBL-244-" ><colgroup id="TBL-244-1g"><col +id="TBL-244-1"><col +id="TBL-244-2"></colgroup><tr + valign="baseline" id="TBL-244-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-244-1-1" +class="td11"> <object data="pgfmanual-245.svg" width="69.4878 " height="22.08041 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-244-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"><br> <span class="cmtt-8">\tikz</span><span @@ -1316,13 +1371,13 @@ class="cmtt-8"> left]</span><span class="cmtt-8"> {above</span><span class="cmtt-8"> left};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 424--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 441--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-244-" ><colgroup id="TBL-244-1g"><col -id="TBL-244-1"><col -id="TBL-244-2"></colgroup><tr - valign="baseline" id="TBL-244-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-244-1-1" -class="td11"> <object data="pgfmanual-245.svg" width="53.36604pt" height="17.81038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-244-1-2" +frame="void" id="TBL-245-" ><colgroup id="TBL-245-1g"><col +id="TBL-245-1"><col +id="TBL-245-2"></colgroup><tr + valign="baseline" id="TBL-245-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-245-1-1" +class="td11"> <object data="pgfmanual-246.svg" width="72.15445 " height="24.74707 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-245-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1346,13 +1401,13 @@ class="cmti-10">offset</span><span class="cmsy-10">></span> does the same as <span class="obeylines-h"><span class="verb"><span class="cmtt-10">anchor=south</span><span class="cmtt-10"> west</span></span></span>. - <!--l. 429--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 446--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-245-" ><colgroup id="TBL-245-1g"><col -id="TBL-245-1"><col -id="TBL-245-2"></colgroup><tr - valign="baseline" id="TBL-245-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-245-1-1" -class="td11"> <object data="pgfmanual-246.svg" width="58.0605pt" height="17.75484pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-245-1-2" +frame="void" id="TBL-246-" ><colgroup id="TBL-246-1g"><col +id="TBL-246-1"><col +id="TBL-246-2"></colgroup><tr + valign="baseline" id="TBL-246-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-246-1-1" +class="td11"> <object data="pgfmanual-247.svg" width="78.4137 " height="24.67302 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-246-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1375,13 +1430,13 @@ class="cmsy-10"><</span><span class="cmti-10">offset</span><span class="cmsy-10">></span> does the same as <span class="obeylines-h"><span class="verb"><span class="cmtt-10">anchor=east</span></span></span>. - <!--l. 434--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 451--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-246-" ><colgroup id="TBL-246-1g"><col -id="TBL-246-1"><col -id="TBL-246-2"></colgroup><tr - valign="baseline" id="TBL-246-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-246-1-1" -class="td11"> <object data="pgfmanual-247.svg" width="23.03264pt" height="13.61038pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-246-1-2" +frame="void" id="TBL-247-" ><colgroup id="TBL-247-1g"><col +id="TBL-247-1"><col +id="TBL-247-2"></colgroup><tr + valign="baseline" id="TBL-247-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-247-1-1" +class="td11"> <object data="pgfmanual-248.svg" width="31.71005 " height="19.1471 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-247-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1392,6 +1447,8 @@ class="cmtt-8"> (2pt)</span><span class="cmtt-8"> node[left]</span><span class="cmtt-8"> {left};</span></div> </td></tr></table> </td> </tr></table></div> + + </li> <li class="itemize"><span class="cmtt-10">right</span><a @@ -1434,17 +1491,17 @@ class="cmti-10">offset</span><span class="cmsy-10">></span> does the same as <span class="obeylines-h"><span class="verb"><span class="cmtt-10">anchor=north</span><span class="cmtt-10"> west</span></span></span>.</li></ul> -<!--l. 448--><p class="noindent"> +<!--l. 465--><p class="noindent"> <h4 class="subsectionHead"><span class="titlemark">11.5 </span> <a id="x12-14100011.5"></a>Transformations</h4> -<!--l. 450--><p class="noindent">It is possible to transform nodes, but, by default, transformations do not apply to nodes. The reason is that you +<!--l. 467--><p class="noindent">It is possible to transform nodes, but, by default, transformations do not apply to nodes. The reason is that you usually do <span class="cmti-10">not </span>want your text to be scaled or rotated even if the main graphic is transformed. Scaling text is evil, rotating slightly less so. -<!--l. 455--><p class="indent"> However, sometimes you <span +<!--l. 472--><p class="indent"> However, sometimes you <span class="cmti-10">do </span>wish to transform a node, for example, it certainly sometimes makes sense to rotate a node by 90 degrees. There are two ways in which you can achieve this: -<!--l. 459--><p class="indent"> +<!--l. 476--><p class="indent"> <ol type="1" class="enumerate1" > <li class="enumerate" value="1" ><a @@ -1460,8 +1517,6 @@ class="cmtt-10">node[transform</span><span class="cmtt-10"> shape]</span><span class="cmtt-10"> {X}</span></span></span>, you will get a “huge” X in your graphic.</li></ul> - - </li> <li class="enumerate" value="2" ><a @@ -1469,13 +1524,13 @@ class="cmtt-10"> {X}</span></span></span>, you will class="cmti-10">inside </span>the option list of the node. <span class="cmti-10">These </span>transformations always apply to the node. - <!--l. 472--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 489--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-247-" ><colgroup id="TBL-247-1g"><col -id="TBL-247-1"><col -id="TBL-247-2"></colgroup><tr - valign="baseline" id="TBL-247-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-247-1-1" -class="td11"> <object data="pgfmanual-248.svg" width="85.55821pt" height="73.91771pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-247-1-2" +frame="void" id="TBL-248-" ><colgroup id="TBL-248-1g"><col +id="TBL-248-1"><col +id="TBL-248-2"></colgroup><tr + valign="baseline" id="TBL-248-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-248-1-1" +class="td11"> <object data="pgfmanual-249.svg" width="115.07718 " height="99.55656 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-248-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -1589,17 +1644,19 @@ class="cmtt-8"> {B};</span> class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> </li></ol> -<!--l. 488--><p class="noindent"> +<!--l. 505--><p class="noindent"> <h4 class="subsectionHead"><span class="titlemark">11.6 </span> <a id="x12-14200011.6"></a>Placing Nodes on a Line or Curve</h4> -<!--l. 490--><p class="noindent">Until now, we always placed node on a coordinate that is mentioned in the path. Often, however, we wish to place +<!--l. 507--><p class="noindent">Until now, we always placed node on a coordinate that is mentioned in the path. Often, however, we wish to place nodes on “the middle” of a line and we do not wish to compute these coordinates “by hand.” To facilitate such placements, Ti<span class="cmti-10">k</span>Z allows you to specify that a certain node should be somewhere “on” a line. There are two ways of specifying this: Either explicitly by using the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos</span></span></span> option or implicitly by placing the node “inside” a path operation. These two ways are described in the following. -<!--l. 501--><p class="noindent"> + + +<!--l. 518--><p class="noindent"> <h5 class="subsubsectionHead"><span class="titlemark">11.6.1 </span> <a id="x12-14300011.6.1"></a>Explicit Use of the Position Option</h5> <ul class="itemize1"> @@ -1620,20 +1677,20 @@ class="cmsy-10"><</span><span class="cmti-10">fraction</span><span class="cmsy-10">> </span>or 0 is the previous coordinate, 1 is the current one, everything else is in between. In particular, 0.5 is the middle. - <!--l. 515--><p class="noindent">Now, what is “the previous line”? This depends on the previous path construction operation. - <!--l. 518--><p class="noindent">In the simplest case, the previous path operation was a “line-to” operation, that is, a <span class="obeylines-h"><span class="verb"><span + <!--l. 532--><p class="noindent">Now, what is “the previous line”? This depends on the previous path construction operation. + <!--l. 535--><p class="noindent">In the simplest case, the previous path operation was a “line-to” operation, that is, a <span class="obeylines-h"><span class="verb"><span class="cmtt-10">--</span></span></span><span class="cmsy-10"><</span><span class="cmti-10">coordinate</span><span class="cmsy-10">></span> operation: - <!--l. 520--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 537--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-248-" ><colgroup id="TBL-248-1g"><col -id="TBL-248-1"><col -id="TBL-248-2"></colgroup><tr - valign="baseline" id="TBL-248-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-248-1-1" -class="td11"> <object data="pgfmanual-249.svg" width="95.98787pt" height="40.49545pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-248-1-2" +frame="void" id="TBL-249-" ><colgroup id="TBL-249-1g"><col +id="TBL-249-1"><col +id="TBL-249-2"></colgroup><tr + valign="baseline" id="TBL-249-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-249-1-1" +class="td11"> <object data="pgfmanual-250.svg" width="128.98334 " height="54.99373 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-249-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1649,7 +1706,7 @@ class="cmtt-8"> node[pos=0]{0}</span><span class="cmtt-8"> node[pos=0.5]{1/2}</span><span class="cmtt-8"> node[pos=0.9]{9/10};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 525--><p class="noindent">The next case is the curve-to operation (the <span class="obeylines-h"><span class="verb"><span + <!--l. 542--><p class="noindent">The next case is the curve-to operation (the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">..</span></span></span> operation). In this case, the “middle” of the curve, that is, the position <span class="obeylines-h"><span class="verb"><span class="cmtt-10">0.5</span></span></span> is not necessarily the point at the exact half distance on the line. @@ -1659,16 +1716,14 @@ class="cmtt-10">0.5</span></span></span> is not necessarily the point at the exa the control points). The exact math is a bit complicated (depending on your point of view, of course); you may wish to consult a good book on computer graphics and Bézier curves if you are intrigued. - - - <!--l. 536--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 553--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-249-" ><colgroup id="TBL-249-1g"><col -id="TBL-249-1"><col -id="TBL-249-2"></colgroup><tr - valign="baseline" id="TBL-249-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-249-1-1" -class="td11"> <object data="pgfmanual-250.svg" width="105.61761pt" height="98.46861pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-249-1-2" +frame="void" id="TBL-250-" ><colgroup id="TBL-250-1g"><col +id="TBL-250-1"><col +id="TBL-250-2"></colgroup><tr + valign="baseline" id="TBL-250-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-250-1-1" +class="td11"> <object data="pgfmanual-251.svg" width="141.82294 " height="132.29097 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-250-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8"> </span><span @@ -1692,18 +1747,18 @@ class="cmtt-8"> in</span><span class="cmtt-8"> {0,0.125,...,1}</span><span class="cmtt-8"> {node[pos=\p]{\p}};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 541--><p class="noindent">Another interesting case are the horizontal/vertical line-to operations <span class="obeylines-h"><span class="verb"><span + <!--l. 558--><p class="noindent">Another interesting case are the horizontal/vertical line-to operations <span class="obeylines-h"><span class="verb"><span class="cmtt-10">|-</span></span></span> and <span class="obeylines-h"><span class="verb"><span class="cmtt-10">-|</span></span></span>. For them, the position (or time) <span class="obeylines-h"><span class="verb"><span class="cmtt-10">0.5</span></span></span> is exactly the corner point. - <!--l. 545--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 562--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-250-" ><colgroup id="TBL-250-1g"><col -id="TBL-250-1"><col -id="TBL-250-2"></colgroup><tr - valign="baseline" id="TBL-250-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-250-1-1" -class="td11"> <object data="pgfmanual-251.svg" width="96.39122pt" height="43.34091pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-250-1-2" +frame="void" id="TBL-251-" ><colgroup id="TBL-251-1g"><col +id="TBL-251-1"><col +id="TBL-251-2"></colgroup><tr + valign="baseline" id="TBL-251-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-251-1-1" +class="td11"> <object data="pgfmanual-252.svg" width="129.52113 " height="58.78766 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-251-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1717,13 +1772,13 @@ class="cmtt-8"> node[pos=0]{0}</span><span class="cmtt-8"> node[pos=0.5]{1/2}</span><span class="cmtt-8"> node[pos=0.9]{9/10};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 550--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 567--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-251-" ><colgroup id="TBL-251-1g"><col -id="TBL-251-1"><col -id="TBL-251-2"></colgroup><tr - valign="baseline" id="TBL-251-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-251-1-1" -class="td11"> <object data="pgfmanual-252.svg" width="104.52422pt" height="39.4278pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-251-1-2" +frame="void" id="TBL-252-" ><colgroup id="TBL-252-1g"><col +id="TBL-252-1"><col +id="TBL-252-2"></colgroup><tr + valign="baseline" id="TBL-252-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-252-1-1" +class="td11"> <object data="pgfmanual-253.svg" width="140.36508 " height="53.57019 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-252-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1737,9 +1792,11 @@ class="cmtt-8"> node[pos=0]{0}</span><span class="cmtt-8"> node[pos=0.5]{1/2}</span><span class="cmtt-8"> node[pos=0.9]{9/10};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 555--><p class="noindent">For all other path construction operations, <span + <!--l. 572--><p class="noindent">For all other path construction operations, <span class="cmti-10">the position placement does not work</span>, currently. This will hopefully change in the future (especially for the arc operation). + + </li> <li class="itemize"><span class="cmtt-10">sloped</span><a @@ -1748,14 +1805,14 @@ class="cmtt-10">sloped</span><a The rotation will always be done in such a way that text is never “upside down.” If you really need upside down text, use <span class="obeylines-h"><span class="verb"><span class="cmtt-10">[rotate=180]</span></span></span>. - <!--l. 563--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 580--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-252-" ><colgroup id="TBL-252-1g"><col -id="TBL-252-1"><col -id="TBL-252-2"></colgroup><tr - valign="baseline" id="TBL-252-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-252-1-1" -class="td11"> <object data="pgfmanual-253.svg" width="62.93848pt" height="104.50159pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-252-1-2" +frame="void" id="TBL-253-" ><colgroup id="TBL-253-1g"><col +id="TBL-253-1"><col +id="TBL-253-2"></colgroup><tr + valign="baseline" id="TBL-253-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-253-1-1" +class="td11"> <object data="pgfmanual-254.svg" width="84.91765 " height="140.33492 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-253-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1778,13 +1835,13 @@ class="cmtt-8"> in</span><span class="cmtt-8"> {0,0.25,...,1}</span><span class="cmtt-8"> {node[sloped,above,pos=\p]{\p}};</span></div> </td></tr></table> </td> </tr></table></div> - <!--l. 567--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 584--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-253-" ><colgroup id="TBL-253-1g"><col -id="TBL-253-1"><col -id="TBL-253-2"></colgroup><tr - valign="baseline" id="TBL-253-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-253-1-1" -class="td11"> <object data="pgfmanual-254.svg" width="57.30548pt" height="40.73602pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-253-1-2" +frame="void" id="TBL-254-" ><colgroup id="TBL-254-1g"><col +id="TBL-254-1"><col +id="TBL-254-2"></colgroup><tr + valign="baseline" id="TBL-254-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-254-1-1" +class="td11"> <object data="pgfmanual-255.svg" width="77.40701 " height="55.31448 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-254-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}[->]</span> @@ -1812,7 +1869,7 @@ class="cmtt-8"> {$y$};</span> class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> </li></ul> -<!--l. 576--><p class="noindent">There exist styles for specifying positions a bit less “technically”: +<!--l. 593--><p class="noindent">There exist styles for specifying positions a bit less “technically”: <ul class="itemize1"> <li class="itemize"><span class="cmtt-10">style=</span><span @@ -1820,16 +1877,14 @@ class="cmtt-10">midway</span><a id="dx12-143005"></a><a id="dx12-143006"></a> is set to <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos=0.5</span></span></span>. - - - <!--l. 580--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 597--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-254-" ><colgroup id="TBL-254-1g"><col -id="TBL-254-1"><col -id="TBL-254-2"></colgroup><tr - valign="baseline" id="TBL-254-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-254-1-1" -class="td11"> <object data="pgfmanual-255.svg" width="104.6411pt" height="154.7531pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-254-1-2" +frame="void" id="TBL-255-" ><colgroup id="TBL-255-1g"><col +id="TBL-255-1"><col +id="TBL-255-2"></colgroup><tr + valign="baseline" id="TBL-255-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-255-1-1" +class="td11"> <object data="pgfmanual-256.svg" width="140.52092 " height="207.33667 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-255-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\tikz</span><span @@ -1982,6 +2037,8 @@ class="cmtt-10">very near start</span><a id="dx12-143011"></a><a id="dx12-143012"></a> is set to <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos=0.125</span></span></span>. + + </li> <li class="itemize"><span class="cmtt-10">style=</span><span @@ -2003,10 +2060,10 @@ class="cmtt-10">at end</span><a id="dx12-143017"></a><a id="dx12-143018"></a> is set to <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos=1</span></span></span>.</li></ul> -<!--l. 605--><p class="noindent"> +<!--l. 622--><p class="noindent"> <h5 class="subsubsectionHead"><span class="titlemark">11.6.2 </span> <a id="x12-14400011.6.2"></a>Implicit Use of the Position Option</h5> -<!--l. 607--><p class="noindent">When you wish to place a node on the line <span class="obeylines-h"><span class="verb"><span +<!--l. 624--><p class="noindent">When you wish to place a node on the line <span class="obeylines-h"><span class="verb"><span class="cmtt-10">(0,0)</span><span class="cmtt-10"> --</span><span class="cmtt-10"> (1,1)</span></span></span>, it is natural to specify the node not following the @@ -2019,7 +2076,7 @@ class="cmtt-10"> (1,1)</span></span></span> to place a node midway between <span class="obeylines-h"><span class="verb"><span class="cmtt-10">(0,0)</span></span></span> and <span class="obeylines-h"><span class="verb"><span class="cmtt-10">(1,1)</span></span></span>. -<!--l. 613--><p class="indent"> What happens is the following: The syntax of the line-to path operation is actually <span class="obeylines-h"><span class="verb"><span +<!--l. 630--><p class="indent"> What happens is the following: The syntax of the line-to path operation is actually <span class="obeylines-h"><span class="verb"><span class="cmtt-10">--</span></span></span> <span class="obeylines-h"><span class="verb"><span class="cmtt-10">node</span></span></span><span class="cmsy-10"><</span><span @@ -2040,12 +2097,12 @@ class="cmti-10">coordinate</span><span class="cmsy-10">> </span>has finally been reached, they are inserted again, but with the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos</span></span></span> option set. -<!--l. 623--><p class="indent"> There are two things to note about this: When a node specification is “stored,” its catcodes become fixed. +<!--l. 640--><p class="indent"> There are two things to note about this: When a node specification is “stored,” its catcodes become fixed. This means that you cannot use overly complicated verbatim text in them. If you really need, say, a verbatim text, you will have to put it in a normal node following the coordinate and add the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos</span></span></span> option. -<!--l. 629--><p class="indent"> Second, which <span class="obeylines-h"><span class="verb"><span +<!--l. 646--><p class="indent"> Second, which <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos</span></span></span> is chosen for the node? The position is inherited from the surrounding scope. However, this holds only for nodes specified in this implicit way. Thus, if you add the option <span class="obeylines-h"><span class="verb"><span class="cmtt-10">[near</span><span @@ -2055,15 +2112,13 @@ class="cmti-10">all </span>nodes given in this scope will be put on near the end <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos</span></span></span> is added will be placed near the end. Typically, this is what you want. Here are some examples that should make this clearer: - - -<!--l. 638--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" +<!--l. 655--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-255-" ><colgroup id="TBL-255-1g"><col -id="TBL-255-1"><col -id="TBL-255-2"></colgroup><tr - valign="baseline" id="TBL-255-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-255-1-1" -class="td11"> <object data="pgfmanual-256.svg" width="92.64124pt" height="43.49931pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-255-1-2" +frame="void" id="TBL-256-" ><colgroup id="TBL-256-1g"><col +id="TBL-256-1"><col +id="TBL-256-2"></colgroup><tr + valign="baseline" id="TBL-256-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-256-1-1" +class="td11"> <object data="pgfmanual-257.svg" width="124.52116 " height="58.99886 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-256-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}[near</span><span @@ -2131,7 +2186,7 @@ class="cmtt-8"> ;</span> <br><span class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> -<!--l. 647--><p class="indent"> Like the line-to operation, the curve-to operation <span class="obeylines-h"><span class="verb"><span +<!--l. 664--><p class="indent"> Like the line-to operation, the curve-to operation <span class="obeylines-h"><span class="verb"><span class="cmtt-10">..</span></span></span> also allows you to specify nodes “inside” the operation. After both the first <span class="obeylines-h"><span class="verb"><span class="cmtt-10">..</span></span></span> and also after the second <span class="obeylines-h"><span class="verb"><span @@ -2140,10 +2195,10 @@ the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">--</span></span></span> operation, these will be collected and then reinserted after the operation with the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pos</span></span></span> option set. -<!--l. 654--><p class="noindent"> +<!--l. 671--><p class="noindent"> <h4 class="subsectionHead"><span class="titlemark">11.7 </span> <a id="x12-14500011.7"></a>Connecting Nodes</h4> -<!--l. 656--><p class="noindent">Once you have defined a node and given it a name, you can use this name to reference it. This can be done in two +<!--l. 673--><p class="noindent">Once you have defined a node and given it a name, you can use this name to reference it. This can be done in two ways, see also Section <a href="pgfmanualse8.html#x9-890008.5">8.5<!--tex4ht:ref: section-node-coordinates --></a>. Suppose you have said <span class="obeylines-h"><span class="verb"><span class="cmtt-10">\path(0,0)</span><span @@ -2184,7 +2239,9 @@ class="cmtt-10">x</span></span></span> is <span class="obeylines-h"><span class= class="cmtt-10">coordinate</span></span></span>, then <span class="obeylines-h"><span class="verb"><span class="cmtt-10">(x)</span></span></span> and <span class="obeylines-h"><span class="verb"><span class="cmtt-10">(x.center)</span></span></span> have exactly the same effect. - <!--l. 675--><p class="noindent">However, for most other shapes, some path construction operations like <span class="obeylines-h"><span class="verb"><span + + + <!--l. 692--><p class="noindent">However, for most other shapes, some path construction operations like <span class="obeylines-h"><span class="verb"><span class="cmtt-10">--</span></span></span> try to be “clever” when this they are asked to draw a line from such a coordinate or to such a coordinate. When you say <span class="obeylines-h"><span class="verb"><span @@ -2198,18 +2255,18 @@ class="cmtt-10">(1,1)</span></span></span>. Likewise, <span class="obeylines-h"> class="cmtt-10">(1,1)--(x)</span></span></span> will also have the line end on the border in the direction coming from <span class="obeylines-h"><span class="verb"><span class="cmtt-10">(1,1)</span></span></span>. - <!--l. 683--><p class="noindent">In addition to <span class="obeylines-h"><span class="verb"><span + <!--l. 700--><p class="noindent">In addition to <span class="obeylines-h"><span class="verb"><span class="cmtt-10">--</span></span></span>, the curve-to path operation <span class="obeylines-h"><span class="verb"><span class="cmtt-10">..</span></span></span> and the path operations <span class="obeylines-h"><span class="verb"><span class="cmtt-10">-|</span></span></span> and <span class="obeylines-h"><span class="verb"><span class="cmtt-10">|-</span></span></span> will also handle nodes without anchors correctly. Here is an example, see also Section <a href="pgfmanualse8.html#x9-890008.5">8.5<!--tex4ht:ref: section-node-coordinates --></a>: - <!--l. 687--><p class="noindent"><div class="obeylines-v"></div><object data="pgfmanual-257.svg" width="139.56454pt" height="65.48363pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 704--><p class="noindent"><div class="obeylines-v"></div><object data="pgfmanual-258.svg" width="187.08534 " height="88.31116 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-256-" ><colgroup id="TBL-256-1g"><col -id="TBL-256-1"></colgroup><tr - valign="baseline" id="TBL-256-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-256-1-1" +frame="void" id="TBL-257-" ><colgroup id="TBL-257-1g"><col +id="TBL-257-1"></colgroup><tr + valign="baseline" id="TBL-257-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-257-1-1" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -2286,10 +2343,10 @@ class="cmtt-8"> (y);</span> class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> </li></ol> -<!--l. 703--><p class="noindent"> +<!--l. 720--><p class="noindent"> <h4 class="subsectionHead"><span class="titlemark">11.8 </span> <a id="x12-14600011.8"></a>Predefined Shapes</h4> -<!--l. 706--><p class="noindent"><span +<!--l. 723--><p class="noindent"><span class="cmcsc-10"><small class="small-caps">P</small><small class="small-caps">G</small><small @@ -2301,17 +2358,15 @@ class="cmtt-10">rectangle</span></span></span>, </li> <li class="itemize"><span class="obeylines-h"><span class="verb"><span class="cmtt-10">circle</span></span></span>, and - - </li> <li class="itemize"><span class="obeylines-h"><span class="verb"><span class="cmtt-10">coordinate</span></span></span>.</li></ul> -<!--l. 715--><p class="noindent">By loading library packages, you can define more shapes. Currently, the package <span class="obeylines-h"><span class="verb"><span +<!--l. 732--><p class="noindent">By loading library packages, you can define more shapes. Currently, the package <span class="obeylines-h"><span class="verb"><span class="cmtt-10">pgflibraryshapes</span></span></span> defines <ul class="itemize1"> <li class="itemize"><span class="obeylines-h"><span class="verb"><span class="cmtt-10">ellipse</span></span></span>.</li></ul> -<!--l. 722--><p class="indent"> The exact behaviour of these shapes differs, shapes defined for more special purposes (like a, say, transistor +<!--l. 739--><p class="indent"> The exact behaviour of these shapes differs, shapes defined for more special purposes (like a, say, transistor shape) will have even more custom behaviors. However, there are some options that apply to most shapes: <ul class="itemize1"> @@ -2331,13 +2386,13 @@ class="cmsy-10">> </span>will be added inside The default <span class="obeylines-h"><span class="verb"><span class="cmtt-10">inner</span><span class="cmtt-10"> sep</span></span></span> is the size of a normal space. - <!--l. 735--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 752--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-257-" ><colgroup id="TBL-257-1g"><col -id="TBL-257-1"><col -id="TBL-257-2"></colgroup><tr - valign="baseline" id="TBL-257-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-257-1-1" -class="td11"> <object data="pgfmanual-258.svg" width="36.94382pt" height="51.44969pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-257-1-2" +frame="void" id="TBL-258-" ><colgroup id="TBL-258-1g"><col +id="TBL-258-1"><col +id="TBL-258-2"></colgroup><tr + valign="baseline" id="TBL-258-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-258-1-1" +class="td11"> <object data="pgfmanual-259.svg" width="50.25822 " height="69.59932 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td> <td align="left" style="white-space:nowrap; text-align:left;" id="TBL-258-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -2390,6 +2445,8 @@ class="cmsy-10"><</span><span class="cmti-10">dimension</span><span class="cmsy-10">> </span>Specifies the inner separation in the <span class="cmmi-10">x</span>-direction, only. + + </li> <li class="itemize"><span class="cmtt-10">inner ysep</span><a @@ -2414,19 +2471,19 @@ class="cmti-10">dimension</span><span class="cmsy-10">> </span>outside the background path. The main effect of this option is that all anchors will move a little “to the outside.” - <!--l. 753--><p class="noindent">The default for this option is half the line width. When the default is used and when the background path is + <!--l. 770--><p class="noindent">The default for this option is half the line width. When the default is used and when the background path is draw, the anchors will lie exactly on the “outside border” of the path (not on the path itself). When the shape is filled, but not drawn, this may not be desirable. In this case, the <span class="obeylines-h"><span class="verb"><span class="cmtt-10">outer</span><span class="cmtt-10"> sep</span></span></span> should be set to zero point. - <!--l. 759--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 776--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-258-" ><colgroup id="TBL-258-1g"><col -id="TBL-258-1"><col -id="TBL-258-2"></colgroup><tr - valign="baseline" id="TBL-258-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-258-1-1" -class="td11"> <object data="pgfmanual-259.svg" width="91.28017pt" height="39.12495pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-258-1-2" +frame="void" id="TBL-259-" ><colgroup id="TBL-259-1g"><col +id="TBL-259-1"><col +id="TBL-259-2"></colgroup><tr + valign="baseline" id="TBL-259-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-259-1-1" +class="td11"> <object data="pgfmanual-260.svg" width="122.70642 " height="53.1664 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-259-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -2492,8 +2549,6 @@ class="cmsy-10"><</span><span class="cmti-10">dimension</span><span class="cmsy-10">> </span>Specifies the outer separation in the <span class="cmmi-10">y</span>-direction, only. - - </li> <li class="itemize"><span class="cmtt-10">minimum height</span><a @@ -2515,13 +2570,13 @@ class="cmsy-10">></span>, the shape will be enlarged appropriately. However, class="cmsy-10"><</span><span class="cmti-10">dimension</span><span class="cmsy-10">></span>, the shape will not be shrunk. - <!--l. 781--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" + <!--l. 798--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-259-" ><colgroup id="TBL-259-1g"><col -id="TBL-259-1"><col -id="TBL-259-2"></colgroup><tr - valign="baseline" id="TBL-259-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-259-1-1" -class="td11"> <object data="pgfmanual-260.svg" width="81.74924pt" height="28.85272pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-259-1-2" +frame="void" id="TBL-260-" ><colgroup id="TBL-260-1g"><col +id="TBL-260-1"><col +id="TBL-260-2"></colgroup><tr + valign="baseline" id="TBL-260-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-260-1-1" +class="td11"> <object data="pgfmanual-261.svg" width="109.99857 " height="39.47014 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-260-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -2558,14 +2613,14 @@ class="cmti-10">dimension</span><span class="cmsy-10">> </span>same as <span class="obeylines-h"><span class="verb"><span class="cmtt-10">minimum</span><span class="cmtt-10"> height</span></span></span>, only for the width. - <!--l. 790--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + <!--l. 807--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-260-" ><colgroup id="TBL-260-1g"><col -id="TBL-260-1"><col -id="TBL-260-2"></colgroup><tr - valign="baseline" id="TBL-260-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-260-1-1" -class="td11"> <object data="pgfmanual-261.svg" width="85.75824pt" height="57.30548pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-260-1-2" +frame="void" id="TBL-261-" ><colgroup id="TBL-261-1g"><col +id="TBL-261-1"><col +id="TBL-261-2"></colgroup><tr + valign="baseline" id="TBL-261-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-261-1-1" +class="td11"> <object data="pgfmanual-262.svg" width="115.34387 " height="77.40701 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-261-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -2591,14 +2646,16 @@ class="cmtt-10">=</span></span></span><span class="cmsy-10"><</span><span class="cmti-10">dimension</span><span class="cmsy-10">> </span>sets both the minimum height and width at the same time. - <!--l. 797--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> + + + <!--l. 814--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"> <table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-261-" ><colgroup id="TBL-261-1g"><col -id="TBL-261-1"><col -id="TBL-261-2"></colgroup><tr - valign="baseline" id="TBL-261-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-261-1-1" -class="td11"> <object data="pgfmanual-262.svg" width="57.30548pt" height="114.21097pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-261-1-2" +frame="void" id="TBL-262-" ><colgroup id="TBL-262-1g"><col +id="TBL-262-1"><col +id="TBL-262-2"></colgroup><tr + valign="baseline" id="TBL-262-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-262-1-1" +class="td11"> <object data="pgfmanual-263.svg" width="77.40701 " height="153.2807 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-262-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> @@ -2621,7 +2678,7 @@ class="cmtt-8"> {circle};</span> class="cmtt-8">\end{tikzpicture}</span></div> </td></tr></table> </td> </tr></table></div> </li></ul> -<!--l. 806--><p class="indent"> The <span class="obeylines-h"><span class="verb"><span +<!--l. 823--><p class="indent"> The <span class="obeylines-h"><span class="verb"><span class="cmtt-10">coordinate</span></span></span> shape is handled in a special way by Ti<span class="cmti-10">k</span>Z. When a node <span class="obeylines-h"><span class="verb"><span class="cmtt-10">x</span></span></span> whose shape is <span class="obeylines-h"><span class="verb"><span @@ -2632,15 +2689,13 @@ class="cmtt-10">(x.center)</span></span></span>. None of the special “line shortening rules” apply in this case. This can be useful since, normally, the line shortening causes paths to be segmented and they cannot be used for filling. Here is an example that demonstrates the difference: - - -<!--l. 813--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" +<!--l. 830--><p class="noindent"><div class="obeylines-v"></div><!--tex4ht:inline--><div class="tabular"><table class="tabular" cellspacing="0" cellpadding="0" -frame="void" id="TBL-262-" ><colgroup id="TBL-262-1g"><col -id="TBL-262-1"><col -id="TBL-262-2"></colgroup><tr - valign="baseline" id="TBL-262-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-262-1-1" -class="td11"> <object data="pgfmanual-263.svg" width="35.51869pt" height="74.86484pt" type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-262-1-2" +frame="void" id="TBL-263-" ><colgroup id="TBL-263-1g"><col +id="TBL-263-1"><col +id="TBL-263-2"></colgroup><tr + valign="baseline" id="TBL-263-1-"><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-263-1-1" +class="td11"> <object data="pgfmanual-264.svg" width="48.35806 " height="100.8194 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object> </td><td align="left" style="white-space:nowrap; text-align:left;" id="TBL-263-1-2" class="td11"> <table class="minipage"><tr><td><div class="obeylines-v"> <br><span class="cmtt-8">\begin{tikzpicture}</span> |