33,399 reputation
15792
bio website
location
age
visits member for 2 years
seen 10 hours ago

10h
comment Nested \def's causing \inaccessible error
Maybe {\catcode\%=12 \gdef\capitalize#1{\directlua{str="#1"; tex.sprint(string.gsub(" "..str, "%W%l", string.upper):sub(2))}}}` would be better.
1d
comment Define stretchable shading
@PaulGaborit try putting [every node/.style={draw=red, line width=.5cm, shape=circle}, execute at begin node=b] as options to the tikzpicture. For a general solution each node with the shading might have to have some kind of "cancelling" style depending on the context in which it was used.
1d
comment Define stretchable shading
Don't forget that any scope-wide node settings/styles would have to be reset, otherwise some undesirable effects might be produced (put execute at begin node=b in the tikzpicture options. It's a stupid example but it illustrates the point).
2d
revised Define stretchable shading
Corrected labels
2d
answered Define stretchable shading
Dec
17
revised Incomprehensible behaviour of calc library with a “foreach variable”
improved answer, added hack
Dec
16
comment Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture
Since on background layer is a style that just uses the execute at begin scope and execute at end scope keys it should be simple to define an appropriate style based on the definition in tikzlibrarybackgrounds.code.tex
Dec
16
answered Incomprehensible behaviour of calc library with a “foreach variable”
Dec
16
comment Defining a vector of variables in Tikz
@amorvincomni possibly a bounding box problem (?). When you create the lines for the intersections they are 2cm long which for some of the triangles may result in a point further out than in previous frames. you could try using \useasboundingbox to manually set the bounding box to prevent this issue (if this is what is causing the problem).
Dec
16
answered Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture
Dec
15
awarded  Nice Answer
Dec
15
revised Define decoration with cloud shapes to resemble smoke
Added some smoke rings
Dec
15
comment “There is no p in font nullfont” when drawing arrow
AFAICT in this case the problem is with the arrows.meta library as without the arrow specification there are no messages.
Dec
15
comment “There is no p in font nullfont” when drawing arrow
This is the result of unnecessary pt in the PGF code. Something like \somedimen=#1pt where #1 was expected to be a number without units but had units so the pt is output into the document. However inside a tikzpicture the font is set to \nullfont resulting in these warnings.
Dec
15
answered Define decoration with cloud shapes to resemble smoke
Dec
14
comment xslant mathematically
x_1=x_0+k*y_0 and y_1=y_0
Dec
13
comment Defining a vector of variables in Tikz
@amorvincomni ah yes, I see that now.
Dec
13
answered TikZ correspondence between two levels
Dec
12
revised Defining a vector of variables in Tikz
optimised the inner loop
Dec
12
comment Defining a vector of variables in Tikz
@amorvincomni I have incorporated your improvements into my answer, also showing a use for the math library.