typos, layout and other small things
diff --git a/Doc/libjpeg.tex b/Doc/libjpeg.tex
index b5c14a4..8215cad 100644
--- a/Doc/libjpeg.tex
+++ b/Doc/libjpeg.tex
@@ -14,7 +14,7 @@
 Treat data as a pixmap of width \var{w} and height \var{h}, with \var{b} bytes per
 pixel.  The data is in SGI GL order, so the first pixel is in the
 lower-left corner. This means that \code{lrectread} return data can
-immedeately be passed to compress.  Currently only 1 byte and 4 byte
+immediately be passed to compress.  Currently only 1 byte and 4 byte
 pixels are allowed, the former being treated as greyscale and the
 latter as RGB color.  Compress returns a string that contains the
 compressed picture, in JFIF format.