koslowj | 25 Jan 00:13
Picon
Picon
Favicon
Gravatar

questin concerning insert path


In section 14, page 141, there is an example of the insert path command,
where circles are inserted.  How can I insert filled circles?

-- Jürgen
--

-- 
View this message in context: http://old.nabble.com/questin-concerning-insert-path-tp33198396p33198396.html
Sent from the pgf-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Ignasi Furió | 9 Jan 10:36
Favicon

How to label a |- edge within \graph (pgf-cvs version)?

I'm trying to draw some block diagrams with new \graph command form pgf  
(cvs version) as it's explained in
chapter "Tutorial: Diagrams as simple graphs". This way I can place nodes  
and easily join them. I'm able to add labels to
edges but I can't when when the edge is 'cornered' ( |- or -| )
Here you have a minimal example. To nodes joined with three labeled edges,  
labels A and C are shown but not label B.
Do you know how to do it? I've already asked this question in  
tex.stackexchange.com:
http://tex.stackexchange.com/questions/37733/how-to-label-complex-edges-with-graph-library

I've already know a solution (look at C label) but this means to manually  
break the path in two straight parts.
I would like to know if something like [near start], [pos=.3] or similar  
options
could be used (or are planned to be added in future releases).

Thank you very much,

Ignasi

%-----------------------------------
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,graphs,matrix}

\begin{document}
\begin{tikzpicture}[>=stealth',
     font=\sffamily\small,
     every node/.style={align=center},
(Continue reading)

Picon

alternate symbols for circuits library

I have some requests and suggestions for the excellent TikZ circuits library.

1) "make contact" (single-pole-single-throw switch) with circles on *both* sides, as here: http://en.wikipedia.org/wiki/File:SPST-Switch.svg
2) the "var resisitor" has its jagged lines at 45 degrees, but usually resistors are drawn more jagged, as here: http://en.wikipedia.org/wiki/File:Circuit_elements.svg

Are such changes easy to make?

I am also interested in
3) a "curly" inductor (not just bumpy), like the one shown here: http://en.wikipedia.org/wiki/File:Circuit_elements.svg, or better yet like http://www.penwatch.net/cms/wp-content/uploads/Inductor-Symbol.png and http://sub.allaboutcircuits.com/images/01050.png

Finally, it would be excellent if the "current direction" arrows could allow any of the tikz library arrow head types to be used instead, at the correct size and using the "current direction" interface.

Suggestions for implementing these would be most welcome!  (I would attempt to build and use locally what I'm looking for, but the circuits symbols are mainly defined in pure pgf, which I don't know!  And I think these additions or changes would be useful to the wider community.)

Best,
Nathaniel

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Stefan Kottwitz | 1 Jan 22:11

texample.net has a new maintainer

Hi,

the site http://www.texample.net has a new maintainer now. Since Kjell
Magne Fauske, who created the site, doesn't find the time for
maintaining the site any more, he decided to stop it. When I heard
this, I offered to take over the maintenance, and Kjell Magne agreed.

So I installed the site on a new server. I'm currently focused on
maintaining and extending the TikZ example gallery, which is the most
prominent part of the site. Since I took over last month, I added 24
examples of 12 authors including some of mine. If you would like to
see new additions, have a look at

  http://www.texample.net/tikz/examples/all/date/

If somebody has nice TikZ examples and would like to contribute to the
TikZ example gallery, I'll gladly add them, just contact me via the
site.

Happy New Year!

Stefan

PS: I also posted this information to comp.text.tex, but I would like
to reach pgf and TikZ users on the pgf-users mailing list too.

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
Bernhard Kleine | 22 Dec 13:17
Picon
Gravatar

Errors using the example from TikZ manual

Hi,

with the following code I encounter errors for unknown reasons. The
tutorial pages are 46-48 where the code is taken from.

As I get only digests from this list, please put myself in CC that I get
any reply faster.

Bernhard

\begin{document}

\maketitle

\begin{tikzpicture}
  [transition/.style={rectangle,draw=black!50,fill=black!05,thick,inner
sep=0pt,minimum size=10mm}]

  \node at (0,9) [transition] (startleft)   {1};
  \node at (1,9) [transition] (startmiddle) {};
  \node at (2,9) [transition] (startright)  {};

  \node at (1,6) [transition] (nextleft)    {1}
    edge [<-] (startmiddle);
  \node at (2,6) [transition] (nextmiddle)  {L};
  \node at (3,6) [transition] (nextright)   {R};

\end{tikzpicture}
\\[5mm]

