next up previous contents
Next: LaTeX Document Structure Up: LaTeX, it's not just Previous: Introduction   Contents

LaTeX Preliminaries - Commands, Comments, and Whitespace

Before we begin composing a document, it's helpful to know a bit about how LaTeX handles some common document elements. Like most programming languages, LaTeX commands are case sensitive. A LaTeX command is formatted as follows:

\command-name[optional-parameters]{parameter}

A LaTeX command begins with a backslash followed by the command name. Commands can have parameters, which are enclosed by curly braces () as well as optional parameters, which are surrounded by square brackets ([]).

Any line beginning with the % character is a comment. When LaTeX reads the % character in a file, it treats the rest of that line as a comment. In addition to the comment character, you can use the comment command.





Kevin O'Malley 2004-03-05