1 Feb 19:03 2014

### multiple arguments with \pic ?

I'm playing with the new \path pic or \pic that was introduced in recent versions of tikz.
Is there any way to have multiple arguments, i.e., make a call \pic{mypicture={red}{green}} ?

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

31 Jan 05:22 2014

### how to position children along a line in mindmap

I have a mindmap with 4 level 1 nodes that grow at 0, 90, 180 and 270,
each with its own level 2 children. All nodes are arranged in a circle
around their parents but I would like to change the circle to a straight
line for the level 2 children only. How would I do that? Is there an
option or some style I can modify? There are many level 2 nodes and I
would not like to set the coordinates to each node individually. I guess
I can do that in foreach, but I'm thinking there has to be a way to
achieve this with styles. Here is the current code:

\def\clustSpan{135}
\def\clustOffset{(180-\clustSpan)/2}

\begin{tikzpicture}[small mindmap, text=white, minimum size=0,
text width=1.5cm, concept color=blue!90,
%% root concept/.style={concept color=blue!90,fill=cyan},
root concept/.append style={
%% minimum size=0, text width=3cm,
concept color=blue!90,text=black
},
level 1/.append style=
{every child/.style={concept color=blue!60,
sibling angle=360/\the\tikznumberofchildren,
level distance=2cm,
minimum size=0, text width=1cm}},
level 2/.append style=
{every child/.style={concept color=blue!30,
sibling angle=135/(\the\tikznumberofchildren -1),
level distance=1.5cm,
minimum size=0, text width=0.5cm}},
grow cyclic
]
\node[concept] {Root}
[counterclockwise from=0]
child[concept] {node[concept] {child 1}
[counterclockwise from=-90+\clustOffset]
child[concept] foreach \x in {1,2,3} {node[concept] {\x}}
}
child[concept] {node[concept] {child 2}
[counterclockwise from=0+\clustOffset]
child[concept] foreach \x in {4,...,7} {node[concept] {\x}}
}
child[concept] {node[concept] {child 3}
[counterclockwise from=90+\clustOffset]
child[concept] foreach \x in {7,...,11} {node[concept] {\x}}
}
child[concept] {node[concept] {child 4}
[counterclockwise from=180+\clustOffset]
child[concept] foreach \x in {12,...,17} {node[concept] {\x}}
};
\end{tikzpicture}

Oh, and one more question. How do I compute (programatically) the
"clockwise from=" angle for the level 2 children? Right now I hardcoded
-90, 0, 90 and 180 and that works for 4 children, but I want something
general. I'm guessing a custom grow function that depends on the
\tikznumberofcurrentchild of the parent node. Mathematically this would
be 90*(n-1) where n=0,1,2,3 is the index of the level 1 child, but how do
I code that up?

Thanks!

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.

15 Dec 12:50 2013

### Coordinate system intersection is undocumented?

Hello,

In pgf 2.00, the intersection coordinate is documented (12.2.4 Intersection Coordinate Systems). We can
then use, for example,

\fill (intersection of 0,3--2,2 and 2,0--4,4) circle (2pt);

to draw the intersection point of two lines. Although the two line segments do not intersect, the extension
lines do.

However, in pgf 2.10 and later (3.00rc), only "name intersections" in intersections library is
documented, the old document of intersection coordinate system is erased. We cannot use

% \usetikzlibrary{intersections}
\draw[name path=a] (0,3) -- (2,2);
\draw[name path=b] (2,0) -- (4,4);
\fill[name intersections={of=a and b, by=x}] (x) circle (2pt); % error: No intersections

Therefore I think the old syntax is still useful and worth a document.

Leo.

------------------------------------------------------------------------------
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!

4 Dec 23:14 2013

### touching curves/arrows

Hello:

I am new to tikz/pgf.

I would like to draw flowcharts. I learned how to make nodes and edges.

I would like to make arrows similar to shown in the attached png image.

Nodes A and B, and the arrow between them is fixed, and the other arrow
with nodes C and D should be drawn relative to it.

I could not find anything like this in the manual or elsewhere.

Any help is appreciated.

Thanks

bcsikos

------------------------------------------------------------------------------
Develop, test and display web and hybrid apps with a single code base.
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

3 Dec 16:10 2013

### periodic table - new item

Hello!

I want to make an periodic table of the elements.
I have found an very good example on "texample".
http://www.texample.net/tikz/examples/periodic-table-of-chemical-elements/

Now I want to add some more items like electronegativity.
But I fail ...

May be some code from the example can help you to find a solution:

The author make a new command with:

