Latex template init

This commit is contained in:
2022-03-14 22:45:54 +01:00
parent 47b6e60d1d
commit 5302c9fcff
6 changed files with 652 additions and 0 deletions

289
.gitignore vendored Normal file
View File

@@ -0,0 +1,289 @@
.DS_STORE
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
## Intermediate documents:
*.dvi
*.xdv
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
*.pdf
## Generated if empty string is given at "Please type another file name for output:"
.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Build tool directories for auxiliary files
# latexrun
latex.out/
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.pre
*.snm
*.vrb
# changes
*.soc
# comment
*.cut
# cprotect
*.cpt
# elsarticle (documentclass of Elsevier journals)
*.spl
# endnotes
*.ent
# fixme
*.lox
# feynmf/feynmp
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs
*.lzo
*.lzs
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
*.ist
# gnuplottex
*-gnuplottex-*
# gregoriotex
*.gaux
*.glog
*.gtex
# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
# hyperref
*.brf
# knitr
*-concordance.tex
# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
# *.tikz
*-tikzDictionary
# listings
*.lol
# luatexja-ruby
*.ltjruby
# makeidx
*.idx
*.ilg
*.ind
# minitoc
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
# minted
_minted*
*.pyg
# morewrites
*.mw
# newpax
*.newpax
# nomencl
*.nlg
*.nlo
*.nls
# pax
*.pax
# pdfpcnotes
*.pdfpc
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# scrwfile
*.wrt
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# pdfcomment
*.upa
*.upb
# pythontex
*.pytxcode
pythontex-files-*/
# tcolorbox
*.listing
# thmtools
*.loe
# TikZ & PGF
*.dpth
*.md5
*.auxlock
# todonotes
*.tdo
# vhistory
*.hst
*.ver
# easy-todo
*.lod
# xcolor
*.xcp
# xmpincl
*.xmpi
# xindy
*.xdy
# xypic precompiled matrices and outlines
*.xyc
*.xyd
# endfloat
*.ttt
*.fff
# Latexian
TSWLatexianTemp*
## Editors:
# WinEdt
*.bak
*.sav
# Texpad
.texpadtmp
# LyX
*.lyx~
# Kile
*.backup
# gummi
.*.swp
# KBibTeX
*~[0-9]*
# TeXnicCenter
*.tps
# auto folder when using emacs and auctex
./auto/*
*.el
# expex forward references with \gathertags
*-tags.tex
# standalone packages
*.sta
# Makeindex log files
*.lpz
# xwatermark package
*.xwm
# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
# Uncomment the next line to have this generated file ignored.
#*Notes.bib

BIN
Logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

152
TemplateTesi.tex Normal file
View File

@@ -0,0 +1,152 @@
%
% Tesi D.S.I. - modello preso da
% Stanford University PhD thesis style -- modifications to the report style
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% TESI DOTTORATO %
% ______________ %
% %
% AUTORE: Elena Pagani %
% %
% Ultima revisione: 7.X.1998 %
% correzioni atrent %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
\documentclass[a4paper,12pt]{report}
% \renewcommand{\baselinestretch}{1.6} % interline spacing
%
% \includeonly{}
%
% PREAMBOLO
%
\usepackage[a4paper]{geometry}
\usepackage{amssymb,amsmath,amsthm}
\usepackage{graphicx}
\usepackage{url}
\usepackage{hyperref}
\usepackage{xcolor}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
\usepackage{epsfig}
\usepackage[italian]{babel}
\usepackage{setspace}
\usepackage{tesi}
% per le accentate
\usepackage[utf8]{inputenc}
%
\newtheorem{myteor}{Teorema}[section]
%
\newenvironment{teor}{\begin{myteor}\sl}{\end{myteor}}
%
%
% TITOLO
%
\begin{document}
\title{Titolo tesi}
\author{Mirko Milovanovic}
\dept{Corso di Laurea in Informatica per la comunicazione digitale}
\anno{2020-2021}
\matricola{870671}
\relatore{Prof. XXX}
\correlatore{Tizio della azienda i guess}
%
% \submitdate{month year in which submitted to GPO}
% - date LaTeX'd if omitted
% \copyrightyear{year degree conferred (next year if submitted in Dec.)}
% - year LaTeX'd (or next year, in December) if omitted
% \copyrighttrue or \copyrightfalse
% - produce or don't produce a copyright page (false by default)
% \figurespagetrue or \figurespagefalse
% - produce or don't produce a List of Figures page
% (false by default)
% \tablespagetrue or \tablespagefalse
% - produce or don't produce a List of Tables page
% (false by default)
%
% DEDICA
%
\beforepreface
\prefacesectionnochapter{Dedica}
{\hfill \Large {\sl dedicato a tutti quello che mi vogliono male}}
%
% PREFAZIONE
%
\prefacesection{Prefazione}
hkjafgyruet.
%
%
% ORGANIZZAZIONE
\section*{Organizzazione della tesi}
\label{organizzazione}
La tesi \`e organizzata come segue:
\begin{itemize}
\item nel Capitolo 1 ....
\end{itemize}
%
% RINGRAZIAMENTI
%
\prefacesection{Ringraziamenti}
asdjhgftry.
\afterpreface
%
%
% CAPITOLO 1: dshjkfg
\chapter{Introduzione}
\label{cap1}
%
%
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam tempor est a quam sagittis, id cursus ligula pulvinar. Fusce nibh purus, pharetra sed rhoncus eu, porta nec risus. Nulla interdum vitae libero a tincidunt. Aliquam dapibus massa id ipsum maximus feugiat. Aliquam sagittis condimentum convallis. Pellentesque facilisis metus id leo dapibus mattis. Etiam pharetra nunc at urna ornare, ut fringilla dui convallis. Aliquam efficitur fermentum convallis. Vivamus lacus arcu, varius eget mauris ac, consequat molestie eros. Pellentesque at ex a purus iaculis iaculis congue at orci. Ut augue eros, efficitur a consequat sit amet, ullamcorper ac leo. Phasellus enim velit, feugiat sed luctus vel, consequat in nibh. Fusce vitae augue malesuada, luctus risus sit amet, pulvinar ante. Nam blandit, lorem id pharetra tempus, felis est luctus eros, ut consequat mauris dolor eu ante. In lobortis sem consectetur efficitur finibus.
Interdum et malesuada fames ac ante ipsum primis in faucibus. Donec at congue elit, vitae mattis lectus. Nullam vulputate dapibus tellus, ac porta nisl posuere et. Cras laoreet eget massa eu cursus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Mauris non bibendum justo, non fringilla eros. Vestibulum consequat, ante et auctor convallis, arcu risus tempus tellus, a placerat eros ex vitae ex. Mauris eu elit pharetra, finibus turpis at, semper lorem. Suspendisse ornare, augue eu tempus aliquam, leo justo accumsan dui, sit amet tristique diam turpis ac metus. Ut in enim et ipsum bibendum elementum a at dolor.
Quisque euismod mauris sed velit ullamcorper hendrerit. Aliquam viverra quam sed lacus luctus, et ornare nibh molestie. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse eget mi posuere, ornare odio vel, condimentum augue. Vestibulum id sagittis risus. Etiam egestas, velit eu ullamcorper ornare, turpis nulla vulputate nisl, sed fringilla dui nisl quis lorem. Nunc ut velit mattis, semper augue eget, tincidunt arcu. Suspendisse potenti.
Nulla lobortis ullamcorper porttitor. Sed quis posuere felis. Sed porta scelerisque aliquet. Quisque vel tortor quis orci suscipit aliquam sed in eros. Donec ultricies, mauris et pulvinar tincidunt, eros mauris lobortis purus, in vehicula diam libero sed enim. Praesent egestas libero ac aliquam ultrices. In hac habitasse platea dictumst. In ullamcorper in urna ut aliquam. Phasellus ut quam vitae lacus tempor feugiat. Morbi tempor tortor at mi mattis, sit amet fermentum risus dapibus. Phasellus dictum sapien nec dictum interdum. Pellentesque id pretium quam. Quisque consequat metus at accumsan eleifend.
Vestibulum nisl sapien, elementum non molestie vitae, porttitor sit amet libero. Etiam odio lectus, mollis id nisl ut, feugiat aliquam nunc. Aliquam tempor, sapien eu bibendum ullamcorper, lorem diam egestas nibh, at egestas magna elit ac nisl. Vivamus odio turpis, facilisis at dolor sed, mollis sagittis neque. Fusce in tempus felis, vitae sagittis massa. Suspendisse volutpat ligula non nunc tincidunt condimentum. Duis rhoncus fermentum magna sit amet varius. Vivamus nec iaculis tortor. Cras lorem purus, luctus at ultricies sit amet, tincidunt in est. Morbi vel magna vitae lacus feugiat volutpat. Nulla congue malesuada nunc, ac posuere nunc eleifend eget. Mauris a rhoncus enim. Fusce id gravida eros. Vestibulum in varius elit. Interdum et malesuada fames ac ante ipsum primis in faucibus.
%
% BIBLIOGRAFIA
%
\begin{thebibliography}{00}
%
\bibitem{gotti91}
M. Gotti, I linguaggi specialistici, Firenze, La Nuova Italia, 1991.
%
\bibitem{wellek62}
R. Wellek, A. Warren, Theory of Literature , 3rd edition, New York, Harcourt, 1962.
%
\bibitem{canziani78}
A. Canziani et al., Come comunica il teatro: dal testo alla scena. Milano, Il Formichiere, 1978.
%
\bibitem{MoD67}
Ministry of Defence, Great Britain, Author and Subject Catalogues of the Naval Library, London, Ministry of Defence, HMSO, 1967.
%
\bibitem{heine23}
H. Heine, Pensieri e ghiribizzi. A cura di A. Meozzi. Lanciano, Carabba, 1923.
%
\bibitem{basso62}
L. Basso, ''Capitalismo monopolistico e strategia operaia'', Problemi del socialismo, vol. 8, n. 5, pp. 585-612, 1962.
%
\bibitem{avirovic93}
L. Avirovic, J. Dodds (a cura di), Atti del Convegno internazionale "Umberto Eco, Claudio Magris. Autori e traduttori a confronto" ( Trieste, 27-28 novembre 1989), Udine, Campanotto, 1993.
%
\bibitem{gans67}
E.L. Gans, "The Discovery of Illusion: Flaubert's Early Works, 1835-1837", unpublished Ph.D. Dissertation, Johns Hopkins University, 1967.
%
\bibitem{harrison92}
R. Harrison, Bibliography of planned languages (excluding Esperanto). \url{http://www.vor.nu/langlab/bibliog.html}, 1992, agg. 1997.
%
\end{thebibliography}
%
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

211
tesi.sty Normal file
View File

@@ -0,0 +1,211 @@
% Tesi D.S.I. - modello preso da
% Stanford University PhD thesis style -- modifications to the report style
%
\graphicspath{ {./images/} }
% \makeatletter --not necessary for LaTeX style files
% We need 1" margins except on the binding edge, where it is 1 1/2"
\oddsidemargin 0in \evensidemargin 0in
\marginparwidth 40pt \marginparsep 10pt
\topmargin 0pt \headsep .5in
\textheight 8.1in \textwidth 6in
% Disallow page breaks at hyphens (this will give some underfull vbox's,
% so an alternative is to use \brokenpenalty=100 and manually search
% for and fix such page breaks)
\brokenpenalty=10000
% Use 1.3 times the normal baseline-to-baseline skip
\renewcommand{\baselinestretch}{1.0} % ERA 1.3
% Figures and tables are to be numbered sequentially throughout the
% thesis, rather than within chapters; for style consistency, do
% equations the same. The following \def of \cl@chapter is a kludge:
% really there should be a \removefromreset, to stop figure numbers, etc.,
% from being reset at chapter beginnings
\def\cl@chapter{\@elt{section}\@elt{footnote}}
\def\thefigure{\@arabic\c@figure}
\def\thetable{\@arabic\c@table}
\def\theequation{\arabic{equation}}
% Redefine the macro used for floats (including figures and tables)
% so that single spacing is used.
% (Note \def\figure{\@float{figure}set single spacing} doesn't work
% because figure has an optional argument)
\def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else
\@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner
\@parmoderr\@floatpenalty\z@
\else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname
\multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n
\@tfor \@tempa :=#2\do
{\if\@tempa h\advance\@tempcnta \@ne\fi
\if\@tempa t\advance\@tempcnta \tw@\fi
\if\@tempa b\advance\@tempcnta 4\relax\fi
\if\@tempa p\advance\@tempcnta 8\relax\fi
}\global\count\@currbox\@tempcnta}\@fltovf\fi
\global\setbox\@currbox\vbox\bgroup
\def\baselinestretch{1}\@normalsize
\boxmaxdepth\z@
\hsize\columnwidth \@parboxrestore}
% Redefine the macro used for footnotes to use single spacing
\long\def\@footnotetext#1{\insert\footins{\def\baselinestretch{1}\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
\hsize\columnwidth \@parboxrestore
\edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
{\rule{\z@}{\footnotesep}\ignorespaces
#1\strut}}}
% \author, \title are defined in report; here are the rest of the
% front matter defining macros
\def\dept#1{\gdef\@dept{#1}}
\def\relatore#1{\gdef\@relatore{#1}}
\def\correlatore#1{\gdef\@correlatore{#1}}
\def\anno#1{\gdef\@anno{#1}}
\def\matricola#1{\gdef\@matricola{#1}}
\def\principaladviser#1{\gdef\@principaladviser{#1}}
\def\advis@r{Adviser} % default spelling
\def\principaladvisor#1{\gdef\@principaladviser{#1}\gdef\advis@r{Advisor}}
\def\firstreader#1{\gdef\@firstreader{#1}}
\def\secondreader#1{\gdef\@secondreader{#1}}
\def\submitdate#1{\gdef\@submitdate{#1}}
\def\copyrightyear#1{\gdef\@copyrightyear{#1}} % \author, \title in report
\def\@title{}\def\@author{}\def\@dept{computer science}
\def\@principaladviser{}\def\@firstreader{}\def\@secondreader{}
\def\@relatore{}\def\@correlatore{}\def\@anno{}\def\@matricola{}
\def\@submitdate{\ifcase\the\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space \number\the\year}
% Stanford says that December theses should have the next year as the
% copyright year
\ifnum\month=12
\@tempcnta=\year \advance\@tempcnta by 1
\edef\@copyrightyear{\number\the\@tempcnta}
\else
\def\@copyrightyear{\number\the\year}
\fi
\newif\ifcopyright \newif\iffigurespage \newif\iftablespage
\copyrightfalse
\figurespagefalse
\tablespagefalse
\def\titlep{%
\thispagestyle{empty}%
%\null\vskip1in%
\begin{center}
%{\sc Universit\`a degli Studi di Milano} \\
%Facolt\`a di Scienze e Tecnologie \\
\includegraphics[width=\textwidth]{Logo.jpg} \\
{\em \@dept}
\end{center}
\vskip1in
\begin{center}
% {\Large\uppercase\expandafter{\@title}}
\begin{doublespace}
{\Huge\uppercase\expandafter{\@title}}
\end{doublespace}
\end{center}
\vfill
\begin{description}
\item[Relatore:] \@relatore
\item[Correlatore:] \@correlatore
\end{description}
\vskip0.5in
\null\hfill
\parbox{1.6in}{
Tesi di: \\
\expandafter{\@author}
\\ Matricola: \@matricola
}
\vfill
\begin{center}
\large Anno Accademico \@anno
\end{center}
\newpage}
\def\copyrightpage{%
\null\vfill
\begin{center}
\Large\copyright\ Copyright \@copyrightyear\\
by\\
\@author\\
\end{center}
\vfill\newpage}
\long\def\signature#1{%
\begin{center}
\begin{minipage}{4in}
\parindent=0pt
I certify that I have read this thesis and that in my opinion
it is fully adequate, in scope and in quality, as a dissertation for the degree
of Doctor of Philosophy.
\par
\vspace{.5in}
\hbox to 4in{\hfil\shortstack{\vrule width 3in height 0.4pt\\#1}}
\end{minipage}
\end{center}}
\def\signaturepage{%
\signature{\@principaladviser\\(Principal \advis@r)}
\vfill
\signature\@firstreader
\vfill
\signature\@secondreader
\vfill
\begin{center}
\begin{minipage}{4in}
Approved for the University Committee on Graduate Studies:\par
\vspace{.5in}
\hbox to 4in{\hfil\shortstack{\vrule width 3in height 0.4pt\\
Dean of Graduate Studies \& Research}}
\end{minipage}
\end{center}}
\def\beforepreface{
\pagenumbering{roman}
\pagestyle{plain}
\titlep}
% \ifcopyright\copyrightpage\fi
% \signaturepage}
\def\prefacesection#1{%
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}}
\def\prefacesectionnochapter#1{%
\chapter*{}
\addcontentsline{toc}{chapter}{#1}}
% The \addvspace business below is to avoid the extra space that gets put
% in the tables of figures and tables between chapters (it makes no sense
% now that the numbering is continuous)
\def\afterpreface{\newpage
\tableofcontents
\newpage
\iftablespage
{\addvspace{10pt}
\let\saveaddvspace=\addvspace
\def\addvspace##1{}
\listoftables
\let\addvspace=\saveaddvspace}
\newpage
\fi
\iffigurespage
{\addvspace{10pt}
\let\saveaddvspace=\addvspace
\def\addvspace##1{}
\listoffigures
\let\addvspace=\saveaddvspace}
\newpage
\fi
\pagenumbering{arabic}
\pagestyle{headings}}
\pagestyle{headings}
% \makeatother --not necessary for LaTeX style files