Skip to content

Instantly share code, notes, and snippets.

@fawda123
Created May 31, 2013 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fawda123/5685212 to your computer and use it in GitHub Desktop.
Save fawda123/5685212 to your computer and use it in GitHub Desktop.
latex example
\documentclass[a4paper,12pt]{article} %document class declaration (article, report, book, etc) has to go first
\usepackage{times} %package imports times new roman font
\usepackage[margin=1in]{geometry} %change margins to 1in
\begin{document}
\renewcommand{\rmdefault}{ptm}
\setlength{\parindent}{0mm} %set indentation at start of new paragraphs
\setlength{\parskip}{0mm} %set white space between paragraphs
\textbf{\LaTeX\ testing}
\emph{Introduction}
\setlength{\parskip}{5mm}
This is my first \LaTeX\ document. \LaTeX\ can be written in a text editor. A good base system for using \LaTeX\ is MiKTeX.
\textit{This is an example of italics.} Learning \LaTeX\ should be a good use of my time and an excellent way of procrastinating. Here's some more stuff.
A formula...
$y_k = f_k \left(\sum\limits_{j=1}^k w_{jk}f_j \left( \sum\limits_{i=1}^j w_{ij}x_i\right) \right) $
An equation...
\begin{equation}
z_n = \frac{x_n-\bar{x}}{\sigma_x}
\end{equation}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment