58,675 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
13
comment Smart shifting of words in a TikZ box
Why are you using \pgftext instead of \node? What do you mean with “stick out on the right too much”? It looks like both Abstract and Acknowledgments are pretty much the same length in the green box. And what do you want to shift about what length? Is there a reason you are using remember picture (with no coordinates/nodes) and overlay?
Dec
13
comment Chaotic billiard with TikZ
If you do not have the coordinate (the hits) beforehand, TikZ and its intersections library is not the tool for this task. It lacks the precision: For a circle of radius of 2 and a starting point of (45:2) and the direction -90, the result after 20 hit shows that the hits are not as expected all at (n*90+45:2) (for all integer ns). The result for 200 hits is even worse. Note that the inner empty region is shifting downwards.
Dec
13
comment Breaking an arrow with text in a flowchart
I wouldn’t overwrite the label key … Also: Should \tikzset or \tikzstyle be used to define TikZ styles?
Dec
13
comment Breaking an arrow with text in a flowchart
If you can place the node before you draw the arrow, you can use it as an intermediate point: \draw[->] (start) -- (node) -- (target);.
Dec
13
comment Breaking an arrow with text in a flowchart
Related: path with both mark connection node and arrow tip
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.