\begin{tikzpicture}
  [transition/.style={rectangle,draw=black!50,fill=black!05,thick,inner
sep=0pt,minimum size=10mm},
   pre/.style={<-,shorten <=1pt,>=stealth’,semithick}]

  \node at (0,9) [transition] (startleft)   {1};
  \node at (1,9) [transition] (startmiddle) {};
  \node at (2,9) [transition] (startright)  {};

  \node at (1,6) [transition] (nextleft)    {1}
    edge [pre] (startmiddle);
  \node at (2,6) [transition] (nextmiddle)  {L};
  \node at (3,6) [transition] (nextright)   {R};

\end{tikzpicture}

\end{document}
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
jt_04 | 1 Dec 17:20
Picon

Node text not displayed correctly


I'm a new Tikz user and very excited at the possibilities. I've having a
problem with placing text at a node: no matter what node location I specify,
the text always appears at (0,0). Here is a minimum working example:

\documentclass[draft]{article}
\usepackage{tikz}\begin{document}
\begin{tikzpicture}
\draw[help lines,step=1cm] (0,0) grid (3cm,3cm);
\node at (2,2) {test};
\end{tikzpicture}
\end{document}

My output contains the word "test" in the lower left corner, instead of at
coordinates (2,2). Any help is much appreciated!

Judson

http://old.nabble.com/file/p32895325/tikzpic.dvi tikzpic.dvi 
--

-- 
View this message in context: http://old.nabble.com/Node-text-not-displayed-correctly-tp32895325p32895325.html
Sent from the pgf-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
rajtendulkar | 29 Nov 14:01
Picon

Tables with TIKZ


Dear All,

I want to have a table in Latex.
I could have used the tabular environment, but I need some formatting hence
I used Tikz.

My Question is that -
1. Is it possible to write a more generic code, that if we scale the image,
because of hard-coded values it will not affect the entire structure.
2. Is there a better way to do this thing? :)

I have attached the code I have written.
http://old.nabble.com/file/p32880543/temp.tex

Thank You,
Raj
--

-- 
View this message in context: http://old.nabble.com/Tables-with-TIKZ-tp32880559p32880559.html
Sent from the pgf-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
Jeremie Knuesel | 24 Nov 12:11
Picon

Re: Mathematical expressions in transformations, nodes, etc?

Thanks for bringing that up, it also clarified things for me...

Here is the problem, the following does not work - I want the units to be ex

