# latex

recent posts related to LaTeX

## LaTeX font example - controlling font colors in Latex documents

A common LaTeX question is "How do I use font colors in LaTeX?"

Defining and using font colors in LaTeX documents turns out to be pretty easy, and it's a great LaTeX feature. Although my choice of colors leaves something to be desired :) this example requirements specification was written with LaTeX, and converted to HTML using the latex2html conversion program.

## LaTeX PDF document size/length example

In the example below I'm showing how you can change a bunch of LaTeX document length parameters. The values don't really make any sense -- I've just thrown some numbers in there. I just want to remember how to do this for the next time I need to create a LaTeX PDF document.

(For what I'm trying to achieve today my goal was to get rid of all the margins on the left side of the page. Then I decided to throw in a few other values.)

I found some of these LaTeX examples on pp. 84-89 of The LaTeX Companion.

## LaTeX strikeout font example - How to use a strikeout/strikethrough font

A LaTeX strikeout font example: It was hard to find out how to use a strikethrough font using LaTeX, and I don't want to lose it, so here's a simple example.

```%
% include the "ulem" package in the header
%
\usepackage{ulem}

%
% use the "sout" tag to "strike through" text
%
\sout{Bill Clinton} G.W. Bush is the pres.
```

Run through the `latex2html` converter, this produces output text like this:

## LaTeX FAQ Site

Here's a URL to a decent LaTeX FAQ site.

## LaTeX example document - description lists and tables

Here's a sample LaTeX document where I'm experimenting with `newenvironment`, a definition list, and tables (the tabular environment. I don't have the output with me at the moment, but I think all of these worked correctly when using pdflatex (LaTeX PDF) and latex2html (LaTeX HTML).

## LaTeX example document using htmlonly, latexonly, and image

Here is some LaTeX example code, where I'm experimenting with image inclusion, as well as tags like `htmlonly`, `latexonly`, and the `alltt` environment.

This LaTeX example/test file was created for tests with the pdflatex (LaTeX PDF) and latex2html (LaTeX HTML) utilities. This is definitely not for newbies.