TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone please explain me why the following code doesn't result in a fill?

And why, sometimes, I get such "very thin lines" artifact (that's visibile in my picture)?

\node (A) at (0,0) {A};
\node (B) at (1,0) {B};
\node (C) at (1,1) {C};
\fill[red] (A) -- (B) -- (C) --cycle;

Here's what I get:

share|improve this question
up vote 7 down vote accepted

As pointed here, nodes have a shape and are not just pure coordinate. Your example works if you replace the fill line by real node coordinates:

\fill[red] (A.center) -- (B.center) -- (C.center) -- cycle; 


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.