From charlesreid1

LaTeX Overview

LaTeX is a document typesetting system used primarily for scientific and mathematical documents. Latex consists of Tex source code, which is typeset and output into one of a number of different formats (PDF, DV, PS, etc.)

\documentclass[12pt]{article}
\usepackage{amsmath}
\title{\LaTeX Example}
\date{}
\begin{document}

\maketitle

The function $\boldsymbol{u}(\boldsymbol{x},t)$ will thus be the primary 
dependent variable in our analysis, and other flow quantities such as 
pressure will likewise be regarded as being functions of $\boldsymbol{x}$ and $t$.

When $\boldsymbol{u}$ is independent of $t$, the flow is said to be \emph{steady}.

A line in the fluid whose tangent is everywhere parallel to $\boldsymbol{u}$ instantaneously 
is a line of flow, or a \emph{streamline}; the family of streamlines at time $t$ are solutions of

\begin{equation}
\frac{dx}{ u(\boldsymbol{x},t) } = \frac{ dy }{ v(\boldsymbol{x}, t) } = \frac{ dz }{ w(\boldsymbol{x}, t) },
\end{equation}

where $u,v,w$ are the components of $\boldsymbol{u}$ parallel to rectilinear 
axes and $x,y,z$ are the components of $\boldsymbol{x}$. When the flow is steady, 
the streamlines have the same form at all times. A related concept is a \emph{stream-tube}, 
which is the surface formed instantaneously by all the streamlines that pass through a given closed 
curve in the fluid.

\end{document}
Output of given LaTeX example.

http://www.texample.net/tikz/examples/rooty-helix/

http://www.texample.net/


\documentclass[english]{article}
\begin{document}
This is a basic latex document.
\end{document}


\documentclass[english]{article}
\begin{document}
You can use this to write a document.

You can also use this to explain stuff.

Maybe I want to include a formula: $ax^2 + bx + c = 0$

A more complicated formula: $\frac{1}{2} bh = \int_{-\infty}^{\infty} \sin (\theta x + z^2) d\theta$

Less squished: $\displaystyle{ \frac{1}{2} bh = \int_{-\infty}^{\infty} \sin (\theta x + z^2) d\theta }$

Integral: $\int{x^2 dx}$

Derivative: $\frac{dx}{dt} = 0$

\end{document}


\documentclass[english]{article}

\usepackage{amsmath}

\begin{document}

\title{This is where my title would go}
\author{Jiyoung Ahn, Charles Reid}

\maketitle

\section{Section Name}

You can use this to write a document.

You can also use this to explain stuff.

LaTeX is usually pronounced in English.

The name is traditionally printed with a special typographical logo.

\subsection{Subsection Name}

Maybe I want to include a formula: $ax^2 + bx + c = 0$

A more complicated formula: $\frac{1}{2} bh = \int_{-\infty}^{\infty} \sin (\theta x + z^2) d\theta$

\subsubsection{Subsubsection Name}

Less squished: $\displaystyle{ \frac{1}{2} bh = \int_{-\infty}^{\infty} \sin (\theta x + z^2) d\theta }$

Integral: $\int{x^2 dx}$

Derivative: $\frac{dx}{dt} = 0$

\section{Equations}

\subsection{Inline Equations}

An inline equation looks like: $\int{x^2 dx}$

Display equations, numbered equations:

\begin{equation}
\label{area formula}
\frac{1}{2} bh = \int_{-\infty}^{\infty} \sin (\theta x + z^2) d\theta
\end{equation}

\section*{Unnumbered section}

This section won't have a number

\section{New one}

asdofiuaopifuapoeiruewo;irueqwo;riuqpweoiruqw

\section{Numbered section}\label{numbered section}

This section WILL have a number.  I will now refer to equation \eqref{area formula} in section \ref{numbered section}.

\end{document}


Examples

I have several examples of (simple) LaTeX documents and reports at the documents page.


Software

There are a large number of programs and pieces of software for interfacing with LaTeX. The simplest is to use LaTeX through a text editor, such as Vim or Emacs, or a LaTeX text editor such as TexMaker or TexShop. Alternatively, one may use a full WYSIWYM (What You See Is What You Mean) editor like LyX.

Personally, I recommend TexMaker for creating LaTeX documents by hand, and LyX for putting together LaTeX documents with lots of equations, or in a short time.

Tricks and Tips

Stump.gif This article is a stub.

A team of expertly-trained librarian ninjas has been dispatched to research this topic, finish this article, and assassinate all eyewitnesses who contradict their account.

They should be done pretty soon.

Template:Stub

Category:Stubs