Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I do have a short problem with Tikz

\documentclass{article}
\usepackage{pgf,tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\fill[pattern=north east lines] (0,0) -- (0,1) -- (1,1) -- (1,0) -- cycle;
\end{tikzpicture}
\end{document}

I simply want to fill differently shaped areas with north east lines. Which is done as is it's supposed to be. But the problem i can not figure out is why they are not exactly straight. Certainly nobody would notice in print but in the pdf it just looks distorted. Is there a way to improve this?

share|improve this question
5  
This is yet another side effect of the PDF-viewer, has nothing to do with TikZ or pstricks if that is used. Try zoom in and see if it disappears? It does in my case. –  zeroth Apr 7 '12 at 9:43
    
Related: tex.stackexchange.com/q/52704/12774 –  JohnReed Jun 7 '12 at 0:46

1 Answer 1

As is mentioned in the comment above, the display is dependent on your choice of pdf viewer. For example in Acrobat X we get the following in a 100%, 300% and 500% zoom:

enter image description hereenter image description hereenter image description here

Now in SumatraPDF, you get the following:

enter image description hereenter image description hereenter image description here

Notice how the display varies with the viewer. Hence there is no way to improve on this. The printing output will not be affected.

share|improve this answer
    
But who prints documents these days? ;-) –  topskip Jun 7 '12 at 6:11
    
Its true, I scarcely print except for exams. But even there one expects the best from LaTeX. –  azetina Jun 7 '12 at 13:39

Your Answer

 
discard

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.