You are on page 1of 17

Admin

What goes in a LATEX document?

Week 2: Simple Tyesetting with LATEX


Math 198 LATEX for Math/Science
Fall 2006

Thomson Nguyen
thomson@berkeley.edu

September 18-22, 2006

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
What goes in a LATEX document?

Admin
Enrollment Issues

What goes in a LATEX document?


The Preamble

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
Enrollment Issues
What goes in a LATEX document?

Outline

Admin
Enrollment Issues

What goes in a LATEX document?


The Preamble

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
Enrollment Issues
What goes in a LATEX document?

Outline

Admin
Enrollment Issues

What goes in a LATEX document?


The Preamble

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
Enrollment Issues
What goes in a LATEX document?

Administrative Stuff

I You should have registered for this class by now or are on the
waitlist!

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
Enrollment Issues
What goes in a LATEX document?

Administrative Stuff

I You should have registered for this class by now or are on the
waitlist!
I If you are neither, be sure to put yourself on the waitlist/enroll!

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
Enrollment Issues
What goes in a LATEX document?

Administrative Stuff

I You should have registered for this class by now or are on the
waitlist!
I If you are neither, be sure to put yourself on the waitlist/enroll!
I If you didn’t turn in your homework from Week 1, too late!

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
Enrollment Issues
What goes in a LATEX document?

Administrative Stuff

I You should have registered for this class by now or are on the
waitlist!
I If you are neither, be sure to put yourself on the waitlist/enroll!
I If you didn’t turn in your homework from Week 1, too late!
I Make sure your DeCal accounts work at
http://musa.berkeley.edu/decals/latex/grades
I User/Pass will be of the form decalXX/PASSWORD
I If you can’t log in by 2nd week, email
latexenroll@lists.berkeley.edu or reach us otherwise

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

Outline

Admin
Enrollment Issues

What goes in a LATEX document?


The Preamble

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

Overview

\documentclass{article}
\usepackage{color} Every LATEX document consists
\usepackage{amsmath} of the following sections:
\parindent=0in I A preamble, which
\author{A. Student} includes parameters,
\date{Febtober 15, 2022} packages, and specifies
\title{A Proof of the Riemann what kind of a document
Hypothesis} it is
\begin{document} I The document itself,
\maketitle which contains the
Hello World! document code
\end{document}

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

Outline

Admin
Enrollment Issues

What goes in a LATEX document?


The Preamble

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

The Preamble

\documentclass{article}
\usepackage{color} The Preamble
\usepackage{amsmath} I Always begins with the command
\parindent=0in \documentclass.
\author{A. Student}
I Includes packages (optional
\date{Febtober 15, 2022}
add-ons), noted by the
\title{A Proof of the Riemann
\usepackage command.
Hypothesis}
\begin{document} I Also includes other modifiers and
\maketitle parameters that will be discussed
Hello World! later (margins, macros, etc.)
\end{document}

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

Structure of LATEX Commands

Before we continue, you may have noticed (or not)...


I LATEX commands take on one of two forms (well, at least most
of them)
I Commands of the form \command[parameter]{command}.
These commands are called inline commands.
I Examples:
I \usepackage{package}.
I \documentclass[a4]{document class}.
I Commands of the form \begin{environment} and
\end{environment}. These commands are called
environment commands.
I Examples:
I \begin{document} and \end{document}
I \begin{center} and \end{center}

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

The Document

\documentclass{article}
\usepackage{color}
\usepackage{amsmath}
\parindent=0in The Document has the following
\author{A. Student} things:
\date{Febtober 15, 2022}
I An optional \maketitle that will
\title{A Proof of the Riemann
render the title.
Hypothesis}
\begin{document} I The document content!
\maketitle
Hello World!
\end{document}

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

Typesetting Examples!

Navigate away!

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

Homework

I Make a sample LATEXdocument that has a couple of


paragraphs of filler text. Details on that are on the homework
pdf on the site.
I Make sure your account works!

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma
Admin
The Preamble
What goes in a LATEX document?

Bye!

See you next week!

Thomson Nguyen thomson@berkeley.edu Week 2: Simple Tyesetting with LATEX Math 198 LATEX for Ma

You might also like