TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to draw a vector with the vector command, but it seems like that the slope must be specified in integers less than some limit, thus commands like


will failed to compile, but this works:


so how can i specify arbitrary slope, is there a way to specify two endpoints rather than specifying the slope

share|improve this question
up vote 7 down vote accepted

This specific limitation is removed by the pict2e package (load the package and it should "just work"). However, for programmatic drawing in LaTeX these days I'd suggest looking into PGF/Tikz.

share|improve this answer

According to http://www.giss.nasa.gov/tools/latex/ltx-341.html, the \vector command takes only integers -5 < x, y < 5.

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.