From e350af0950868a2a77a6271d4a9edb8c76d83a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pekka=20Pietik=C3=A4inen?= Date: Thu, 15 Sep 2016 09:50:41 +0300 Subject: [PATCH] Introduce end-of-line normalization --- .gitattributes | 3 + dt.tex | 274 ++++++++++++++++++++++++------------------------- 2 files changed, 140 insertions(+), 137 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4e1ba6a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto +*.eps -text +*.pdf -text diff --git a/dt.tex b/dt.tex index ad4cd30..fa6f97a 100644 --- a/dt.tex +++ b/dt.tex @@ -1,137 +1,137 @@ -% -% Template for Department of Electrical and Information Engineering Diploma Thesis v1.1.2013 -% Authors: Mika Korhonen (original author), Pekka Pietikäinen, Christian Wieser, Teemu Tokola and Juha Kylmänen. -% If you make any improvements to this template, please contact ouspg@ee.oulu.fi -% - -\documentclass[a4paper, 12pt,titlepage]{dithesis} -\usepackage[english,finnish]{babel} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{times} -\usepackage{tabularx} -\usepackage{graphicx} -\usepackage{float} -\usepackage{enumerate} -\usepackage{placeins} -\usepackage{fancybox} -\usepackage{verbatim} -\usepackage{longtable} -\usepackage{di} -\usepackage[hyphens]{url} -\usepackage{boxedminipage} -\usepackage{subfigure} -\usepackage{multirow} -\usepackage{amsfonts} -\usepackage{xcolor} -\tolerance=500 - -%\usepackage[a4paper,margin=2.5cm,dvips]{geometry} -%\geometry{papersize={210mm,297mm}} -%dvipdf -sPAPERSIZE=a4 - -% The following code removes %-signs with URL:s longer than 72 chars -\begingroup -\makeatletter -\g@addto@macro{\UrlSpecials}{% - \endlinechar=13 \catcode\endlinechar=12 - \do\%{\Url@percent}\do\^^M{\break}} - \catcode13=12 % - \gdef\Url@percent{\@ifnextchar^^M{\@gobble}{\mathbin{\mathchar`\%}}}% -\endgroup % - -%\selectlanguage{finnish} - -\otsikko{Suomenkielinen nimi} -\title{English title} - -\etunimi{Teemu} -\sukunimi{Teekkari} -\valvoja{prof. Juha Röning} -\koulutusohjelma{information} % {information | electrical} -\vuosi{2016} -\tyo{Master} % {Bachelor | Master} -\kieli{english} % {finnish | english} - -\begin{document} - -\begin{titlepage} - \centering{\includegraphics*[width=0.3\textwidth]{uni_logo}\\} - {\sffamily\fontsize{9}{1pt}\selectfont FACULTY OF INFORMATION TECHNOLOGY AND ELECTRICAL ENGINEERING\\} - %{\sffamily\fontsize{9}{1pt}\selectfont TIETO- JA SÄHKÖTEKNIIKAN TIEDEKUNTA\\} - \vspace{65 mm} - {\textbf{\fontsize{16}{19pt}\selectfont \getfirstname\ \getlastname }\\} - \vspace{15 mm} - {\textbf{\fontsize{18}{22pt}\selectfont FIRST FRONT PAGE TITLE LINE\\ADDITIONAL IF NEEDED\\}} - \vspace{60 mm} - {\fontsize{14}{17}\selectfont Master's Thesis \\Degree Programme in Computer Science and Engineering \\ Month 20xx\\} - %{\fontsize{14}{17}\selectfont Diplomityö \\Tietotekniikan tutkinto-ohjelma \\ Month 20xx\\} -\end{titlepage} - -\selectlanguage{english} - -\begin{abstract} -This is a sample abstract. - -\keywords sample, keywords - -\end{abstract} - -\selectlanguage{finnish} -\begin{tiivistelma} -Esimerkkitiivistelmä - -\avainsanat esimerkki, sanoja -\end{tiivistelma} - -\selectlanguage{english} -%\selectlanguage{finnish} - -\sisluettelo -%\tableofcontents - -\otsake{FOREWORD} -This \LaTeX -template has been used by various people at department -since the late 1990's, and has slowly improved over time. It is still -somewhat rough at the edges, but hopefully will be helpful in reducing -some of the pain involved in writing a diploma thesis. - -Contributors to the template include Mika Korhonen (original author), -Pekka Pietikäinen, Christian Wieser and Teemu Tokola. If you make any -improvements to this template, please contact ouspg@ee.oulu.fi, and we -will try to include them in further revisions. - -The template was updated during the summer of 2013 by Juha Kylmänen. -%\allekirjoitus{Oulu, Finland \today} - -\otsake{ABBREVIATIONS} - -\setlongtables -\begin{longtable}[l]{p{3cm}p{0.7\textwidth}} - -% Add your abbreviations to abbreviations.tex -\input{abbreviations} - -\end{longtable} -\setcounter{table}{0} - -%Johdanto -\chapter{Introduction} -\sivunumerot -\input{introduction} % ./introduction.tex - -\chapter{Implementing something} -\input{implementation} % ./implementation.tex - -\chapter{Testing something} -\input{testing} % ./testing.tex - -\chapter{Discussion} -\input{discussion} % ./discussion.tex - -\chapter{Conclusion} -\input{conclusion} % ./conclusion.tex - -\bibliographystyle{di} -\bibliography{di} -\end{document} +% +% Template for Department of Electrical and Information Engineering Diploma Thesis v1.1.2013 +% Authors: Mika Korhonen (original author), Pekka Pietikäinen, Christian Wieser, Teemu Tokola and Juha Kylmänen. +% If you make any improvements to this template, please contact ouspg@ee.oulu.fi +% + +\documentclass[a4paper, 12pt,titlepage]{dithesis} +\usepackage[english,finnish]{babel} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{times} +\usepackage{tabularx} +\usepackage{graphicx} +\usepackage{float} +\usepackage{enumerate} +\usepackage{placeins} +\usepackage{fancybox} +\usepackage{verbatim} +\usepackage{longtable} +\usepackage{di} +\usepackage[hyphens]{url} +\usepackage{boxedminipage} +\usepackage{subfigure} +\usepackage{multirow} +\usepackage{amsfonts} +\usepackage{xcolor} +\tolerance=500 + +%\usepackage[a4paper,margin=2.5cm,dvips]{geometry} +%\geometry{papersize={210mm,297mm}} +%dvipdf -sPAPERSIZE=a4 + +% The following code removes %-signs with URL:s longer than 72 chars +\begingroup +\makeatletter +\g@addto@macro{\UrlSpecials}{% + \endlinechar=13 \catcode\endlinechar=12 + \do\%{\Url@percent}\do\^^M{\break}} + \catcode13=12 % + \gdef\Url@percent{\@ifnextchar^^M{\@gobble}{\mathbin{\mathchar`\%}}}% +\endgroup % + +%\selectlanguage{finnish} + +\otsikko{Suomenkielinen nimi} +\title{English title} + +\etunimi{Teemu} +\sukunimi{Teekkari} +\valvoja{prof. Juha Röning} +\koulutusohjelma{information} % {information | electrical} +\vuosi{2016} +\tyo{Master} % {Bachelor | Master} +\kieli{english} % {finnish | english} + +\begin{document} + +\begin{titlepage} + \centering{\includegraphics*[width=0.3\textwidth]{uni_logo}\\} + {\sffamily\fontsize{9}{1pt}\selectfont FACULTY OF INFORMATION TECHNOLOGY AND ELECTRICAL ENGINEERING\\} + %{\sffamily\fontsize{9}{1pt}\selectfont TIETO- JA SÄHKÖTEKNIIKAN TIEDEKUNTA\\} + \vspace{65 mm} + {\textbf{\fontsize{16}{19pt}\selectfont \getfirstname\ \getlastname }\\} + \vspace{15 mm} + {\textbf{\fontsize{18}{22pt}\selectfont FIRST FRONT PAGE TITLE LINE\\ADDITIONAL IF NEEDED\\}} + \vspace{60 mm} + {\fontsize{14}{17}\selectfont Master's Thesis \\Degree Programme in Computer Science and Engineering \\ Month 20xx\\} + %{\fontsize{14}{17}\selectfont Diplomityö \\Tietotekniikan tutkinto-ohjelma \\ Month 20xx\\} +\end{titlepage} + +\selectlanguage{english} + +\begin{abstract} +This is a sample abstract. + +\keywords sample, keywords + +\end{abstract} + +\selectlanguage{finnish} +\begin{tiivistelma} +Esimerkkitiivistelmä + +\avainsanat esimerkki, sanoja +\end{tiivistelma} + +\selectlanguage{english} +%\selectlanguage{finnish} + +\sisluettelo +%\tableofcontents + +\otsake{FOREWORD} +This \LaTeX -template has been used by various people at department +since the late 1990's, and has slowly improved over time. It is still +somewhat rough at the edges, but hopefully will be helpful in reducing +some of the pain involved in writing a diploma thesis. + +Contributors to the template include Mika Korhonen (original author), +Pekka Pietikäinen, Christian Wieser and Teemu Tokola. If you make any +improvements to this template, please contact ouspg@ee.oulu.fi, and we +will try to include them in further revisions. + +The template was updated during the summer of 2013 by Juha Kylmänen. +%\allekirjoitus{Oulu, Finland \today} + +\otsake{ABBREVIATIONS} + +\setlongtables +\begin{longtable}[l]{p{3cm}p{0.7\textwidth}} + +% Add your abbreviations to abbreviations.tex +\input{abbreviations} + +\end{longtable} +\setcounter{table}{0} + +%Johdanto +\chapter{Introduction} +\sivunumerot +\input{introduction} % ./introduction.tex + +\chapter{Implementing something} +\input{implementation} % ./implementation.tex + +\chapter{Testing something} +\input{testing} % ./testing.tex + +\chapter{Discussion} +\input{discussion} % ./discussion.tex + +\chapter{Conclusion} +\input{conclusion} % ./conclusion.tex + +\bibliographystyle{di} +\bibliography{di} +\end{document}