58,805 reputation
3101190
bio website github.com/Qrrbrbirlbel/pgf
location
age
visits member for 2 years
seen Jun 4 at 15:29

If you are interested in my TeX-related projects, you can find various TikZ libraries over at my GitHub account.

The libraries are:

  • node-families

    The node-families library has been developed in response to “Dependent node size” where the Op asks for automatic re-sizing of related nodes so that they have the same minimum size.

    Use the keys

    • Minimum Width=<family>,
    • Minimum Height=<family>,
    • Text Height=<family> and
    • Text Width=<family>

    to assign a node to a specific family of nodes that shall have the same dimensions. This works on a per-picture basis and uses the .aux file so you will need at least two compilations.

  • paths.ortho ([1] and [2])

    This library is too huge to explain it here. Take a look at my answers [3] and [4].

  • paths.rectangle

    The paths.rectangle library provides two similar timers (the functions that place nodes along paths) for the rectangle path operator. They are explained on the answer that inspired the creation of these timers.

  • patterns.images: See [5].
  • positioning-plus: See [6].

Dec
22
comment Adding arrows with values over an expression
Inside of the node, the \mathchoice macro will always detect text-style.
Dec
20
comment Decorate tikz path with cyrillic text
You need to enclose them in braces, e.g.: text={{ä}{ö}{ü}}.
Dec
20
comment insert text on chart
@user21431 Have you loaded the tikz-cd package as in my code?
Dec
20
comment Strange behaviour with \detokenize and underscore
There’s no _ in the OT1 encoding. It is at position 0x5F (ASCII) in T1. At this position is ˙ in OT1.
Dec
20
comment Special tree in tikz
Use base right and base left. These things might also be achieved with pins.
Dec
19
comment Why doesn't “double” work in the options list of a scope?
It doesn’t work in the same way like draw (or fill) wouldn’t work there. Both add an mode to the current path (all modes are reset at the start of the path after which the every path style is executed). All other options just set a specific setting.
Dec
19
comment Creating a node fitting the horizontal width of two other nodes
Related: TikZ: Make node height span several others
Dec
19
comment Compute the x distance between two nodes
Related: TikZ: Make node height span several others
Dec
19
comment How to determine minimum width of rectangle with distance between two nodes
Related: TikZ: Make node height span several others
Dec
19
comment insert text on chart
@user21431 Download the files as linked in the answer and place them in your local texmf tree (see Where do I place my own .sty files, to make them available to all my .tex files?) If you just want to test them, you can place the files in the same folder as your main .tex file.
Dec
18
comment DVI compiling problem with TikZ
I can’t reproduce your error here. Can you edit your question so that your code produces the error. You will either need name path global and/or the .expanded handler (to expand \x properly).
Dec
18
comment How to define a pgf curve with points instead of controls?
You can use \pgfplothandlercurveto (= smooth) in PGF, too. However, it would be easier (especially for a closed curve) to use a simple calculated path (say an arc that explicitly passes through those points).
Dec
17
comment Halftone shading with TikZ
Oh! Yes, it is. I’m sorry. But there is still mod(\xi,2)==0 which can substitute for iseven(\xi).
Dec
17
comment Halftone shading with TikZ
By the way, you can use PGFmath functions in the specification of coordinates: \path […]({iseven(\xi)*.15},\x)--(2,\x);. I think you get faster if you use line cap=round and a dash pattern with a zero-length on phase.
Dec
17
comment How do you accomplish stealth' with the new arrows.meta?
round is not round enough for you?
Dec
17
comment Move graph nodes on a circular path while keeping the circle
@Ari How precise do you want it to be? You could calculate the exact point where the lines would start and end but the shorten > amount would skew it anyway (because it shortens on a straight line not along the path). The intersections library can always help but makes the solution much longer.
Dec
17
comment Two calls to cycle, only one appears to work. Why?
If you use nodes, TikZ applies a little magic so that the lines are only connected to the border of the nodes. The red path consists of several move-tos and line-tos. The function of -- cycle is the same as in \path (<some coordinate>) -- cycle. You can either use coordinates instead of nodes, add (t1) instead of cycle or use .center with every node depending on what you want to do. The same problem arises if you want to fill that triangle which corners are the nodes. It won’t work because you only have two simple lines.
Dec
16
comment How to avoid uppercase function name while using Function?
Welcome to TeX.SX! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question.
Dec
15
comment Computing the rectangle encompassing a node and a point
With the fit library you can just do \node[fit=(rect)(point), inner sep=+0pt,draw] {}; to achieve a rectangle that encompasses (rect) and (point). From your code, you are missing at least a few pt after the \pgfmathresults in the coordinate specification of x, y and so on.
Dec
15
comment line 66: Missing number, treated as zero \end{frame}
The second column in the second big frame misses the width argument.