Per Erik Strandberg /cv /kurser /blog

I made a LaTeX template including a table, a figure, hyperlinks that is still short and sweet.

http://www.pererikstrandberg.se/blog/templates/latex.png

The contents of the template is

\documentclass[10pt,a4paper]{article}
\usepackage{times}
\usepackage[english]{babel}
%\usepackage[swedish]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[pdftex]{color,graphicx,hyperref}
\usepackage{color}

\hypersetup{colorlinks=true}

\title{My \LaTeX\ template}
\author{Per Strandberg}

\begin{document}

\maketitle

\section*{Abstract}
This is a nice and short template for \LaTeX.
See table \ref{foobarbaz}, figure \ref{fig1} and on the web:
\href{[1]}{my blog}.

\tableofcontents

\section{Foo Bar and Baz}

Lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy.
Eirmod tempor invidunt ut labore et dolore magna.
Aliquyam erat sed diam voluptua at vero eos et accusam et justo duo dolores.

\begin{table}[!h]
\begin{center}
\begin{tabular}{|l|rrr|}
\hline
OS         & foo & bar & baz\\
\hline
Windows    & 99  & 99  & 99 \\
Mac OS X   & 88  & 67  & 98 \\
*nix       &  3  &  7  & 42 \\
\hline
\end{tabular}
\caption{foo, bar and baz values for different OS's.\label{foobarbaz} } 
\end{center}
\end{table}



\begin{figure}[!h]
\begin{center}
\includegraphics[width=5cm]{fig1.png}
\caption{Together with the xyzzy values the foo, bar and baz values clearly define the
magic triangle.\label{fig1} }
\end{center}
\end{figure}

\end{document}


Get raw data here: [2] and compiled pdf-version here: [3].


Tillhör Kategori Mallar.