Reputation
1,711
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
8 22
Newest
 Yearling
Impact
~35k people reached

  • 0 posts edited
  • 0 helpful flags
  • 53 votes cast
Jan
2
accepted How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?
Jan
2
comment How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?
That is another good suggestion you've made but note that if you put the "pre fill" and "internal border" keys in the wrong order, you won't get the result you want. I think you can do something like "prepend style" to get it to always be put at the start. You have suggested a lot of very serviceable ideas for approaching this problem, but all of them have problems of some sort - this is not your fault, it's just that there isn't (in my opinion) a perfect solution to this, short of modifying TikZ/PGF to add an "in between fill and draw" action.
Jan
2
comment How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?
I'm working on my own solution that involves using decorations, but it's not finished yet and I'm going out now. I'll make a decision about this in the next few days.
Jan
2
comment How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?
I see. I did not realise that using the "draw" key in a post- or preaction would cause the styles set in the "calling code" to be used... I'm not sure whether to accept this answer though, because it still hardcodes that "draw" is used at all: try removing the "draw" key from the calling code; a default-style border is drawn. But arguably you would be writing bad code if you tried to do this without using draw (because why are you doing something that effectively draws the outline of the shape, without making use of the key that is supposed to be used for that purpose...?)
Jan
2
comment How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?
As I said in the question: "Maybe you could add 'draw' in there to get it drawn again, but you'd lose any styles applied alongside the internal border key, like if I had specified a colour for it." You've hardcoded that the border line should be black, width 0.4pt. What if the styles I specify provide that the border line should be thick and red? I'll get (due to the clipping) half of a thick red line on the outside and a 0.2pt black line on the inside. Thus your key doesn't "play nice" with other keys I might reasonably wish to combine it with.
Jan
2
asked How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?
Oct
10
awarded  Yearling
Sep
16
comment How do I typeset the c++ increment symbol in LaTeX?
I believe there's something called "math units" which is dependent on the font and which you're supposed to be able to use as a length, but Latex didn't recognise it, and I was too lazy to look into why not. I didn't take the time to carefully decide what was the right amount of space, so 1pt very likely isn't the right amount; that's why it says to alter it to taste. Basically this answer is throwing an idea out and I don't care that it isn't thoroughly thought out or good quality.
Sep
15
answered How do I typeset the c++ increment symbol in LaTeX?
Aug
31
awarded  Popular Question
Aug
11
comment Can Tikz's “double” style be applied to arrow heads?
Paul, I had not. Voted to close this.
Aug
11
revised Can Tikz's “double” style be applied to arrow heads?
Make endorsement of the bottom example clearer
Aug
11
asked Can Tikz's “double” style be applied to arrow heads?
Aug
8
awarded  Nice Question
Jul
27
revised Why is the space below the numerator different to the space above the denominator?
improved version of macro
Jul
26
answered Why is the space below the numerator different to the space above the denominator?
Jul
26
asked Why is the space below the numerator different to the space above the denominator?
Jul
20
awarded  Popular Question
Jul
15
awarded  Popular Question
Jun
25
comment XeLaTeX with fontspec is slow every time, not just the first time
Loading the font by filename does work. I do not need to set the path, presumably because the fonts directory is one of the places a font is looked for automatically.