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
Pathe | 16 Mar 18:26 2015
Picon

chessboard and intersections

Hello.

With the following ECM :

begin{tikzpicture}
\draw [red] (0,0) rectangle (5,5);
\draw [green] (5,0) rectangle (10,5);
\draw [green] (0,5) rectangle (5,10);
\draw [red] (5,5) rectangle (10,10);
\end{tikzpicture}

... each square is "over" the previous one :
the upper right red square has his outer line over the others
in the middle of the figure.

How can I avoid this
and have all lines visible and exactly connecting at point (5,5) ?

I apologize for my poor english
and for this basic question :
as I hardly describe it,
I was unable to find its solution in the manual.

Thanks.

Patrick

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
SimpleLatex Help | 15 Mar 20:20 2015
Picon

An online tool for previewing and sharing LaTeX notes

[Please disregard if you found it irrelevant.]

I built a LaTeX-related website that I would like to share. Originally I built it as a side-by-side tool for my own convenience when sketching TikZ images. I hope some of you may find it useful:

SimpleLaTeX
http://www.simplelatex.com

Introduction
SipmleLaTeX is an online tool where you can preview and share short notes in LaTeX. It may be useful if you are writing a complicated equation, table, or TikZ image that requires iterative trial-and-error. Current features include:
  • A trimmed image is generated and displayed in scalable SVG;
  • Images in PDF and PNG formats are also available for download;
  • You can save your note being sketched to your browser's cache, which will be loaded next time you visit;
  • You can publish your compilable note and share it with others.
The site requires HTML5 support so it may not work in older browsers.

SimpleLaTeX is not designed to handle full LaTeX documents such as writeLaTeX does. The goal is to be light-weight and in spirit more like jsfiddle

Any suggestions are welcome. Thanks!

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Tonio | 5 Jan 12:14 2015
Picon

[SPAM] Tonio j



http://thewebmaker.coolromania.ro/ektdm/ynvdocmnqlithceubhnjbgganzjdashyhsst.hlxxztdoqbklmwkcohhjfvyghgqm
















Tonio
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Christoph Weyer | 12 Dec 10:24 2014
Picon

TikZ 3.0 - path fading and Acrobat XI

Hello,

I have the following problem. After using TiKZ 3.0 I can not print my
generated documents in Acrobat XI. Acrobat shows the document as normal,
but when I try to print there is an error message that no page for
printing is available. When I use a version prior TiKZ 3.0 no error
occurs. The problem occurs under MiKTeX and TeXLive.

Here is a small example that produces the described behaviour:

\documentclass{scrartcl}

\usepackage{tikz}
\usetikzlibrary{fadings}

\begin{document}
  \begin{tikzpicture}
    \fill[fill=green,path fading=circle with fuzzy edge 10 percent]
        (0,0) circle (3cm);
  \end{tikzpicture}
\end{document}

Kind regards
Christoph

--

-- 
Institute of Telematics
Hamburg University of Technology
Schwarzenbergstrasse 95
21073 Hamburg, Germany

Tel.: (+49) 40 42878-3375
Fax:  (+49) 40 42878-2581

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
robert papanicola | 23 Sep 20:11 2014
Picon

[fit] and [tranform shape]

comportemen of [fit] associated with [tranform shape] has changed since the last release. 
the problem is stated here : http://tex.stackexchange.com/questions/183457/inconsistent-behavior-of-tikz-fit-and-transform-shape

I find that the proposed solutions are regressions

robert

--
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Marshall Feldman | 17 Sep 21:19 2014
Picon

PGF, TikZ, LyX, and TikZ-Editor under OS X

Hello,

I'm new to this list because I just started using PGF/TikZ and now have a few questions. I'm hoping someone out there has passed this way before. I have two fairly general questions.

I'm working on a book project and using LyX to write the book. Because the book will involve several different macroeconomic models, I plan to use TikZ to draw a series of stock/flow diagrams. I will use these both for explaining the models in the book, as well as for developing my own thinking about them as they evolve.

