Latex Tutorial 2014: Difference between revisions

From Advanced Labs Wiki
Jump to navigation Jump to search
(Created page with 'The LaTeX example begins below with the "\documentclass" directive. You'll also need the figure \documentclass[11pt]{article} \usepackage{amsmath,graphicx,setspace,float} \ne…')
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The LaTeX example begins below with the "\documentclass" directive. You'll also need the figure
The LaTeX example begins below with the "\documentclass" directive. You'll also need a figure arbitrarily called "chickenchicken.png" below. You can use this one: [[media:Chickenchicken.png]]
 


<pre>
\documentclass[11pt]{article}
\documentclass[11pt]{article}


Line 74: Line 74:


\end{document}
\end{document}
</pre>

Latest revision as of 20:19, 8 February 2014

The LaTeX example begins below with the "\documentclass" directive. You'll also need a figure arbitrarily called "chickenchicken.png" below. You can use this one: media:Chickenchicken.png

\documentclass[11pt]{article}

\usepackage{amsmath,graphicx,setspace,float}

\newcommand{\pd}[3]{\frac{\partial^{#3} {#1}}{\partial{#2}^{#3}}}
\newcommand{\kb}{k_{b}}

\begin{document}

\title{Brownian Motion}
\author{Ian Anderson}
\maketitle

\abstract{This is an abstract.}

\section{Introduction}
\subsection{Einstein}

This guy did a lot of physics. \cite{einstein} \textbf{THIS IS BOLD}. \textit{this is italic} \textbf{\textit{This is both.}}

``This is quote."
	`This is another quote.'


\begin{equation} \label{eqn:stokes}
\iiint_{M} d\omega = \int_{\partial M} \omega
\end{equation}


\begin{eqnarray} \label{eqn:first}
x=&2+2 \\
=&4
\end{eqnarray}

$\omega$ $\Omega$ $\kb$ $\pd{y}{x}{3}$

If we look at Eqn \ref{eqn:first}

\section{Experiment}

\begin{figure}[H]
\begin{center}
\includegraphics[width=8.0 cm]{chickenchicken.png}
\caption{Chicken chicken chicken.}
\label{fig:chicken}
\end{center}
\end{figure}

In Fig \ref{fig:chicken}

\begin{table}[htdp]
\caption{NAME OF CAPTION}
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
5 & 4 & 7 \\ 
\hline
\end{tabular}
\end{center}
\label{tbl:data}
\end{table}%



\begin{thebibliography}{1}

\bibitem{einstein} Einstein. \textit{german german } 1905.
\bibitem{einstein} Einstein. \textit{german german } 1906.

\end{thebibliography}

\end{document}