The Basics of TeX (and LaTeX)

The backslash "\", is used to begin all TeX commands. (often called control sequences). There are two kinds of control sequences:

TeX commands are case-sensitive. Most are all lowercase, although a few commands do use the first letter in uppercase, such as \Delta (for an uppercase delta). Even fewer commands use all uppercase.

TeX uses grouping to limit the effect of certain commands. Braces ({ and }) are used to begin and end groups. For example, {}bf these words will be boldface\ limits the boldface text to the words that appear within the braces.

TeX recognizes the following units in its commands that require measurements:

 
   cm   centimeter    pt    printer's point, approx 72 per inch
   mm   millimeter    em    font dependent width of "m"
   in   inch          ex    font dependent height of "x"

When TeX builds a page, it considers all of the parts (words, lines, paragraphs, etc.) to be different sized boxes. TeX starts with a simple box, an individual letter, and then builds words, which are considered to be hboxes (horizontal boxes). The words are then put together with "glue" to form a line, which results in a larger hbox. A group of these hboxes -- stacked together vertically with more "glue" between them -- form a vbox (vertical box). A page is a large vbox made up of several smaller ones.

You do not normally need to be concerned with this, but sometimes (such as when an error message refers to an "overfull hbox") it is helpful to know how TeX works.


Return to ACS home page.


Please send comments and suggestions to

consult@rpi.edu