59,733 reputation
3105197
bio website github.com/Qrrbrbirlbel/pgf
location
age
visits member for 2 years, 3 months
seen Sep 6 at 15:58

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].

Jun
24
comment Subequations and align environment
@cacamailg Err, my comment is totally absurd. It should read: “The 3 stands for: number of & plus 1 divided by 2. Or: number of sub-equations (in one row like in align).” We’re missing one right-hand side, so there are actually five alignment points/&. But you can easily use 99 there without any complaint, I think.
Jun
24
answered Subequations and align environment
Jun
24
comment Subequations and align environment
Hihi, but does it blend? :D Sorry. If you only use && in alignat you only get the r or the l columns. (alignat doesn’t add spacebetween the l and r columns like align does (because align is made for equations with two parts (the left-hand and the right-hand side). The centering is more tricky but with mathtools you get an excellent tool for it: \mathmakebox/\mathclap.
Jun
24
comment Subequations and align environment
The *align* environments aligns its columns rlrlrlrl…. In this case, you should use alignat or aligned (if its only on equation with three lines and not three separate equations) where you “jump” over one column by using &&.
Jun
24
revised Subequations and align environment
edited tags
Jun
24
comment Tikz US-style components and other components
You should be able to use the shapes from circuitikz in TikZ (without its syntax or mechanisms to place them). You only need to find out what the shape is named. (I think there is a paragraph in the ciruitikz manual that explains it.)
Jun
24
comment Making TikZ path into a hyperlink
@LaurenPearce I have updated my answer with hopefully helpful comments. It doesn’t matter how you specify the path. I have used relative coordinates because it makes it easier to follow a rectangular path. The essence is to re-use sub-rectangles for the hyperlink. How you achieve that is independent from the actual approach taken here. (I don’t think it is possible to create non-rectangular areas for a link.)
Jun
24
revised Making TikZ path into a hyperlink
added 2528 characters in body
Jun
24
comment Making TikZ path into a hyperlink
@LaurenPearce (If you respond to one particular comment, please include @<username> in your comment (as did I) so that the user gets notified.) I posted an answer that can be used for simple rectangular paths. For making the line itself hyper-active I could see a solution that uses decorations and places small boxes along the line, which would work with any arbitrary paths.
Jun
24
answered Making TikZ path into a hyperlink
Jun
24
comment Making TikZ path into a hyperlink
I assume it would be not okay if the lower right cut-out part of the rectangle is an active link also, right?
Jun
24
comment Draw line from a point to another line (along x-axis or y-axis) in TikZ
@henry 1st: Because you and me are the only users commenting here and I am the author of this answer, so I get notified anyway. 2nd, 3rd and 4th: No hard feelings, I’m sure somebody will find my answer helpful. I only hope that you do not make yourself more work than needed.
Jun
24
comment show part of tikzpicture
The \clip paths discussed here clip also half of the line away. Even better is to use the <overlay> syntax for the \draws or visible on style that makes the path temporarily invisible.
Jun
24
comment Understanding TikZ node placement
The anchors are placed at the border of the line (which has a width), this is done by a default outer sep (outer xsep/outer ysep) of .5\pgflinewidth. Setting these to +0pt places the anchors in the middle of the line. See also [1]. The right key automatically also sets anchor=west (which is usually what you want), so you need to do right=2mm of sw.center,anchor=center. The on grid option makes this the default behavior. See also [2] and [3].
Jun
24
comment Draw line from a point to another line (along x-axis or y-axis) in TikZ
@henry If you’re willing to show what your intended output is, I’ll give some ideas on how to use it (better?). I find it very confusing that you draw a circle, then place an empty (and rectangular!) node at the some place (that is later referenced) and than manually (xshift/yshift) place another node to label that dot. The same can achieved with one node with an outer sep (or shorten paths as in my example) and a label. I think this is clearer then your code but you have by no means to use this code. :) The bigger the MWE, the more I’ll invest in what results in what.
Jun
24
comment Draw line from a point to another line (along x-axis or y-axis) in TikZ
@henry Well, that doesn’t change anything. Even with your code the coordinates (intersection of C--A|-C and A--B) and (intersection of C--B-|C and A--B) still result in the same coordinates on the line from A to B. What you do with these coordinates I leave to you. (This works only with straight lines, otherwise use the intersections library.)
Jun
24
answered Draw line from a point to another line (along x-axis or y-axis) in TikZ
Jun
24
comment LaTeX Hierarchy Chart
Similar output with forest: Square edges in forest package
Jun
24
comment Table row height, text vertical center and color
A few notes beforehand: The \bgroup/\egroup is not needed as the center environment itself already groups its content. The use of \small is wrong. It is a switch so you don’t use \small{<something>} but (to keep it local) {\small <something>}. In this case, though, you could just add \small before \begin{tabular} and it makes the whole table in that size.
Jun
24
revised Table row height, text vertical center and color
deleted 77 characters in body; edited tags