Workin' It: Drawing Pictures
Why draw pictures? We can only type words and symbols for so long before we need a good diagram to explain things. This means one of two things:-
Insert a graphic (like jpg, png,
gif) created using another program, like
.
-
Draw within LaTeX using the "picture" environment, like
Inserting pictures can be useful, but graphics look bad when you change their size. This doesn't matter much for photos but for graphs (like the one shown above) it makes them unreadable.
How can I draw pictures? You can create simple charts and graphs "by hand" using the picture environment, but it's not at all user friendly -- it's practically programming. I've discovered an easier way to do it using a free Java program called jPicEdt. Download this small free safe (though I make no guarantee myself) program to your Desktop, then just double-click to install it. After installation, you can delete the file you downloaded.
Overview of drawing pictures using jPicEdt:
- Use jPicEdt to draw a nice picture.
- Save it as a file in the same directory as your LaTeX source file.
- Add \usepackage{pst-all} to header and \input{picturefilename} where you want the picture in your source.
- Compile with latex, then dvips, then ps2pdf to generate a PDf file.
Details of drawing pictures using jPicEdt:
-
Use jPicEdt to draw a nice picture.
This is pretty easy. You can't do everything you might want, but shading, shadows, dotted lines and curves are easy. -
Save it as a file in the same directory as your LaTeX source file.
For example, if my source file is foo.tex, I'll call my pictures for that document foo-pic1.jpc, foo-pic2.jpc, etc. -
Add \usepackage{pct-all} to header and \input{picturefilename} where you
want the picture in your source.
For example, to add foo-pic1.jpc centered horizontally, add the header line and the line\begin{center}\input{foo-pic1.jpc}\end{center} -
Compile with latex, then dvips, then ps2pdf to generate a PDf file.
- First, (add contents here)