# Patterns in TikZ [closed]

I am trying to make a simple TikZ picture consisting of some rectangles with pattern fills. This is roughly what I have added.

\documentclass{amsart}

\usepackage{amsmath,amsthm,mathrsfs,amssymb,graphicx}
\usepackage[all]{xy}
\usepackage{tikz}
\usetikzlibrary{patterns,arrows}

\begin{document}

\begin{tikzpicture}
\draw[-,thick] (0,0) rectangle (0.5,1);

\draw[-,thick] (1.5,0) rectangle (2,2);
\draw[-,thick,pattern=crosshatch] (1.5,0) rectangle (2,0.5);

\draw[-,thick] (3,0) rectangle (3.5,3);
\draw[-,thick,pattern=crosshatch] (3,0) rectangle (3.5,1);

\draw[-,thick] (4.5,0) rectangle (5,4);
\draw[-,thick,pattern=crosshatch] (4.5,0) rectangle (5,1.5);

\filldraw[-,thick,pattern=crosshatch] (6,0) rectangle (6.5,7);
\end{tikzpicture}


\end{document}

For whatever reason, though, the rightmost column, the one that's to have the crosshatch fill, always comes out black, with no pattern.

I tried a few standard examples from the pgf manual, with the same results. I have

\usetikzlibrary{patterns}


but I wonder if there is something else I have forgotten to include. Any help will be much appreciated. Thanks!

-

## closed as too localized by Werner, percusse, Gonzalo Medina, Harish Kumar, morbusgSep 23 '12 at 4:21

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

@percusse: Good point, thanks. I've updated the example. –  Skeptic Sep 23 '12 at 0:16
Are you using XeLaTeX by any chance? That's the only one that gives me a black box and it gives a warning that patterns are not supported. –  percusse Sep 23 '12 at 0:18
Uh, yup. :-( Now I feel dumb. (Was making a Beamer presentation a few days ago and forgot to switch back.) Thanks! –  Skeptic Sep 23 '12 at 0:24
No problem. Do you mind if we close this as Too Localized? –  percusse Sep 23 '12 at 0:55
Sure, go ahead. I'm not sure what the proper procedure is, I can even delete it if that's preferable. Thanks again. –  Skeptic Sep 23 '12 at 1:13