59,743 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].

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.
Dec
10
comment Artin's squiggly arrow?
What makes this squiggly arrow so special? With the decorations.pathmorphing library (and arrows) I can do \draw[decorate, decoration={zigzag, segment length=+2pt, amplitude=+.75pt,post length=+4pt}, -stealth'] (a) -- (c); which looks quite good to me.
Dec
10
comment Creating a edge-trigger symbol in LaTeX
All % but the one after { are not necessary, by the way. Instead of guessing a proper scale value you can directly use font-units em and ex to draw something that should scale with the text.
Dec
8
answered How can I get these two nested \foreach loops to work?
Dec
8
comment Can we set the contents of each frame be top aligned?
I don't know about \setbeamertemplate but you can simply use the class option t so that every frame is top-aligned: \documentclass[t]{beamer}.