Search:

# LaTeX

This is a typesetting language that allows the user very tight control over the layout and design of any document. It is well suited to writing large documents rather than one or two page files, and so is the weapon of choice for most students when writing their thesis. There are many websites out there that explain the basics of setting up a latex document so there isn't mmuch point repeating that here. Instead this site will provide some ideas about how to make latex work for you.

## Including a macros file

One of the first things you will want to do once you have learnt the basics is start writing your own commands and shortcuts for latex. As an example I wanted to define a comment comment that would highlight the text within it to make it easier to identify sections of a document that still needed work.

So I created a macros.tex file and inputed this from the main file. This file contains a list of new commands that I find useful.

`\newcommand{\comment}[1]{\textcolor{red}{\textbf{[#1]}}}`

This creates a command called comment that takes one argument and displays the contents of that argument as red bold faced text. To call this one would type `\comment{The text of the comment}`.

# LatexVim

Page last modified on February 19, 2007, at 10:56 AM CET