Initial commit
This commit is contained in:
commit
1954926359
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# LaTeX templates
|
||||
|
||||
A collection of some basic LaTeX templates I use.
|
BIN
fancy-document/fancy_doc_template.pdf
Normal file
BIN
fancy-document/fancy_doc_template.pdf
Normal file
Binary file not shown.
98
fancy-document/fancy_doc_template.tex
Normal file
98
fancy-document/fancy_doc_template.tex
Normal file
@ -0,0 +1,98 @@
|
||||
% My template for document with custom margins, a nice looking titlepage
|
||||
% and header & footer.
|
||||
% Feel free to use it for your own documents.
|
||||
% Jack-Benny Persson
|
||||
|
||||
\documentclass[11pt,a4paper]{article}
|
||||
\usepackage[table]{xcolor}
|
||||
\usepackage[a4paper]{geometry}
|
||||
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.54cm,rmargin=2.54cm}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage{lastpage}
|
||||
|
||||
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
|
||||
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\chead{Wheather report}
|
||||
\cfoot{Page \thepage\ of \pageref{LastPage}}
|
||||
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{titlepage}
|
||||
\begin{center}
|
||||
\vspace*{3.5 cm}
|
||||
\textsc{\LARGE Wheather report}\\[1.5cm]
|
||||
|
||||
|
||||
\HRule \\[0.5cm]
|
||||
{ \huge \bfseries Week 18}\\[0.4cm]
|
||||
\HRule \\[1.5cm]
|
||||
|
||||
\textsc{\Large Draft 1}\\[0.5cm]
|
||||
\textsc{\Large 2012-05-05}\\[0.5cm]
|
||||
|
||||
\end{center}
|
||||
\end{titlepage}
|
||||
|
||||
\tableofcontents
|
||||
\pagebreak
|
||||
|
||||
\section{Introduction}
|
||||
|
||||
A sample \LaTeX\ document to demonstrate. Can be used as a template.
|
||||
|
||||
|
||||
\subsection{Nice wheater all week long}
|
||||
|
||||
All week we'll have really nice wheater with lots of sunshine and warm temperature for the month.
|
||||
Some thunder may occur in the afternoons.
|
||||
And that concludes the summary of the weather.
|
||||
|
||||
\subsubsection{Thunder may occur}
|
||||
|
||||
As we said earlier, some thunder may occur.
|
||||
|
||||
And in this new paragraph, well yada yada yada
|
||||
And som bla bla bla.
|
||||
|
||||
\subsection{Blah blah blah}
|
||||
|
||||
Yada yada yada.
|
||||
|
||||
\textit{Blah blah blah?}
|
||||
|
||||
|
||||
\section{Some mathematics}
|
||||
|
||||
We can also show of some math in \LaTeX\
|
||||
|
||||
\(2x+1=5\) is \(x=2\)
|
||||
|
||||
And some more, like this \(x+x=y\)
|
||||
|
||||
|
||||
\pagebreak
|
||||
|
||||
\section{Tables}
|
||||
Here I will show a simple table.
|
||||
|
||||
\begin{table}[h]
|
||||
\begin{center}
|
||||
\begin{tabular}{ | l | l | l | p{7cm} |}
|
||||
\hline
|
||||
\cellcolor[gray]{0.9}\textbf{Day} &
|
||||
\cellcolor[gray]{0.9}\textbf{Min Temp} &
|
||||
\cellcolor[gray]{0.9}\textbf{Max Temp} &
|
||||
\cellcolor[gray]{0.9}\textbf{Summary} \\ \hline
|
||||
Monday & 12C & 23C & Sunshine all day long. \\ \hline
|
||||
Tuesday & 15C & 20C & Some clouds, other than that nice weahter. \\ \hline
|
||||
Wednesday & 10C & 20C & Some rain and possibly thunder during the evening. \\ \hline
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\end{table}
|
||||
And thats the weather report for the week. Nice huh? In a table and everything with the top row in gray and all.
|
||||
\end{document}
|
||||
|
BIN
swedish-standard-document/swe_doc_template.pdf
Normal file
BIN
swedish-standard-document/swe_doc_template.pdf
Normal file
Binary file not shown.
43
swedish-standard-document/swe_doc_template.tex
Normal file
43
swedish-standard-document/swe_doc_template.tex
Normal file
@ -0,0 +1,43 @@
|
||||
% My template for s standard swedish document with custom set margins.
|
||||
% Feel free to use this template for your own documents.
|
||||
% The text in the template is a short version on the three little pigs
|
||||
% Jack-Benny Persson.
|
||||
|
||||
\documentclass[11pt,a4paper,swedish]{article}
|
||||
\usepackage[swedish]{babel}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[a4paper]{geometry}
|
||||
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}
|
||||
|
||||
\title{Min \LaTeX{} mall för ett vanlig dokument}
|
||||
\author{Jack-Benny Persson}
|
||||
\date{April, 2012}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
\pagebreak
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\pagebreak
|
||||
|
||||
\section{De tre små grisarna}
|
||||
|
||||
Det var en gång tre små grisar med fina knorrar som bodde i skogen tillsammans med sin mamma. En dag sa hon till dem:
|
||||
|
||||
\textit{''Nu har ni blivit stora nog att flytta hemifrån. Ge er nu ut och bygg var sitt hus åt er. Men det måste vara ett rejält hus, för den elaka vargen ligger på lur, och han tar er om han kan.''}
|
||||
|
||||
De tre små grisarna packade sina saker och gav sig iväg.
|
||||
Den första lilla grisen byggde sig ett hus av halm. Han brydde sig inte om att vara rädd för vagen. Den andra lille grisen byggde sig ett hus av trä, han var inte heller särskilt rädd för vargen. Den tredje lille grisen byggde ett hus av stenar och murbruk. Han lade på ett tak av tegel och satte i en dörr av tjockt trä. Hans hus blev verkligen stabilt. Han kände sig mycket nöjd med sig själv när han var klar.
|
||||
|
||||
\subsection{Vad hände sen?}
|
||||
|
||||
Vargen fick höra talas om att de tre små grisarna flyttat hemifrån. En dag kom han för att äta upp dem. De tre små grisarna blev mycket rädda och skyndade in i sina hus.
|
||||
Först knackade vargen på dörren till huset av halm.
|
||||
|
||||
\section{Tack till}
|
||||
|
||||
Tack till sagornas värld där allt kan hända.
|
||||
|
||||
\end{document}
|
Loading…
x
Reference in New Issue
Block a user