LaTeX: Difference between revisions
From charlesreid1
No edit summary |
|||
| Line 13: | Line 13: | ||
\maketitle | \maketitle | ||
The function $\boldsymbol{u}(\boldsymbol{x},t)$ will thus be the primary dependent variable in our analysis, | The function $\boldsymbol{u}(\boldsymbol{x},t)$ will thus be the primary | ||
and other flow quantities such as pressure will likewise be regarded as being functions of $\boldsymbol{x}$ and $t$. | 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}. | 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 | A line in the fluid whose tangent is everywhere parallel to $\boldsymbol{u}$ instantaneously | ||
\emph{streamline}; the family of streamlines at time $t$ are solutions of | is a line of flow, or a \emph{streamline}; the family of streamlines at time $t$ are solutions of | ||
\begin{equation} | \begin{equation} | ||
| Line 25: | Line 26: | ||
\end{equation} | \end{equation} | ||
where $u,v,w$ are the components of $\boldsymbol{u}$ parallel to rectilinear axes and $x,y,z$ are the components of | where $u,v,w$ are the components of $\boldsymbol{u}$ parallel to rectilinear | ||
$\boldsymbol{x}$. When the flow is steady, the streamlines have the same form at all times. A related concept is a | axes and $x,y,z$ are the components of $\boldsymbol{x}$. When the flow is steady, | ||
\emph{stream-tube}, which is the surface formed instantaneously by all the streamlines that pass through a given closed | 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. | curve in the fluid. | ||
\end{document} | \end{document} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|[[Image:Batchelor.jpg|Output of given LaTeX example.]] | |[[Image:Batchelor.jpg|400px|Output of given LaTeX example.]] | ||
|} | |} | ||
Revision as of 05:24, 24 November 2010
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.)
http://www.texample.net/tikz/examples/rooty-helix/
\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.