Latex main environments
Writing a document in Latex is a simple process. However, to achieve the best out of latex you must be aware of the main environments made available to document writer on the platform.
An environment is a part of the document that is introduced with the \begin keyword, followed by the name of the environment inside curly braces. The environment ends with the \end keyword. Between these two keywords the content is formatted according to the rules defined by the environment.
Here are some of the main environments:
- document: this is the environment that starts the document. Everything before this is considered as the document preamble.
- itemize: this environment introduce items, which are normally displayed as a bulleted list.
- enumerate: this environment creates lists of numbered items. Its use is very similar to the itemize envioronment.
- abstract: an environment that creates a summary (abstract) of a document.
- figure: creates a figure with an optional caption. The figure can be located on the top or bottom of the page.
- table: create a table floating structure. The contents of a table must be inside a tabular environment.
- tabular: this is the contents of the table. The tabular environment defines the number of columns and the list of rows. Rows are separated by double backslashes. Entries are separated using an ampersand (&) character.
Learning about environments in latex can help you create better documents, with a richer formatting structure.
Tags: latex, formatting, environments
Article created on 2015-02-27 21:52:33
Post a comment