Archive for the ‘LaTeX’ Category

HOWTO: Word-wrap in LaTeX tables

Monday, February 23rd, 2009

Mann says: use the p{} command

Also has word wrap for images.

LaTeX and \flushleft

Wednesday, March 5th, 2008

I’m assembling a big report for MSHA in LaTeX and using the book document class, which normally justifies just splendidly. So when it stopped justifying paragraphs correctly and was giving ragged right edges, that was a problem.

Long story short: I copied some different environments (description, etc) from the web and brought in a \flushleft, which I thought would just apply to that element. Wrong. It changed the setting from then on. Removed all the \flushlefts, and it sets the paragraphs correctly.

And hurray for science and methodical debugging…..”Well the first section is right, and the beginning of section two, and then it goes to shit after this list here. Hey, what’s this \flushleft doing here?”

HOWTO: 2-column images in LaTeX

Friday, February 15th, 2008

From Jason Rennie’s LaTeX Tips and Tricks:

2-Column Images
When in 2-column mode (using either \twocolumn or the multicols environment (package multicol)), use \begin{figure*} and \begin{table*} to create figures and tables that span the entire width of the page. \begin{figure} and \begin{table} span only one column.