diff --git a/labreport/Makefile b/labreport/Makefile new file mode 100644 index 0000000..3d18566 --- /dev/null +++ b/labreport/Makefile @@ -0,0 +1,9 @@ +lab: + cat lab.tex | sed 's/Lab report X/Lab report $(LAB)'/ > lab$(LAB).tex + pdflatex lab$(LAB).tex +clean: + rm *.aux + rm *.log + rm *.out + rm *.toc + rm *.pdf diff --git a/labreport/README.md b/labreport/README.md new file mode 100644 index 0000000..060f550 --- /dev/null +++ b/labreport/README.md @@ -0,0 +1,10 @@ +Lab report template +=================== + +This is the LaTeX-template i use when writing lab reports quickly and easy. +The lab reports I write for school are often numbered, hence the Makefile for +easy numbering. That when I only need to edit content.tex and not the lab.tex. +Once I written my report I simply run "make LAB=3" for lab report 3. The heading +then changes to "Lab report 3" and also the resulting PDF file will be named +lab3.pdf. + diff --git a/labreport/content.tex b/labreport/content.tex new file mode 100644 index 0000000..1e9ddc9 --- /dev/null +++ b/labreport/content.tex @@ -0,0 +1,13 @@ +\section{Purpose} + +\section{Method} +Sample clusters and sample text. + +\subsection{A sub section} +More samples\ldots and a small image. + +\includegraphics[scale=0.81]{example_image.png} + + +\section{Conclusion} +This was very fun indeed. diff --git a/labreport/example_image.png b/labreport/example_image.png new file mode 100644 index 0000000..ca629b1 Binary files /dev/null and b/labreport/example_image.png differ diff --git a/labreport/lab.tex b/labreport/lab.tex new file mode 100644 index 0000000..c4dea4c --- /dev/null +++ b/labreport/lab.tex @@ -0,0 +1,71 @@ +% My template for document with custom margins, a nice looking +% titlepage and header & footer. +% This is the template I use for my lab reports. +% Jack-Benny Persson + +\documentclass[11pt,a4paper]{article} +\usepackage{cmap} +\usepackage[a4paper]{geometry} +\geometry{verbose,tmargin=2.5cm,bmargin=3.5cm,lmargin=2.54cm,rmargin=2.54cm} +\usepackage{fancyhdr} +\usepackage[swedish]{babel} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[yyyymmdd]{datetime} +\renewcommand{\dateseparator}{-} + +\usepackage{graphicx} + +\usepackage{titlesec} +\setcounter{secnumdepth}{4} +\setcounter{tocdepth}{4} + +\titleformat{\paragraph} +{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} +\titlespacing*{\paragraph} +{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex} + +\usepackage{hyperref} +\hypersetup{ + colorlinks, + citecolor=black, + filecolor=black, + linkcolor=black, + urlcolor=black +} + +\setlength{\headheight}{53pt} +\pagestyle{fancy} + +\fancyhf{} +\lhead{Jack-Benny Persson\\LX13\\Building clusters\\\today} +\cfoot{Page \thepage} + + + +\begin{document} + +\begin{titlepage} +\begin{center} +\vspace*{3.5 cm} + +{ \huge \bfseries Lab report X}\\[0.4cm] +\textsc{\Large Jack-Benny Persson}\\[0.5cm] +\textsc{\Large LX13}\\[0.5cm] +\textsc{\Large Building clusters}\\[0.5cm] +\textsc{\Large \today}\\[0.5cm] + + +\end{center} +\end{titlepage} + +\pagebreak +\tableofcontents +\pagebreak + + +\input{content} + + +\end{document} +