Commit ab8b6534 authored by Alessandro Di Federico's avatar Alessandro Di Federico
Browse files

Initial import

parents
## temporary lyx and latex files
*~
*#*.lyx#
*.tex
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
*.blg
*.dvi
*.glg
*.gls
*.ilg
*.ind
*.lof
*.lot
*.maf
*.mtc
*.mtc1
*.out
*.synctex.gz
*.autosave
*.lyx.emergency
*.lyx.orig
## output directory
output/*
#!/bin/bash
# TODO replace this ugly script with a Makefile
cd italiano
make clean
make
cd ..
cd english
make clean
make
cd ..
rm -rf output
mkdir output
mv english/output output/english
mv italiano/output output/italiano
mv output/english/single-sided/thesis.pdf output/english/single-sided-thesis.pdf
mv output/english/double-sided/thesis.pdf output/english/double-sided-thesis.pdf
mv output/italiano/singola-facciata/tesi.pdf output/italiano/tesi-singola-facciata.pdf
mv output/italiano/doppia-facciata/tesi.pdf output/italiano/tesi-doppia-facciata.pdf
# output directory
OUTPUT_DIR = ./output
# files
THESIS_LYX = thesis.lyx
README_MD = README.md
SINGLE_SIDED_FOLDER = $(OUTPUT_DIR)/single-sided
DOUBLE_SIDED_FOLDER = $(OUTPUT_DIR)/double-sided
SINGLE_SIDED_PATCH = single-sided.patch
TEMP_REPO_TAR = temp-repo.tar
TEMPLATE_FILES = $(shell git ls-tree -r --name-only master)
FILES_TO_EXCLUDE = exclude-files.txt
all: $(TEMPLATE_FILES)
tar cf $(TEMP_REPO_TAR) $(TEMPLATE_FILES) -X $(FILES_TO_EXCLUDE)
mkdir -p $(SINGLE_SIDED_FOLDER)
tar xf $(TEMP_REPO_TAR) -C $(SINGLE_SIDED_FOLDER)
patch -p1 $(SINGLE_SIDED_FOLDER)/$(THESIS_LYX) < $(SINGLE_SIDED_PATCH)
# FIXME patch should not generate the orig file
rm $(SINGLE_SIDED_FOLDER)/$(THESIS_LYX).orig
lyx --export pdf2 $(SINGLE_SIDED_FOLDER)/$(THESIS_LYX)
mkdir -p $(DOUBLE_SIDED_FOLDER)
tar xf $(TEMP_REPO_TAR) -C $(DOUBLE_SIDED_FOLDER)
lyx --export pdf2 $(DOUBLE_SIDED_FOLDER)/$(THESIS_LYX)
cp $(README_MD) $(OUTPUT_DIR)
rm -rf $(TEMP_REPO_TAR)
clean:
rm -rf $(OUTPUT_DIR)
.PHONY: all clean
# LyX template for a thesis #
## Template structure ##
The template has two versions, double-sided and single-sided. The former is for
a thesis that needs to be printed "front-and-back" while the latter is intened
to be printed one sided.
## Changelog ##
* 30/03/2014 - Fixed wrong captions of algorithms and listings in chapter 2,
added how to correctly insert URLs in chapter 2, small fixes in the other
chapters
* 23/03/2014 - Small fixes to chapter 4
* 17/03/2014 - Changed dimension of margins, new chapter for style suggestions
* 09/03/2014 - Fixed fancy headers
* 24/02/2014 - Grammar fixes and mentioned JabRef
* 16/02/2014 - Created two separated folders for single- and double-sided
templates, added section on how to insert source code
* 11/02/2014 - Added template for single-sided thesis
* 09/02/2014 - Improved algorithm's section and added a section on how to
copy-paste latex code
* 08/02/2014 - Major improvement of template's structure
* 30/01/2014 - Various fixes and adjustments
* 25/01/2014 - Initial version
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass book
\options openright
\use_default_options false
\master thesis.lyx
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding T1
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Indice
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
Il sommario deve contenere 3 frasi tratte dall’introduzione.
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
\emph on
Area del lavoro svolto
\end_layout
\begin_layout Plain Layout
La prima inquadra l’area dove si svolge il lavoro, eventualmente un'altra
frase che inquadra inquadra la sottoarea più specifica del lavoro.
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
\emph on
Scopo della tesi
\end_layout
\begin_layout Plain Layout
La seconda frase dovrebbe iniziare con le parole
\begin_inset Quotes fld
\end_inset
Lo scopo della tesi è \SpecialChar \ldots{}
\begin_inset Quotes frd
\end_inset
.
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
\emph on
Breve riassunto
\end_layout
\begin_layout Plain Layout
La terza frase riassume brevemente l’attività svolta, i risultati ottenuti
ed eventuali a valutazioni di questi.
\end_layout
\end_inset
\end_layout
\end_body
\end_document
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass book
\options openright
\use_default_options false
\master thesis.lyx
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding T1
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Indice
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
\begin_inset Quotes fld
\end_inset
È di cattivo gusto ringraziare il relatore.
Se vi ha aiutato ha fatto solo il suo dovere
\begin_inset Quotes frd
\end_inset
Uberto Eco, Come si fa una tesi di laurea
\end_layout
\end_inset
\end_layout
\end_body
\end_document
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass book
\options openright
\use_default_options false
\master ../thesis.lyx
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding T1
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Indice
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
\end_layout
\end_body
\end_document
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass book
\options openright
\use_default_options false
\master ../thesis.lyx
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding T1
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Indice
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
\end_layout
\end_body
\end_document
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass book
\options openright
\use_default_options false
\master ../thesis.lyx
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding T1
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Indice
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
\end_layout
\end_body
\end_document
@article{Dijkstra68Letters,
author = {Dijkstra, Edsger W.},
title = {{Letters to the editor: go to statement considered harmful}},
journal = {Commun. ACM},
volume = {11},
number = {3},
year = {1968},
issn = {0001-0782},
pages = {147--148},
doi = {http://doi.acm.org/10.1145/362929.362947},
publisher = {ACM},
address = {New York, NY, USA},
}
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass book
\options openright
\use_default_options false
\master ../thesis.lyx
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding T1
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Indice
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Section
Lorem ipsum
\end_layout
\begin_layout Standard
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quisque lectus mi, aliquet ac lectus at, luctus ornare enim.
Donec eleifend ornare ante.