Wilfred van Rooijen | 1 Sep 13:27 2015
Picon

Re: How to set tex dimension inside a "child"

It has been said before and I will repeat it: if you work through the tutorials in the PGF manual all your questions would have been answered. So take your time and educate yourself. If you still have questions, you're welcome to post them here.

Wilfred




On Tuesday, September 1, 2015 6:42 PM, Renato Pontefice <renato.pontefice <at> gmail.com> wrote:


:-) 
Hi Wilfred.. I swear I recognized the 'acronym "before"to check it on Google....:-)
You're right. I will read the manual...But it is 1000 pages (in english, I'm Italian). I do that, in the time I have to do that.
Sometimes, I need a quick tip to see if my idea is right or not :-)

Anyway, thank to all for answer to my question. I do that in the things I know well...

Renato

Il giorno lun 31 ago 2015 alle ore 12:40 Wilfred van Rooijen <wvanrooijen <at> yahoo.com> ha scritto:
RTFM. If you don't know what that means, look it up on Google.

Manual chapter 17 specifically section 17.4

Wilfred



On Monday, August 31, 2015 6:48 PM, Renato Pontefice <renato.pontefice <at> gmail.com> wrote:
Hi,
this is the code you made for me (with some customization). 
Now I have a different need (because I've gone from "test" to "reality")

 
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{trees,shapes.geometric}

%-------definisce stile dei nodi- e non dei Child--------------
\tikzset{%
        startstop/.style={rectangle, rounded corners, minimum width=5cm, minimum height=0.5cm,text centered, draw=black, fill=red!50},        
                io/.style={trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30},
                process/.style={rectangle, minimum width=1cm, minimum height=0.5cm,  text centered, text width=2cm, draw=black, fill=orange!30},
        decision/.style={diamond, minimum width=1cm, minimum height=1cm, text centered, draw=black, fill=green!30},
                arrow/.style={thick,->,>=stealth},
        every node/.style={font=\sffamily,text=white}
}
\tikzset{%
        MyEdgeA/.style={edge from parent path={(\tikzparentnode.west) -| (\tikzchildnode.north)}},
        MyEdgeB/.style={edge from parent path={(\tikzparentnode.south) -| (\tikzchildnode.north)}},
        MyEdgeC/.style={edge from parent path={(\tikzparentnode.east) -| (\tikzchildnode.north)}}
}
%--------------------------------------

\begin{document}
\begin{tikzpicture}[
    thick,
    sibling distance = 7em,
    edge from parent fork down,
    level 3/.style={level distance=5em}
  ]
\node[startstop,text width=10em] (T0) {Pbla bla bla blabla}
    child {node[process, text=black] (T1) {Ricevuta firmata digitalmente}
         child {node[decision,text=red] (T4) {test4}
            child[MyEdgeA] {node[process, text=black] (T5) {test5}
            child[MyEdgeB] {node[process, text=black] (T51) {test51}
                  child[MyEdgeB] {node[process, text=black] (T511) {test511}
                    child[MyEdgeB] {node[process, text=black] (T5111) {test5111}
                      child[MyEdgeB] {node[process, text=black] (T51111) {test51111}
                      child[MyEdgeB] {node[process, text=black] (T511111) {test511111}}}}}}
%attenzione alle parentesi dell' ultimo child in questo esempio l' ultima graffa si chiude con il child 51. Se aggiungo 1 child, devo aggiungere la 6 parentesi graffa
edge from parent
                node[pos=0.5,above,text=black] {No}}
            child[MyEdgeB] {node[process, text=blue] (T6) {test6}
                edge from parent
                node[pos=0.7,right,text=black] {bla bla..}}
            child[MyEdgeC] {node[process, text=orange] (T7) {test7}
                edge from parent
                node[pos=0.5,above,text=black] {Yes}}
        }}
    child {node[process, text=green] (T2) {bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla }};
\end{tikzpicture}
\end{document}

the text on the first two child, contain  (bla bla bla...) contain too much text that expand the box too much.
I'm wondering if is it possible to set the child dimension and the text inside it "harmoniously" with the entire flow.

Because of, it will produce a .pdf that the user could zoom to read also the text smaller, 

Is it possible?

Thank you

Renato

------------------------------------------------------------------------------

_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users




------------------------------------------------------------------------------
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Ritchie Lee | 1 Sep 10:49 2015
Picon

Error recreating phylogenetic tree example

Hello,


I am trying to follow the example on the top of page 431 in the pgf manual here:

http://ctan.math.washington.edu/tex-archive/graphics/pgf/base/doc/pgfmanual.pdf


Here is my source code:


\documentclass{article}

\usepackage{caption}

\usepackage{tikz}

\usepackage[margin=0.5in,landscape]{geometry}

\usetikzlibrary{graphs, graphdrawing}

\usegdlibrary{phylogenetics}


\begin{document}

\centering

\centering

\tikz \graph [phylogenetic tree layout]{

a -- {

b [>length=2] --[length=1] { c, d },

e [>length=3]

}

};


\end{document}


And I am getting this error:

LuaTeX error ...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: 
...wing/lua/pgf/gd/phylogenetics/AuthorDefinedPhylogeny.lua:60: attempt to index
 field 'spanning tree computation' (a nil value)
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'r
esumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'r
unGraphDrawingAlgorithm'
[string "\directlua "]:1: in main chunk.
\pgfgdendscope ...lay.runGraphDrawingAlgorithm() }
                                                   \endgroup \directlua {pgf...
l.16 }