----->8---
\newcommand{\CommonElementTextFormat}[4]
{
\begin{minipage}{2.2cm}
\centering
{\textbf{#1} \hfill #2}%
\linebreak \linebreak
{\textbf{#3}}%
\linebreak \linebreak
{{#4}}
\end{minipage}
}
---->8----

and another new command

----->8------
\newcommand{\NaturalElementTextFormat}[4]
{
\CommonElementTextFormat{#1}{#2}{\LARGE {#3}}{#4}
}

\newcommand{\OutlineText}[1]
{
\ifpdf
% Couldn't find a nicer way of doing an outline font with TikZ
% other than using pdfliteral 1 Tr
%
\pdfliteral direct {0.5 w 1 Tr}{#1}%
\pdfliteral direct {1 w 0 Tr}%
\else
% pstricks can do this with \pscharpath from pstricks
%
fillstyle=solid,
fillcolor=white,
linestyle=solid,
linecolor=black,
linewidth=.2pt]{#1}
\fi
}
------->8---------

Afterwards he created a node in which you can describe the elements.

------->8-----
%% Group 1 - IA
\node[name=H, Element] {\NaturalElementTextFormat{1}{1.0079}{H}{Wasserstoff}};
------>8-------

How can I add a new item?

Or knows someone the mail adress of the author?

Greetings

Arne
------------------------------------------------------------------------------
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

2 Dec 09:37 2013

### minimum height of boxes in multipart nodes

hi!
is it possible to determine minimal height of boxes which constitute rectangle shape with multiple text parts? something similarly to existed

/pgf/rectangle split empty part height=<...>

but with valid in boxes containing text even with it in more lines, i.e.: that height of boxes are independent from contained text? something as:

/pgf/rectangle split parts height=<...>

regards,    zarko

------------------------------------------------------------------------------
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

1 Dec 01:37 2013

### [SPAM] Buy WATCHES JEWELRY and ACCESSORIES in our shop!

We offer different watches- rolex etc., jewelry and presents. - http://x.co/2yCiO
SALE! + 15% discount for every 250\$ or more order!

----------------------------------------------
The message was checked by Zillya Antivirus 1.1.3450.0, bases 2.0.0.1529 - No viruses detected
------------------------------------------------------------------------------
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Php-syslog-ng-support mailing list
Php-syslog-ng-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/php-syslog-ng-support

27 Nov 02:11 2013

### error using \font

Hello,

I am facing an issue with styles in tikz. Using font= in a node with fixed width and right-aligned text causes
an unexpected indentation to be added. I have created a minimal working example to illustrate this behavior:

\documentclass{article}

\usepackage{tikz}

\tikzset{every node/.style={draw=black,thin}}

\begin{document}

\begin{tikzpicture}
\node [text width=16em,align=flush right] {\footnotesize This is OK};
\end{tikzpicture}

\begin{tikzpicture}[every node/.append style={font=\footnotesize}]
\node [text width=16em,align=flush right] {This is not OK};
\end{tikzpicture}

\end{document}

Why does this happen? Is it a bug or I'm doing something wrong?

Thanks,

Flavio Costa

------------------------------------------------------------------------------
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!

4 Nov 20:44 2013

### data visualization: attaching a style sheet to a custom attribute

Hi all,

I'm using the CVS version of PGF and I'm trying the new data
visualization features. The manual says that style sheets are attached
to sets by default by the "style sheet" option, but they can also be
attached to custom attributes. I've tried to do that but it seems that
I've done something wrong because I always obtain curves that have the
same default style.

What I'm trying to do in the minimal example below is to define four
sets (s1,s2,s3,s4) but only use two styles from a style sheet, one for
sets s1 and s3, and another for s2 and s4. To do that I first add a
custom attribute myattr to the data points. This part seems to work: I
checked I can use it, for example, as the attribute for the x axis.
Then I try to attach a syle sheet to this attribute by adding the
following line to the options for datavisualization:
/data point/myattr/.style sheet=<name of a style sheet>
If I understand correctly the manual, this should give different
styles to the lines corresponding to different values of the attribute
myattr. However the following example gives me only black lines (and
no errors).
What I'm doing wrong?

Luca Donetti

%%%%%%

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{datavisualization}

\begin{document}
\begin{tikzpicture}
\datavisualization [
scientific axes,
% by uncommenting the following line I can check that myattr works
% x axis={attribute=myattr},
visualize as smooth line/.list={s1,s2,s3,s4},
% the following line does not work, all 4 lines are black
/data point/myattr/.style sheet=vary hue,
]
data [set=s1,/data point/myattr=1] {
0, 0
1, 0.5
}
data [set=s2,/data point/myattr=2] {
0, 0.2
1, 0.3
}
data [set=s3,/data point/myattr=1] {
0, 1
1, 1.5
}
data [set=s4,/data point/myattr=2] {
0, 1.2
1, 1.3
};
\end{tikzpicture}
\end{document}

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
Android apps secure.

4 Nov 11:58 2013

Section 56 of the manual (v2.10) claims that pgffor can be used independently of pgf. However, this claim seems to me misleading because, according to my tests, the 'evaluate' and 'count' keys require pgfmath. See the following code (compiled with pdftex):

\input pgffor % The following doesn't require pgfmath: \foreach [ var = \i, remember = \i as \lasti (initially -1) ] in {1,2,...,5}{\i\ } \input pgfmath % (comment this line in or out to see the effect) % However, the evaluate and count keys require pgfmaths % (pdftex returns an error if pgfmath is not loaded) \foreach \i [ evaluate = \i as \ii using 2*\i, count = \counti, ] in {1,2,...,5}{\counti: \ii\par} \bye
-----------------------------------------------------------------
Julien Cretel
PhD student (Marie Curie Actions)
University College Cork, Ireland
Lecturer for AM2032: Numerical methods & programming
Email: j.cretel <at> umail.ucc.ie
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

4 Nov 12:09 2013

Section 56 of the manual (v2.10) claims that pgffor can be used independently
of pgf. However, this claim seems to me misleading because, according to my
tests, the 'evaluate' and 'count' keys require pgfmath. See the following
code (compiled with pdftex):

\input pgffor
% The following doesn't require pgfmath:
\foreach
[
var      = \i,
remember = \i as \lasti (initially -1)
]
in {1,2,...,5}{\i\ }
\input pgfmath	% (comment this line in or out to see the effect)
% However, the evaluate and count keys require pgfmaths
% (pdftex returns an error if pgfmath is not loaded)
\foreach \i
[
evaluate  = \i as \ii using 2*\i,
count     = \counti,
]
in {1,2,...,5}{\counti: \ii\par}
\bye

--