\newcommand{\tran}[4]{
\draw[->,thick] (7,7) to[out=60,in=120] node[above=1] {$[L]=\begin{bmatrix}#1&#3\\#2&#4\end{bmatrix}$} (23,7);
\house{}{}
\house{shift={(30,0)}}{x={(#1,#2)},y={(#3,#4)}}
}

\begin{tikzpicture}[x=1ex,y=1ex]
\tran{1}{1}{1}{-1}
\end{tikzpicture}

This will expand to:

\begin{tikzpicture}[x=1ex,y=1ex]
...
\house{shift={(30,0)}}{x={(1,1)},y={(1,-1)}}
\end{tikzpicture}

The \house line defines the 'x' vector as (1, 1). Since the (1, 1) coordinate is dimensionless, it's interpreted as 1 * current x vector + 1 * current y vector = (1ex, 0) + (0, 1ex) = (1ex, 1ex). This is what you want.

Then it defines the 'y' vector as 1 * x vector - 1 * y vector. But here it uses the new x vector you just defined so you get (1ex, 1ex) - (0, 1ex) = (1ex, 0). Not what you want.

 
This does work, note the change in the line \house{shift={(30,0)}}{x={(#1,#2)},y={(#3,#4)}} to \house{shift={(30,0)}}{x={(#1ex,#2ex)},y={(#3ex,#4ex)}}:

\newcommand{\tran}[4]{
\draw[->,thick] (7,7) to[out=60,in=120] node[above=1] {$[L]=\begin{bmatrix}#1&#3\\#2&#4\end{bmatrix}$} (23,7);
\house{}{}
\house{shift={(30,0)}}{x={(#1ex,#2ex)},y={(#3ex,#4ex)}}
}

\begin{tikzpicture}[x=1ex,y=1ex]
\tran{1}{1}{1}{-1}
\end{tikzpicture}

It works because now you specify the new x, y vectors with dimensions (absolute coordinates). So the y vector definition doesn't use the x that was just defined.

 
If I now switch to non-integer entries it breaks, i.e., 

\begin{tikzpicture}[x=1ex,y=1ex]
\tran{1}{1}{1/2}{-1}
\end{tikzpicture}

This will expand to

\house{shift={(30,0)}}{x={(1ex,1ex)},y={(1/2ex,-1ex)}}

The term 1/2ex is interpreted by the math engine, but maybe not as you expect: all dimensions are converted to points. This is fine if you do something like "1cm + 2ex + 1" (it becomes 28.54 + 8.6 + 1, in points). But if you write 1/2ex, it becomes 1/8.6 in points. You should write 1ex/2 = 4.3 / 2 in points.

Here is a possible fix:

\newcommand{\tran}[4]{
\draw[->,thick] (7,7) to[out=60,in=120] node[above=1] {$[L]=\begin{bmatrix}#1&#3\\#2&#4\end{bmatrix}$} (23,7);
\house{}{}
\house{shift={(30,0)}}{x={(1ex*#1,1ex*#2)},y={(1ex*#3,1ex*#4)}}
}

\begin{tikzpicture}[x=1ex,y=1ex]
\tran{1}{1}{1/2}{-1}
\end{tikzpicture}


Jeremie

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Lasse Kliemann | 21 Nov 06:41

inner separation left and right

There is 'inner xsep', but can I also specify left and right 
separation separately? For example 'inner leftsep = 1cm, inner 
rightsep = 2cm' to have 1cm separation on the left side and 2cm 
on the right side.

Thank you!
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Richard Ketchersid | 6 Nov 23:59
Picon
Gravatar

Mathematical expressions in transformations, nodes, etc?

Mathematical expressions in transformations, nodes, etc?


\newcommand{\meval}[1]{\pgfmathparse{#1}\pgfmathresult}
\newcommand{\myxtransform}[2]{(\meval{#1},\meval{#2})}

\begin{tikzpicture}
\begin{scope}[x={\myxtransform}]
\draw[->] (0,0) -- (1,0);
\end{scope}
\end{tikzpicture}

For example, just for implementing something like:

\begin{scope}[x={(1/3,-2/3)}]
\draw[->] (0,0) -- (1,0);
\end{scope}

it seems like some such method is needed.

The result of trying this is:

Preview: PDFoutput 1
)
! Incomplete \iffalse; all text was ignored after line ...
<inserted text> 
                \fi 


Is there some way to use fractions in specification of transformations? This at least would help a bit. Certainly 

\begin{scope}[x={(1/3,-2/3)}]
\draw[->] (0,0) -- (1,0);
\end{scope}

gives the wrong thing while

\begin{scope}[x={(.3333,-.6666)}]
\draw[->] (0,0) -- (1,0);
\end{scope}

is closer. 

--
Best,

Richard Ketchersid
http://sites.google.com/site/richardketchersid/

Mathematics Department
University of Texas, Dallas
Richardson TX 75083


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Carel van Dam | 6 Nov 15:35
Picon

Creating a library

Hi hi,

Hope you are doing well and that this isn't a repeat question.

I'm trying to make a tikz/pgf chemical engineering symbols library, I think it's unfair that the electronic people have one and I'm trying to square the odds ;D

So I've looked in the tree read the pgf/tikz manual (ver 2.10) especially chapters 70.7, 85, and 86 and I'm a  little lost ^_^.

1 ) I understand I can inherit anchors from other shapes like rectangle, but I don't know the names of the available saved anchor macros to reference them, is there is a list somewhere or does anyone know which file the rectangle specification is stored in so I can pick at the code a little ? I've looked in pgfcore.shapes I think it was and it had at most ten lines which I'm sure are not the specification.

2 ) I also understand I can inherit the background paths from other shapes but this doesn't help when you're trying to make new shapes. which leads me to my bigger question, I'm trying to draw the left wall, base and right wall of a tank. I've gotten some code snips form other parts of the pgf library and stitched them together in my own one and well it doesn't work, I'm sure I'm missing something but not sure what. I've attached the code in three files, the first are the files that should go into the latex TDS and the latter is my test file. I haven't added any anchors other then centre so that the problem is more clear (and because I'm still getting to code those.). 

3 ) When a node is created is it drawn in terms of the following order, back background>background>fore background>test>back foreground>foregorund>fore fore ground or is the size of the text box first determined and then the rest follows ? if it is in this order I think the reason my code fails is that it doesn't have access to the text co-ordinates first.

4 ) I actually have many more questions since I've been trying to do this for a while but I'll start here if that's ok :D I've tried googling some of the above but i think my google streak is broken at the moment.

regards,

Carel

P.S. If you need to know where the files go it is as follows :
pgflibraryshapes.test.code.tex goes in \miktex\tex\generic\pgf\libraries\shapes\
tikzlibraryshapes.test.code.tex goes in \miktex\tex\generic\pgf\frontendlayer\tikz\libraries\
The textest file should compile after you run refresh names database on miktex, I don't know what the appropriate measure is on the other text platforms I'm sfraid.

Attachment (pgflibraryshapes.test.code.tex): application/x-tex, 2181 bytes
Attachment (tikzlibraryshapes.test.code.tex): application/x-tex, 674 bytes
Attachment (TexTest.tex): application/x-tex, 525 bytes
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

Gmane