LaTeX Example

From Advanced Labs Wiki
Jump to navigation Jump to search
\documentclass[12pt]{article}

\setlength{\topmargin}{-.5in} % top margin is .5 in
\setlength{\oddsidemargin}{0in} % left margin is 1 in on right pages
\setlength{\evensidemargin}{0in} % same for left pages, 2-sided document
\setlength{\textwidth}{6.5in} % leaves 1 in for right margin
\setlength{\textheight}{9in} % 9 inches reserved for the text

%\usepackage{showframe}

\usepackage{graphicx} %The graphicx is the standard package for figures

\begin{document}

\title{LaTeX Example}
\author{T.A. Marriage}
\maketitle

\abstract{In the abstract you summarize what you did and what you measured as a quantitative result with error, e.g., $G = (6.64 \pm 0.03) \times 10^{-11}$~Nm$^2$kg$^{-2}$.}

\section{Introduction}

In the introduction you will give the basic idea of the experiment briefly. You will have historic information including citations \cite{newton}. You'll also say briefly how your measurement fits into this picture.

\section{Theory}
\label{sec:theory}

\begin{equation}
F = G \frac{m_1 m_2 }{r^2}
 \label{eqn:newton}
 \end{equation}

\section{Experiment Apparatus}
\label{sec:experiment}

\begin{figure}[h]
\begin{center}
\includegraphics[width=1.5in]{fig.png}
\caption{Apparatus. Figure captions should help understand the figure and provide essential information. Put an image ``fig.png" in the same directory to get this to compile.}
\label{fig:apparatus}
\end{center}
\end{figure}

\section{Data}
\label{sec:experiment}

Here you describe the data that you took and 

\begin{table}[t]
\begin{center}
{\footnotesize
\begin{tabular}{|c|c|c|}
\hline
x (m) & t (s) & F (N) \\ 
\hline\hline
 1 & 2 & 3 \\
 4 & 5 & 6 \\
\hline
\end{tabular}
}
\caption{Data. Tables have captions too. Make sure to give units for all quantities.}
\label{tab:data}
\end{center}
\end{table}


\section{Results}
\label{sec:results}
 
This section is to describe your modeling of the data. It will describe how you go from your data in Section \ref{sec:experiment} to a quantitative result for some physical parameter(s) along with error estimates.

\section{Conclusion}

This section is for overall discussion and a summary of the previous sections.

\begin{thebibliography}{1}

\bibitem{newton} I. Newton, {\it How Gravity Works}, Philos. Trans. Roy. Soc., 1, 4-6 (1688).

\end{thebibliography}

\end{document}