57,600 reputation
398188
bio website github.com/Qrrbrbirlbel/pgf
location
age
visits member for 1 year, 9 months
seen Apr 1 at 3:43

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
13
comment Chaotic billiard with TikZ
(–1) What is chaotic billard? (The images you posted do not look chaotic.) How are these shapes defined? What happens here? What are the rules? What is the math behind it? What is the input? — While TikZ can calculate the direction of a curve (straight, circular, ellipsoid, Bézier) on any point, this information is pretty much forgotten after the drawing. One could help with coordinates placed along the path and the intersections library but this will need tremendous work for a chaotic billard table. Rectangles, ellipses, rounded rectangles and regular polygons: easier.
Dec
13
comment Automatic connection of text points in tikz-qtree
Does the forest package qualify as a “better way to do this”? You can give nodes in tikz-qtree names if you use the usual \node (<name>) {<text>}; syntax. For referencing only letters of one node, you may be able to use \subnode from the tikzmark library/package.
Dec
13
comment tikz, positioning library: node distances in scaled pictures
@UlrikeFischer Well, you can use the node distance transformation key with the usual syntax, too: below=3 of C would be transformed just as well. The part before : scales the node distance (if no distance is given between : and of). The default for node distance=1cm (or 1cm and 1cm?).
Dec
12
comment tikz, positioning library: node distances in scaled pictures
@UlrikeFischer The parsing can be done for both catcodes (similar things are done with label/pin). The colon wouldn’t look that lost if you’d use it with of C (but we can use *). — Either way, it seems I am missing your actual goal. I thought you want to give a factor for the values stored in node distance that is applied when given and scaling (transformation) via scale etc. Obviously the 1 and 1 factor is non-sense. You could just do =of C then. Maybe positioning is not the right approach?
Dec
12
comment Labels in tikzcd?
Yes, swap only swaps the side of auto (left to right and vice versa). In fact, for sloped only the anchors north and south make sense really. So it may be a good idea to also introduce the key Sloped'/.style={sloped, anchor=north}
Dec
12
comment “Failed to find …x.pdf” error message in Texstudio
Can you compile the file correctly without TeXstudio (e.g. via Shell/Command Line/etc)? If not, then the installation of your distribution is corrupt. If however, the configuration of TeXstudio is erroneous. Can you check the configuration for example for pdfLaTeX?
Dec
12
comment Node distance “and” command not working
The <direction> of syntax is deprecated. See Difference between "right of=" and "right=of" in PGF/TikZ.
Dec
12
answered tikz, positioning library: node distances in scaled pictures
Dec
12
comment tikz, positioning library: node distances in scaled pictures
To extend on that, as node distance is for node (aka labels for a diagram) placement, they are usually not considered for transformations defined outside of the node. transform shape changes that (which is not a solution here). See also Scaling "node distance" in tikz and Andrew’s comment.
Dec
12
comment tikz, positioning library: node distances in scaled pictures
Do you prefer below right=<distance or factor> and at (C) over below right=<distance or factor> of C (whereas the latter does set an appropriate anchor for the reference point on C in case of a node with a shape)? My positioning-plus (update on the way) helps with the factoring. What should the last example yield? Where should the new node lie exactly?
Dec
12
comment How to fix showing table labels in TeXstudio when using ctable package?
This would be something something for a Feature Request, this cannot be solved with TeX. Maybe by defining a new \ctablewithlabel{<label>}[<other options>]{<arg 1>}{<arg 2>}{<arg 3>} macro (that is added to a custom .cwl file with the l classifier. Maybe there is a way with TeXstudio’s (JavaScript) macros. Well, and you can always add something like \iffalse\label{tab:somelabel}\fi so that TeXstudio picks up the label but not TeX. (A comment won’t suffice.)
Dec
12
comment how to draw $|x-2|$ with tikz?
You can also do samples at={-.5,2,3} which only evaluates three points to draw this plot.
Dec
12
comment Exactly 27 errors?
\let\br\bottomrule \def\bottomrule{\br\br\br\br\br\br\br\br\br\br\br\br\br}
Dec
12
comment Uneven vertical alignment with $\in$
That is its default glyph/position. Compare with for example > that has the same depth.
Dec
12
comment Drawing flow diagram in LaTeX using TikZ
Related: Spanning multiple lines + text width for fixed length or Dependent node size in TikZ Overlapping. If you can improve your question/code with the answers from there, and you still need assistance, you can edit your question.
Dec
11
comment Labels in tikzcd?
If you define, say Sloped/.style={sloped, anchor=south} you won’t need shifting and manual rotation (arrows can be any angle). Though, shifting shouldn’t be needed if you use the proper anchor anyway.
Dec
11
comment Fiber-Optic-Style decoration
Do you maybe want a node shape so that it can be used with the circuits family?
Dec
11
comment With TikZ, is it possible to only clip horizontally or vertically?
It may be possible if you create a dummy path so that we know its actual dimension. We can clip then using those dimensions and the (actual) needed vertical/horizontal dimension. The actual drawing then happens after the clipping. — Do you know something beforehand? Say, will the new path fit in the current bounding box (at least in the direction you don’t want to clip)? The PGFPlots package provides a few restrict y to domain filter do achieve this without clipping.
Dec
11
answered Is there a way in TikZ to reflect regular polygons of an arbitrary number of edges?
Dec
10
comment Artin's squiggly arrow?
Can you give us the specification of the arrow? What is important? Otherwise it looks just like a squiggly arrow to me.