Sign up ×
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.

For some reason I can't get diagonal arrows/vectors to work. Only the arrowhead shows up - the line is missing. For example, in the following, the first vector is fine (horizontal) but the second just gives a floating arrowhead.

\begin{picture}(60, 40)
  \put(30, 20){\vector(1, 0){30}}
  \put(30, 20){\vector(4, 1){20}}

I've tried using \thicklines, \thinlines, doesn't make a difference.

I'm using MiKTeX 2.9 with TeXnicCenter.

share|improve this question
As I said to your crosspost on, the code snippet is working and shows lines. Perhaps provide a complete example which show the undesired behavior. – Stefan Kottwitz Mar 4 '12 at 22:34
Hi Mark, Welcome to! I've removed the thanks. It's just the style here. Thanks is best expressed in the up voting of answers that are helpful. – qubyte Mar 5 '12 at 4:48
If you are just starting out with drawing pictures, I would highly recommend looking at tikz. For example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[thick, -latex] \draw[red] (0,0) -- (4,0); \draw[blue] (0,0) -- (3,1); \end{tikzpicture} \end{document} – Peter Grill Mar 5 '12 at 15:57

1 Answer 1

You could load the pict2e package. It extends the existing LaTeX picture environment using driver files and solves the issue with limited slope values for lines and vectors.

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.