So at the most basic level is the question of what's the best way to do this with LyX. I realize half of this may be a question more about LyX than PGF/TikZ, but because my second question is primarily about PGF/TikZ and the two are related, I am posting them both here.

I have successfully produced PGF/TikZ diagrams in straight LaTeX and some simple diagrams in an otherwise bare LyX file by inserting LaTeX commands in a LyX Tex Code block (ERT). The next step will be to create more complex documents, with figures inserted as figure floats with captions, and then somehow insert the figures themselves. "Somehow" because I'm unsure of the best way to do this.

Ideally the inserted figure would basically just be the PGF/TikZ code, as when one uses straight LaTeX with PGF/TikZ. This will probably have to be within a Tex Code block (ERT). In turn, this would be on sub-document of some kind, most likely a child document. So the top-level document would be a regular LyX file with captioned figure floats; In turn, each figure float would use a child document for its figure, and each child document would just have an ERT block containing the instructions to draw the diagram (i.e., \begin{tikzpicture} ... \end{tikzpicture}). The diagram would then be rendered in the LyX document via the Instant Preview feature and on the final output via pdfLaTeX.

I realize I could just use PGF/TikZ to generate diagrams in pdf format, but I want the figures to be susceptible to easy editing. This is especially important because as the models increase in complexity I will probably want to change the graphical conventions in the diagrams (e.g., replacing rectangles with pentagons as the shape for financial institutions.

Is this the best way to accomplish my goal of having flexible, editable diagrams throughout the book, or is there a better way to address this?

My second question concerns composing the diagrams themselves. Since I'm new to PGF/TikZ, since the project will last a few years during some which I will not be working with diagrams, and since I intend to take advantage of the programability of PGF/TikZ, I want to use a "parser/renderer" that displays the resulting figure as one edits the PGF/TikZ code. TikzEdt is such a parser/renderer, as is Fred Peschanski's TikZ-Editor. But since I'm using Macs and the site for TikzEdt has disabled OSX downloads due to problems, so I think I'm left with TikZ-Editor as my only option.

But thus far I've been unable to make TikZ-Editor work. I downloaded the dmg file and installed the program. But when run it, it throws an error message saying it can't find "preview.sty."

I checked with TeX Live, which says preview.sty is installed. So I thought Tikz-Editor is not installed properly. Its README file says it needs Python, PyQt, QScintilla, and ImageMagick. Moreover, I'm using Macs running OS X, and the README file says a Mac OS X installation must have Python packages altgraph and modulegraph installed and pyinstaller to build the bundle. I started doing this but soon realized all this is very unlike what one usually encounters with Macs. For example, I can only find source code for PyQt, and while compiling the program is not beyond me, I've never had to do this before for common Mac software. So I started looking for a complete, pre-compiled bundle for TikZ-Editor, and I soon came across a forum page saying that TikZ-Editor was not seeing preview.sty because its search path was not right. But I cannot find a way to change the search path in TikZ-Editor. (I also looked to see if there's a forum devoted TikZ-Editor so I could ask my questions there, but so far have not found one.)

Basically my questions boil down to:
  1. What is the best way to include PGF/TikZ graphics in a complex document being composed in LyX?
  2. What is the best and most efficient way to develop the commands for PGF/TikZ graphics, particularly with an development environment combining syntax checking, code parsing, and dynamic (WYSIWYG) rendering of the graphic being developed?

Sorry to be so long-winded. I just want to give enough information so that you wizards out there can give meaningful help. Please share your wisdom if you've tread this path before, and please help me if you can.

Thanks.

    Marsh

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Paul BOURDET | 17 Sep 12:19 2014
Picon

datavisualization with plain TeX

Hello,

When loading the datavisualization library, an error occurs :

the lines 2398 to 2401 in the file tikzlibrarydatavisualization.code.tex
call for the macro \tikzdvdeclarestylesheetcolorseries defined in line 2386
and this macro call two macros
  • \definecolorseries
  • \resetcolorseries
which are defined in xcolor.sty, but not in color.sty, the only one which is usable under plain TeX.

For the moment beeing I've just commented those 4 lines but I hope there are other remedies.

Thank you for your comments

Paul BOURDET
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

Gmane