Adapted by Garret Christensen from materials by Lawrence Lewis, Katy Huff, and Rachel Slaybaugh.
There's a document, two presentations ('presentation'--an intro presentation and 'bodies'--some details on floats) and a poster (very alpha), which is meant to show the basics of LaTeX.
LaTeX is a markup language for typesetting. It's not a WYSIWYG like most word processors (i.e MS Word). To some extent, you worry about the content and let the engine handle the layout. Really: it's like programming--if you put in the effort to get up the learning curve, you save time in the end by automating your document creation.
I use it because:
- LaTeX handles citations for you.
- LaTeX handles numbering, labels/references, table of contents, etc. for you.
- LaTeX does beautiful math.
- LaTeX is beautiful all around.
- LaTeX doesn't bog down with long docs like MS Word.
I still find it frustrating because:
- It's got a learning curve.
- Error messages feel cryptic. (But less cryptic than Word just doing something inexplicable. https://twitter.com/gossipgriII/status/713425874167537664)
- I haven't mastered collaborative editing yet, but solutions exist.
For some reason, LaTeX takes up over a gigabyte, so installing may take a few minutes.
Everything in linux is simple.
sudo apt-get install texlive
Then you probably want a front end like TeXWorks, which is available in the Software Center for Ubuntu users, or here more generally. I think the Mac and Windows distributions come with this already.
You should use MacTeX. You can do this with macports or homebrew by downloading the whole shabang from the website.
Install MikTeX.
http://tobi.oetiker.ch/lshort/lshort.pdf
LyX is a WYSIWYG editor for LaTeX. I used to use it until I needed to format my dissertation, and then I switched to straight LaTeX. It has change tracking, however, which in my experience is crucial for collaborative paper writing.
TeXShop (Mac only) and TeXWorks are simple front-ends for LaTeX that let you write the markup and see the rendering side by side.
Some folks will find the text editor option the most extensible and glorious. More power to them, but I am not one of those folks. (You'd just type pdflatex filename.tex in the command line to compile.)
Check it out, the last letter is the Greek letter
- Make a basic doc
- documentclass (article, beamer, exam, letter, book, others)
- preamble
- include packages
- sections, subsections
- labels, refs
- itemize, enumerate
- math, equations
- include, includegraphics, input
- bibliography
- floats 1. table 2. figure
LaTeX documents have numerous parts.
In the preamble, there is a basic set of information that must be included in order to define the document. The real minimum set is just the "documentclass" parameter. Options include "article," "book," and "letter." Options concerning the paper format and the font can be specified in the square brackets while the documentclass type should be listed in the
\documentclass[11pt]{article}
inclusion of any packages that you rely on. Standard packages include "amsmath," "amsfonts," "amssymb," and graphicx.
\usepackage{amsmath}
\usepackage{amssymb}
If you are expecting a title to appear, parameters such as author and title should be filled in.
You must begin and end the document.
\documentclass[11pt]{article}
\begin{document}
<stuff>
\end{document}
Now, that's it. To create a beautiful pdf, you can place this text in a file called doc.tex, and type "pdflatex doc.tex". You can also use the "latex" command to make DVI output, but I don't know what that is or why you'd want to.
There are elements that help to define the title elements.
\documentclass[11pt]{article}
\author{The Hacker Within}
\title{Our New Document}
\begin{document}
<stuff>
\end{document}
Those variables are used by the maketitle command, which must be executed within the document boundaries.
\documentclass[11pt]{article}
\author{The Hacker Within}
\title{Our New Document}
\begin{document}
\maketitle
\end{document}
These are environments that define the hierarchy of your document.
Rather than keep everything in one big file, you can include and input other latex files into a master. That acknowledgements section that you use in every paper? Keep it in its own file.