Reputation
67,963
Next tag badge:
111/100 score
18/20 answers
Badges
4 133 247
Newest
 Enlightened
Impact
~1.5m people reached

Jul
23
comment How do you test whether a known key value has been set in pgfkeys
I don't think that anymore. Instead of \relax (which might not be the ideal macro to check against as we have learned) we can simply use \pgfkeys@notset we can check against. Best would be to create our own handlers for that and an own \ifpgfkeyssetbyuser for a better interface.
Jul
23
comment Is there a way to define starred variants for a keyvalue system?
@A.Ellett (I have updated my answer after your edit. The \par seems—in this case—a better approach as you use \raggedleft. If you want to use \\, you need to issue a \noindent at the start. This reduces the conditionals to two.) You can of course initialize the keys with a special macro (say \pgfkeys@notset@by@user) and test against that if an empty value is otherwise a valid input).
Jul
23
revised Is there a way to define starred variants for a keyvalue system?
deleted 48 characters in body
Jul
23
comment Is there a way to define starred variants for a keyvalue system?
@A.Ellett If the key has not been set excludes setting the key with .initial. There is no value-key that is not set. (This is just TeX: \csnameing an undefined macro name expands to \relax.) If the key has not been set by the user it simply has the value of its .initialization. If the user sets a key that has not been .initialized they will get an error message.
Jul
23
comment Is there a way to define starred variants for a keyvalue system?
@A.Ellett \@empty means literally empty: \def\@empty{}. And this also true for the value-key (which is \defed into the special pgfk@/… macro). The \pgfkeysgetvalue macro \lets the second argument to the \pgfk@/… macro, basically \let\@epi@title\pgfk@/ae/…/title. Thus \@epi@title is as it would have been defined as \def\@epi@title{} and can now compared to \@empty. That has nothing to do with \relax.
Jul
23
revised Nodes vertical distance in a legend of a tikzpicture
deleted 46 characters in body
Jul
23
answered Nodes vertical distance in a legend of a tikzpicture
Jul
23
revised How to detect if option provided via \tikzset
edited tags
Jul
23
comment How do you test whether a known key value has been set in pgfkeys
I think this question is related: How to detect if option provided via \tikzset
Jul
23
revised Is there a way to define starred variants for a keyvalue system?
added 1205 characters in body
Jul
22
answered Is there a way to define starred variants for a keyvalue system?
Jul
22
revised Tikz clip shapes with another (built in) shape
added 728 characters in body
Jul
22
answered Tikz clip shapes with another (built in) shape
Jul
22
comment Is there an advantage in using the pgf Basic Layer over tikz?
Related: Conversion of pgf code into TikZ code?
Jul
22
comment Is there a way to define starred variants for a keyvalue system?
No, simply title*/.initial= sets the value to an empty string. The .style itself implies one argument. Though, as I said, I’d check for empty values as egreg did but with pgfkeys, of course.
Jul
22
comment Is there a way to define starred variants for a keyvalue system?
The only difference between title and title* that I see is that the un-starred version includes a final \\. If you define title as a key that simply forwards its argument appended by \\ to title*. On the other hand, I would actually post-process the values so that the user doesn’t need to work so much; of course, this would involve some checking for empty values and is probably depending on how complex the input scenarios can get.
Jul
22
comment Is there a way to define starred variants for a keyvalue system?
You could define title/.style={title*={#1\\}}. By the way, is there a reason you use .code handlers that simply define a macro? You could just use an actual value-key (handler: .initial) and reduce the overhead.
Jul
22
revised McKinsey curve in pgfplots (creating continuous cost curves)
image
Jul
22
comment McKinsey curve in pgfplots (creating continuous cost curves)
Welcome to TeX.sx! As new user without image posting privileges simply include the image as normal and remove the ! in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the ! to turn it into an image again.
Jul
21
revised how to draw a diagram that forks out, then joins in the middle then forks out again?
deleted 305 characters in body