Documents >> LaTeX >> Latex article preamble

Latex Guides:

SubVersion SVN  

LaTex Report Preamble

LaTeX Article Preamble

Latex Tips and Tricks

 

Links:

Miktex

TeXnicCenter 

LaTex Guide (Manual)

 

My Latex Article Preamble

This is the preamble I used in some of my Computer Science projects. A better description of the different packages will be made, when i get time, but for now you can just copy the preamble and try using it.

Report file including the preamble

\input{preamble}

\title{Continuous Queries on Current and Predicted Locations of Moving Objects}

\author{Group d405a\\
        Computer Science Department\\
        Aalborg University\\
        Simon Nicholas M.Tinggaard\\
        \{nicholas\}@cs.aau.dk }
\date{\today}


\begin{document}
%\maketitle

\input{pathToLaTeXFile}

\clearpage
\bibliography{sourcesFile}

\end{document}

The Preamble

\documentclass[a4paper,twocolumn, 11pt]{article}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}

%algorithm-layout
%\usepackage[boxed]{algorithm2e}

%math packages
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{amsthm}
\usepackage{bbm}
\usepackage{nicefrac}

%algorithms
\usepackage{algorithm2e}

%we love urls
\usepackage{url}

%graphics packages
\usepackage[pdftex]{graphicx}
\usepackage{subfigure}
\usepackage{graphics}
\usepackage{color}

%rotation of floats
\usepackage{rotating}

%Bibliographs
\bibliographystyle{acm}

%misc
\usepackage[pdftex,colorlinks,linkcolor=black,urlcolor=black,citecolor=black,pagecolor=black]{hyperref} % Make all links black...

%code listings
\usepackage{listings}   % Source Code Listings with highlight
\lstset{language=SQL,tabsize=2,frame=single}
\lstset{tabsize=2}
\lstset{breaklines = true}
\renewcommand\lstlistingname{Code example}% default is Listing

%A customised code listing
\newenvironment{code-example}{
  \lstset{
    tabsize=2,
    tab=$\to$,
    float=tbph,
    numbers=left,
    frame=tlrb,
    frameround=none,
    framexleftmargin=0.7cm,
    xleftmargin=0.7cm,
    numberstyle=\tiny,
    stepnumber=1,
    numbersep=5pt,
    numberblanklines=false,
    extendedchars={true},
    breaklines,
    breakindent=20pt,
    showtabs=false,
    showspaces=false,
    showstringspaces=false,
    basicstyle=\tiny,
    keywordstyle=\bfseries,
    identifierstyle=\ttfamily,
    stringstyle=\ttfamily\textit,
    captionpos=b,
    backgroundcolor=\color{white},
    aboveskip=\bigskipamount,
    }
}{}
 

^ Top | Copyright © 2007 Afterschool.dk| css | xhtml