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'm trying to draw an arrow by using pstricks, but I cannot do that. The code is below:

\documentclass{book}‎
\usepackage{pstricks}‎‎
\begin{document}‎‎
\psline[linewidth=20pt]{<-}(2,1)‎‎‎
\end{document}‎
    ‎‎‎

What should I change with this code?

share|improve this question
    
What exactly is the problem? Does the output look bad or do you have problems compiling it? –  N.N. Sep 23 '11 at 6:57
    
the output is a blank page while there's no error –  Negin Sep 23 '11 at 6:59
add comment

1 Answer 1

up vote 5 down vote accepted

Run it with xelatex or alternetively with the sequence latex->dvips->ps2pdf. And then view it with the pdf and not the dvi

share|improve this answer
    
thank you Herbert –  Negin Sep 23 '11 at 9:42
add comment

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.