Added my lab report from school
This commit is contained in:
parent
1954926359
commit
768e533676
9
labreport/Makefile
Normal file
9
labreport/Makefile
Normal file
@ -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
|
10
labreport/README.md
Normal file
10
labreport/README.md
Normal file
@ -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.
|
||||
|
13
labreport/content.tex
Normal file
13
labreport/content.tex
Normal file
@ -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.
|
BIN
labreport/example_image.png
Normal file
BIN
labreport/example_image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
71
labreport/lab.tex
Normal file
71
labreport/lab.tex
Normal file
@ -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 <jack-benny@cyberinfo.se>
|
||||
|
||||
\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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user