How can I draw vectors on a computer using LaTeX for a math assignment?

In summary, LaTeX is a program that can be used to draw vectors, while Powerpoint can be used to draw simple graphics. There are a number of drawing systems for LaTeX, but Asymptote and Metapost seem like reasonable alternatives.
  • #1
Tricore
21
0
I need to draw a couple of vectors for a math assignment. Any recommendations as to what program to use for this? Can LaTeX do it?

Thanks in advance :smile:
 
Computer science news on Phys.org
  • #2
The draeing toolbar in Powerpoint isn't too bad, you can draw the vector, right-click on it to look at the prpoerties then scale & rotate as you need to do to finish the assignment. Latex will work, but you will have to get thru the learning curve.
 
  • #3
Okay thanks, I'm doing my assignment in LaTeX anyhow so I'd prefer using that to draw too, but I can't find anything on drawing coordinate systems / vectors in LaTeX, got any links?
 
  • #4
There are a number of drawing systems for LaTeX, all of which can do what you ask. My personal favorite is http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html, but Asymptote and Metapost seem like reasonable alternatives. pgf/Tikz can be used inline in a LaTeX document. Its default length unit is centimeters, the origin is in the lower left corner, and the drawing area expands automatically to fit its contents.
 
  • #5
I just had a look a Tigz, and I must say it looks awesome! Simply fantastic, thanks a bunch guys!
 
  • #6
For simple graphics...

Look at my example in #6 [click on the picture] and my last post to see how I did it
https://www.physicsforums.com/showthread.php?t=113915

You probably want to use the \vector command
see: http://cs5.ecok.edu/ByExample/node49.html
http://www.ursoswald.ch/LaTeXGraphics/picture/picture.html

Note the limitations on the available slopes.
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-43.html For more freedom, you can use \qbezier
https://www.physicsforums.com/showpost.php?p=1278147&postcount=17
https://www.physicsforums.com/showpost.php?p=969925&postcount=695
but you might have to draw the arrowheads yourself.The above are all constrained by the LaTeX features available at PF.
Alternatively, you can try to include other packages
like http://tug.org/PSTricks/ .
 
Last edited by a moderator:

FAQ: How can I draw vectors on a computer using LaTeX for a math assignment?

What is the purpose of drawing vectors on a computer?

Drawing vectors on a computer allows for precise and scalable images to be created. This is especially useful in graphic design, engineering, and scientific illustrations.

What software is commonly used for drawing vectors on a computer?

Some popular software for drawing vectors on a computer include Adobe Illustrator, CorelDRAW, and Inkscape. These programs offer various tools and features for creating and editing vector graphics.

Can I use a computer mouse to draw vectors?

Yes, you can use a computer mouse to draw vectors on a computer. However, many artists and designers prefer using a graphics tablet and stylus for more precise control and a natural drawing experience.

Are there any limitations to drawing vectors on a computer?

While drawing vectors on a computer offers many advantages, there are some limitations. For example, it may not be suitable for creating highly detailed and realistic images, as it is better suited for creating simple and clean graphics.

How do I learn how to draw vectors on a computer?

There are many online tutorials and courses available for learning how to draw vectors on a computer. You can also practice and experiment with different tools and techniques to improve your skills.

Back
Top