2

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.

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

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

I'm using MiKTeX 2.9 with TeXnicCenter.

3
  • 7
    As I said to your crosspost on LaTeX-Communtity.org, the code snippet is working and shows lines. Perhaps provide a complete example which show the undesired behavior.
    – Stefan Kottwitz
    Mar 4, 2012 at 22:34
  • Hi Mark, Welcome to TeX.sx! 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, 2012 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} Mar 5, 2012 at 15:57

1 Answer 1

3

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .