Drawing possible in LaTeX?

In summary, the conversation discusses the possibility of using LaTeX for drawing, with one person recommending against it due to the difficulty of keeping track of coordinates. Other vector graphic software, such as Xfig or Inkscape, are suggested as alternatives. The Tikz package is also mentioned as a potential option.
  • #1
2,810
604
Since LaTeX is very powerful, I'm curious whether its possible to do things like the below samples in it. Is it?
Samp1.jpg
Samp2.jpg


Thanks
 
Physics news on Phys.org
  • #2
LaTeX has some basic drawing instrucion set, see for instance http://en.wikibooks.org/wiki/LaTeX/Picture , but I wouldn't recommended it. One has to keep track of all coordinates (points, line, arrows).
Usually I use some vector graphic software which allows LaTeX expressions in its text box because you have a better and much easier control of the picture, I recommend Xfig or Inkscape. I don't know whether CorelDraw has some LaTeX plugin.
 
  • Like
Likes ShayanJ
  • #3
The Tikz package could do this.
 
  • Like
Likes ShayanJ

1. How do I draw diagrams in LaTeX?

To draw diagrams in LaTeX, you can use the TikZ package. It provides a powerful and flexible way to create graphics directly within your LaTeX document.

2. What is the syntax for drawing in TikZ?

The basic syntax for drawing in TikZ is to specify the coordinates of each point in the diagram and then define the type of shape or line you want to draw between those points. You can also add labels, colors, and other customizations to your diagrams.

3. Can I import images into my TikZ diagrams?

Yes, you can import images into your TikZ diagrams using the \includegraphics command. This allows you to incorporate pre-made graphics or photos into your diagrams.

4. Are there any other packages besides TikZ for drawing in LaTeX?

Yes, there are other packages such as PSTricks, Asymptote, and PGFPlots that can also be used for drawing in LaTeX. Each package has its own strengths and features, so it's worth exploring and finding the one that best fits your needs.

5. Can I create animations or interactive diagrams in LaTeX?

Yes, you can create animations and interactive diagrams using the animate package in LaTeX. This allows you to add movement and interactivity to your diagrams, making them more engaging for your audience.

Suggested for: Drawing possible in LaTeX?

Replies
1
Views
761
Replies
1
Views
1K
Replies
3
Views
667
Replies
10
Views
877
Replies
1
Views
1K
Replies
4
Views
815
Replies
3
Views
689
Replies
2
Views
844
Replies
8
Views
1K
Back
Top