Any help would be highly appreciated.

Thanks!

Ritchie

Ritchie Lee 
Research Engineer 
Carnegie Mellon University-Silicon Valley 
NASA Ames Research Center 
Bldg 19, Rm 1006
Moffett Field, CA 94035 
(650) 335-2847
------------------------------------------------------------------------------
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Renato Pontefice | 31 Aug 11:48 2015
Picon

How to set tex dimension inside a "child"

Hi,
this is the code you made for me (with some customization). 
Now I have a different need (because I've gone from "test" to "reality")

 
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{trees,shapes.geometric}

%-------definisce stile dei nodi- e non dei Child--------------
\tikzset{%
        startstop/.style={rectangle, rounded corners, minimum width=5cm, minimum height=0.5cm,text centered, draw=black, fill=red!50},        
                io/.style={trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30},
                process/.style={rectangle, minimum width=1cm, minimum height=0.5cm,  text centered, text width=2cm, draw=black, fill=orange!30},
        decision/.style={diamond, minimum width=1cm, minimum height=1cm, text centered, draw=black, fill=green!30},
                arrow/.style={thick,->,>=stealth},
        every node/.style={font=\sffamily,text=white}
}
\tikzset{%
        MyEdgeA/.style={edge from parent path={(\tikzparentnode.west) -| (\tikzchildnode.north)}},
        MyEdgeB/.style={edge from parent path={(\tikzparentnode.south) -| (\tikzchildnode.north)}},
        MyEdgeC/.style={edge from parent path={(\tikzparentnode.east) -| (\tikzchildnode.north)}}
}
%--------------------------------------

\begin{document}
\begin{tikzpicture}[
    thick,
    sibling distance = 7em,
    edge from parent fork down,
    level 3/.style={level distance=5em}
  ]
\node[startstop,text width=10em] (T0) {Pbla bla bla blabla}
    child {node[process, text=black] (T1) {Ricevuta firmata digitalmente}
         child {node[decision,text=red] (T4) {test4}
            child[MyEdgeA] {node[process, text=black] (T5) {test5}
            child[MyEdgeB] {node[process, text=black] (T51) {test51}
                  child[MyEdgeB] {node[process, text=black] (T511) {test511}
                    child[MyEdgeB] {node[process, text=black] (T5111) {test5111}
                      child[MyEdgeB] {node[process, text=black] (T51111) {test51111}
                      child[MyEdgeB] {node[process, text=black] (T511111) {test511111}}}}}}
%attenzione alle parentesi dell' ultimo child in questo esempio l' ultima graffa si chiude con il child 51. Se aggiungo 1 child, devo aggiungere la 6 parentesi graffa
edge from parent
                node[pos=0.5,above,text=black] {No}}
            child[MyEdgeB] {node[process, text=blue] (T6) {test6}
                edge from parent
                node[pos=0.7,right,text=black] {bla bla..}}
            child[MyEdgeC] {node[process, text=orange] (T7) {test7}
                edge from parent
                node[pos=0.5,above,text=black] {Yes}}
        }}
    child {node[process, text=green] (T2) {bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla }};
\end{tikzpicture}
\end{document}

the text on the first two child, contain  (bla bla bla...) contain too much text that expand the box too much.
I'm wondering if is it possible to set the child dimension and the text inside it "harmoniously" with the entire flow.

Because of, it will produce a .pdf that the user could zoom to read also the text smaller, 

Is it possible?

Thank you

Renato
------------------------------------------------------------------------------
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Renato Pontefice | 25 Aug 15:53 2015
Picon

2 node, from one

Hi, it's still me.
In my flowchart, I need to have:
- one starting block
- two blocks at the same level, below the start.
the arrow has to start from the center (below) of the first block

I watch ad the doc, but didn't find the solution.
Do anyone has some solution?

TIA

Renato
------------------------------------------------------------------------------
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Renato Pontefice | 19 Aug 12:22 2015
Picon

meaning of few code

Hi,
I'm new to PGF and TikZ. I'm very happy to use it, but not so happy about the documentation.

My first work (with TikZ) is a flowchart. everything goes well except when I need to draw a line from one block to another that stay upperside. I know the way of using: "\draw [arrow] (start) -- (in1);", but unable to do what I need. So I asked on a forum for that, and someone give me the answer that is: "\draw [->] (out1.west) --++ (-1,0) |- (in1);"

Can someone explain me that code?
this is what I understand:
[draw [->]   mean: "draw an arrow
(out1.west) mean "from the west anchor of node named out1"
--++ (-1,0) I DON'T KNOW THE MEANING OF THIS!!!

 |- (in1); mean "draw vertical line until the node named in1

Can someone explain me what does the code that I show would mean?

I read some things on manual but I really don't understand

TIA

Renato

------------------------------------------------------------------------------
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Christian Feuersaenger | 15 Aug 08:43 2015

PGF 3.0.1 released

Hello PGF users,

I am glad to announce that PGF 3.0.1 has been released and is available 
on miktex, texlive (or will be appear soon), CTAN, and sourceforge!

Attached is a list of changes since PGF 3.0.0 .

Kind regards

Christian

List of changes since PGF 3.0.0 :

2015-08-03 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed regression introduced for pgf 3.0.0 (bug #149): leading empty
     lines at the beginning of plot files disabled '-- plot'
     - fixed bug #291 (missing white space trimming in node labels)
     - fixed bug #313 (alias option did not respect name prefix/suffix)
     - fixed bug #341 ("is in pic" was not reset)
     - fixed bug #365 (caused by missing adoption after copy-paste in 
tikzlibraryfolding)
     - fixed bug #315/316 by applying the suggested patch and verifying it

2015-06-12 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed fpu math functions for int, ceil, and floor
     - added \pgfmathlogtwo and \pgfmathlogten as requested in bug #359

2015-06-06 Till Tantau <tantau <at> users.sourceforge.net>

     - Fixed problem in gd: Creating more than about 15 vertices
     inside a graph drawing algorithm was impossible since this
     created too many text input levels. Reorganized the interplay
     between tex and lua for the coroutine so that no input levels
     are created.

2015-06-05 Till Tantau <tantau <at> users.sourceforge.net>

     - Added number nodes option to graph lib.

2015-05-18 Till Tantau <tantau <at> users.sourceforge.net>

     - Fixed nullfont warnings in axes in datavisualization.
     - Fixed wrong axes for school book plots.

2015-05-15 Mark Wibrow <vibrovski <at> users.sourceforge.net>

     - Fixed nullfont warnings when parsing logic gate inputs.

2015-05-08 Till Tantau <tantau <at> users.sourceforge.net>

     - Fixed bug in tikz.code.tex concerning colors for arrow tips:
     Setting and restoring the global color "trackers"
     pgf <at> fillcolor <at> global over groups was done only in \pgfscope,
     but not in the scopes opened and closed by tikz when drawing a
     path (\pgfsys <at> beginscope is used there). This caused wrong
     colors to be used.

2015-05-08 Mark Wibrow <vibrovski <at> users.sourceforge.net>

     - Updated patterns.meta library.

2015-05-02 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - context: committed patch to adopt pgfutil-context for new 
(incompatible)
     context handling of colors -- contains some cleanup by Hans Hagen.

2015-03-28 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed bug in external lib: braces in external filenames confused 
the generator

2015-01-02 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed bug in fpu: equal(x, 0) failed for x<0

2014-12-30 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed bug in atan2 (returned wrong sign for atan2(4e-5,-5))
     - implemented atan2 in FPU

2014-11-02 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed save stack issue (TeX capacity exceeded, sorry [save 
size=250000])
     if the color changes a _huge_ number of times during a single path.

2014-10-11 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - worked on LUA math parser: ensured that a suitable first scope of
     functions works. I also added support for 'declare function'

2014-10-11 Mark Wibrow <vibrovski <at> users.sourceforge.net>

     - Added provisional code for patterns.meta library. Patterns
         can now be declared using TikZ code with additional support
         for tile transformations. Currently only PDF output supported
     at back-end (uses \pgfsys <at> declarepattern <at> meta in pgfsys-pdftex.def).

2014-08-04 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - finished first prototype of a LUA math parser. It is orders of 
magnitude
     faster than its TeX pendant, features a pure LUA mode and also offers a
     fallback to the TeX \pgfmathparse for unsupported operations/functions
     only defined in TeX.

2014-07-09 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed bug (regression of bug #229): external lib with dvips produced
     wrong bounding box (was broken entirely)

2014-07-08 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed regression in external lib: 'mode=graphics if exists' broke any
     undefined label warnigns
     - added automatic "fast lane" to math parser: if the input is a number
     without units, it will return that as-is. Reduces typesetting time 
down to
     66% for huge scatter plots and has just 1% overhead for math intensive
     figures.

2014-06-22 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - added switch 'trig format=deg|rad' which allows to switch 
sin,cos,tan,
     and their friends to radians. It works for all user input
     arguments - I hope without unanticipated side-effects (marked as
     experimental)

2014-05-17 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - external lib: defined suitable defaults for 'system call' 
depending on driver
     - external lib: solved incompatibility with biblatex's \cite[][]{name}
     command 
(http://tex.stackexchange.com/questions/173465/tikz-error-for-externalized-graphics-but-output-is-correct}
     - number parser/printer: added switch 'read comma as period' to read
     localized input numbers. Off by default but added useful hint to parser
     message.

2014-05-06 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - Fixed bug #308 fixedpointarithmetic: unwanted spaces by line ends

2014-03-30 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - Fixed feature #81: signum function (fpu + pgf basic layer)

2014-03-24 Till Tantau <tantau <at> users.sourceforge.net>

     - Fixed all \begin{scope} and \end{scope} in foldings lib,
     changed them to \scope and \endscope.

2014-03-21 Till Tantau <tantau <at> users.sourceforge.net>

     - Fixed #303 Type in pgfmanual (colormixin)
     - Fixed #302 pgf-3.0: Cannot plot a constant function. Will
     now center the constant line.
     - Addressed #299 Precision problem with explicitily anchored
     labels: While not a bug, I added a "centered" option for cases
     similar to this one (although, in this particular case, the
     new centered option is not what is needed)...
     - Fixed #298 \pgfarrowsdeclare is still mentioned in pgfmanual
     - Fixed #294 Nodes for arcs, which angles are calculated
     simultaneously.
     - Fixed #292 "node scale and outer sep" by introducing the new
     option "outer sep=auto", which takes care of both this problem
     (at least in all normal cases) and also of the draw versus
     fill problem with outer seps.

2014-03-20 Till Tantau <tantau <at> users.sourceforge.net>

     - Fixed #285 \tikz <at> intersect <at> namedpaths persists outside
     scopes as suggested.
     - Fixed #284 Additional rerun statement for overlays (for LyX)
     by adding the proposed solution (essentially).
     - Added post-fix for #288 by undoing all -- ligatures in
     verbatim code.

2014-03-19 Till Tantau <tantau <at> users.sourceforge.net>

     - Fxied #283 "Is there a smarter way to handle units in math
     engine?" by adding the "scalar" function.
     - Fixed #288 "All the '£' should be '$' in the examples of
     pgfmanual..." by switching to T1 enconding.
     - Fixed #282 "\pgfmathredeclarefunction does not work properly."

2014-02-24 Till Tantau <tantau <at> users.sourceforge.net>

     - Added first edge routing algorithm to gd.

2014-02-02 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - intersections libs: improved robustness and accuracy for curveto 
paths
     by using the floating point library together with Mark Wibrow.

2014-01-08 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - fixed bug in latex/plain tex shipout routines for xdvipdfmx and 
xelatex:
     combination of shadings    and standalone package failed to work.

2013-12-31 Mark Wibrow <vibrovski <at> users.sourceforge.net>

     - Fix for 'rotate around x/y/z' keys which now evaluate
       the argument provided.

2013-12-25 Christian Feuersaenger <cfeuersaenger <at> users.sourceforge.net>

     - intersections lib: detected duplicates in line-to intersections
     in endpoints and suppressed them.
     - intersections lib: stored time offset for each intersections as 
optional
     property (i.e. if it comes for free). This is required to compute fill
     paths

------------------------------------------------------------------------------
Enrico Rivarola | 3 Jul 11:46 2015
Picon

wrong pdf labels per page when using latex beamer

Hi,
I have a problem when using beamer notes on `a second screen` by including the
lines:

\usepackage{pgfpages}
\setbeameroption{show notes on second screen}

Normally, beamer creates the same page label for pages which belongs together.
The problem arises when I use beamer notes on `a second screen`.

I found a possible reference to that problem on beamer site
(https://bitbucket.org/rivanvx/beamer/issue/228/wrong-pdf-labels-per-page-when-using-notes),
but this discussion refer to a pgfpages problem so I send this message.

With a sample example I would explain better the problem:

------------ sample.tex file --------------------------
\documentclass{beamer}

\usepackage{pgfpages}                                               % second
screen option
\setbeameroption{show notes on second screen}  % second screen option

\begin{document}

\begin{frame}{First slide}
\end{frame}

\begin{frame}{Second slide}
  \begin{itemize}
  \item first item
    \pause
  \item second item
    \pause
  \item third item
  \end{itemize}
\end{frame}

\end{document}
------------ sample.tex file --------------------------

Without 'second screen' option the page sequence, as expected, is 1,2,2,2
but with 'second screen' option the sequence is 1,1,2,2

There is some particular configuration/utilization of pgfpages package as
workaround to this problem ?

Thanks in advance
Enrico

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
Norbert Zeh | 13 May 20:59 2015
Picon
Picon

Re: Strange curve drawing or foreach bug

On Wed, May 13, 2015 at 3:23 PM Ignasi <nignasi <at> gmail.com> wrote:
I don't understand what happens but if instead of "(a)" you use "(a.east)" or "(a.center)" it works. Looks like the "foreach" breaks the path in two paths when the origin is not a coordinate but a node.

Yes, indeed that seems to be what's going on here.  These workarounds are useful, thanks, but I think this is really something fundamental enough that should be fixed in TikZ so no workarounds are necessary.  (I'm hoping that the developers are following this list ;) ).

Cheers,
Norbert 
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Norbert Zeh | 13 May 13:58 2015
Picon
Picon

Strange curve drawing or foreach bug

Hi folks,

I've really fallen in love with TikZ, so I've been playing with it a lot recently.  As part of my explorations, I've run into the following issue.  In the attached document, all three tikzpictures should draw an S-shaped curve, the last two with a circular node at the beginning.  The first three examples do draw the desired shape.  In the last example, I get two curves, one from (a) to (v2), the other from (a) to (v3).  Must be be something strange that foreach does here.  Does anybody have any insight how to fix this?

Thanks,
Norbert
Attachment (test.tex): text/x-tex, 2091 bytes
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
shawn wilson | 2 May 23:53 2015
Picon

Trying to create a picture of a rack and devices

I'm running into a few problems w/ this:
1. I first tried to just create a "rack" shape, but couldn't figure
out how to offset the lines so that everything didn't look like it was
sitting in the middle of the rack. I couldn't figure that out so;
2. I figured I'd make little spots for things to sit and then be able to do:
  \path [line]                    (r0u7) --    (switch);
which worked until I realized I'd have multiple of these things (pdu,
network switches, kvm switches, etc) so am trying to make a macro work
(which isn't - below).
3. Does anyone have an example of a drawing of server equipment in a
rack (it seems I shouldn't be the first to be doing this and an
example - maybe with macros I could look at - would be nice).
4. Is there a way to say "I want 5 shapes inside this other shape at
an equal distance apart" so I don't need to figure out \unitplace?
5. when I draw a curved line over another box, the area of the tangent
to the curve is taken up as well (probably doesn't matter unless it
goes over other shapes and then it looks bad).

% \rack[units][name][x][y]
% #1 Number of rack units - 24 or 48
% #2 Name to be printed for the rack and used to address each unit:
% "Rack r0" would be a name and "r0u12" would be the 12 unit on that rack
% #3, #4 x and y position of the rack
\newcommand\rack[4][48][r0][0][0]
{
  \edef\lowerbound{{#4-((#1*2)-.25)}}
  % Place nodes
  \foreach \i in {1,...,#1}%
  {%
    \edef\unitplace{{\lowerbound + (\i*.5)}}
    % Reference each unit with <name><unit> ie: r0u5
    \edef\rackunit{#2}
    \appto\rackunit{u}
    \appto\rackunit(\i}
    \node [rack] (\rackunit) at (#3,\unitplace) {\rackunit};%
  }%
  \node [rack, minimum height=12cm]  (#2) at ({#3 - .5},#4)      {Rack #1};
}

### OUTPUT
 % rubber -vd midas.tex

temp/latex swlap1
compiling midas.tex...
There were errors compiling midas.tex.
midas.tex:40: Illegal parameter number in definition of \lowerbound.
midas.tex:40: leading text:   \edef\lowerbound{{#4
midas.tex:40: Illegal parameter number in definition of \lowerbound.
midas.tex:40: leading text:   \edef\lowerbound{{#4-((#1
midas.tex:42: Illegal parameter number in definition of \pgffor <at> values.
midas.tex:42: leading text:   \foreach \i in {1,...,#1}
midas.tex:48: Illegal parameter number in definition of \pgffor <at> body.
midas.tex:48: leading text:     \appto\rackunit(\i}
midas.tex:48: Illegal parameter number in definition of \unitplace.
midas.tex:48: leading text:     \appto\rackunit(\i}
midas.tex:48: Illegal parameter number in definition of \unitplace.
midas.tex:48: leading text:     \appto\rackunit(\i}

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
Joshua Ellis | 29 Apr 14:04 2015
Picon

BUG and Fix: GraphDrawing with Coordinates

Hi,

Firstly, I would like to say that PGF/TikZ is an absolutely amazing package, especially because using it is so enjoyable.

I do have one problem though. I wish to draw Feynman diagrams and this stackexchange answer offers a very neat way of doing this in TikZ; however, between the time that answer was posted and now, a change was introduced breaking the code. I submitted a bug report nearly a year ago hoping that you might fix it at some point; though I am not actually sure whether you use or look at these bug reports.

A minimal working example of the bug is

\documentclass[tikz]{standalone} \usetikzlibrary{graphdrawing, graphs} \usegdlibrary{force} \begin{document} \begin{tikzpicture} \graph [spring layout, nodes={coordinate}] { 1--2--3--4--5--1 }; \end{tikzpicture} \end{document}

where the issue appears because of nodes={coordinates} and using other node types does not cause the issue. This bug seems present in v3.0.0 and also in the CVS version.

With my rudimentary Lua understanding, I have managed to make a small fix. This may not be the best way to go about it, but it seems to work for me.

Also, as a last comment: have you thought about using Github to manage PGF/TikZ? In this particular instance, I would be able to easily raise the issue, fork the main repository and create a pull request, and even if it isn’t the best way to fix it, other users can easily find the bug report and see how I’ve fixed it. Sourceforge does not seem to have any easy way of doing this (and even simple tasks such as filing a bug requests feel like a chore…).

I have created a clone of the CVS repository on Github, and if one of you would like to take ownership, you are more than welcome; otherwise, I will be keeping the repository until the next version of PGF/TikZ is released with this fix.

Regards


Joshua Ellis


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

Gmane