diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/README | 24 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex | 218 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex | 221 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_eng.tex | 216 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_ita.tex | 221 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/Laurea_ita.tex | 218 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex | 219 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex | 221 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex | 220 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex | 229 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf | bin | 0 -> 16467 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf | bin | 233337 -> 365890 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex | 532 |
13 files changed, 358 insertions, 2181 deletions
diff --git a/Master/texmf-dist/doc/latex/sapthesis/README b/Master/texmf-dist/doc/latex/sapthesis/README index a3abe943604..0201d875177 100644 --- a/Master/texmf-dist/doc/latex/sapthesis/README +++ b/Master/texmf-dist/doc/latex/sapthesis/README @@ -10,7 +10,7 @@ ** License ********************************************************** - Copyright (c) 2008-2018 by Francesco Biccari. + Copyright (c) 2008-2022 by Francesco Biccari. This work (specified below) may be distributed and/or modified under the conditions of the @@ -40,9 +40,6 @@ Sapthesis is a LaTeX class to typeset theses that adhere to "Sapienza - University of Rome"'s guidelines for publishing. - The supported types of theses are: Laurea, LaureaMagistrale, - Dottorato di Ricerca, Master di primo livello, Master di - secondo livello, TFA, Specializzazione. It is compatible with two compilation methods: pdflatex and xelatex. @@ -63,7 +60,7 @@ of your TeX distribution (TeX Live, MiKTeX or MacTeX). 2. Instead, if you want to install sapthesis manually, you have to - download the sapthesis.zip archive from CTAN or, better, from + download the sapthesis.zip archive from CTAN or from the official sapthesis website http://biccari.altervista.org/c/informatica/latex/sapthesis.php @@ -73,27 +70,22 @@ 2. sapthesis-doc.pdf (manual of sapthesis.cls) 3. sapthesis-doc.tex (source of the manual) 4. README (this file) - 5. sapienza-MLred-pos.pdf (red university logo) - 6. sapienza-MLblack-pos.pdf (black university logo) - 7. examples folder with several examples of usage - 8. sapthesis.bst (an english BibTeX style) - 9. sapthesis.layout (sapthesis layout file for LyX) + 5. sapienzalogo.pdf (university logo) + 6. sapthesis.bst (an english BibTeX style) + 7. sapthesis.layout (sapthesis layout file for LyX) You can simply copy sapthesis.cls and sapthesis.bst - together with sapienza-MLred-pos.pdf and - sapienza-MLblack-pos.pdf into your local work directory where - your thesis files will live. + together with sapienzalogo.pdf into your local + work directory where your thesis files will live. 3. The last possibility is copying the files of Sapthesis (discussed in the previous point) into your texmf tree (or your localtexmf tree) at these locations: <texmf>/tex/latex/sapthesis/sapthesis.cls - <texmf>/tex/latex/sapthesis/sapienza-MLred-pos.pdf - <texmf>/tex/latex/sapthesis/sapienza-MLblack-pos.pdf + <texmf>/tex/latex/sapthesis/sapienzalogo.pdf <texmf>/doc/latex/sapthesis/sapthesis-doc.pdf <texmf>/doc/latex/sapthesis/sapthesis-doc.tex - <texmf>/doc/latex/sapthesis/examples/*.tex <texmf>/doc/latex/sapthesis/README <texmf>/bibtex/bst/sapthesis/sapthesis.bst <texmf>/doc/latex/sapthesis/sapthesis.layout diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex deleted file mode 100644 index 6bddec4d07d..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex +++ /dev/null @@ -1,218 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = it_IT - -\documentclass[Lau,binding=0.6cm]{sapthesis} - -\usepackage{microtype} -\usepackage[italian]{babel} -\usepackage[utf8]{inputenx} - -\usepackage{hyperref} -\hypersetup{pdftitle={Sapthesis class example},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Esempio d'uso della classe Sapthesis\\ per una tesi di Laurea} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{Fisica} -\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicato a\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments} -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Capitolo non numerato} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Paragrafo non numerato} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder[2]{f}{y} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \$7 \bs x 10\^{}5\$ gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex deleted file mode 100644 index 425de42d61a..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex +++ /dev/null @@ -1,221 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = it_IT - -\documentclass[LaM,binding=0.6cm]{../sapthesis} - -\usepackage{microtype} -\usepackage[italian]{babel} -\usepackage[utf8]{inputenc} -%\input{ix-utf8enc.dfu} - - -\usepackage{hyperref} -\hypersetup{pdftitle={Esempio d'uso della classe Sapthesis per una tesi di Laurea Magistrale},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Esempio d'uso della classe Sapthesis\\ -per una tesi di Laurea Magistrale} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{Fisica} -\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicato a\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments} -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Capitolo non numerato} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Paragrafo non numerato} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_eng.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_eng.tex deleted file mode 100644 index 363702f64e4..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_eng.tex +++ /dev/null @@ -1,216 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = en_US - -\documentclass[LaM,binding=0.6cm]{sapthesis} - -\usepackage{microtype} - -\usepackage{hyperref} -\hypersetup{pdftitle={Usage example of the Sapthesis class for a Laurea Magistrale thesis in English},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Usage example of the Sapthesis class\\ for a Laurea Magistrale thesis in English} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{Fisica} -\courseorganizer{Facolt\`{a} di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicated to\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments} -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Capitolo non numerato} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Paragrafo non numerato} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_ita.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_ita.tex deleted file mode 100644 index 425de42d61a..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale_ita.tex +++ /dev/null @@ -1,221 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = it_IT - -\documentclass[LaM,binding=0.6cm]{../sapthesis} - -\usepackage{microtype} -\usepackage[italian]{babel} -\usepackage[utf8]{inputenc} -%\input{ix-utf8enc.dfu} - - -\usepackage{hyperref} -\hypersetup{pdftitle={Esempio d'uso della classe Sapthesis per una tesi di Laurea Magistrale},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Esempio d'uso della classe Sapthesis\\ -per una tesi di Laurea Magistrale} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{Fisica} -\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicato a\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments} -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Capitolo non numerato} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Paragrafo non numerato} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea_ita.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea_ita.tex deleted file mode 100644 index 851ae6b35fb..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea_ita.tex +++ /dev/null @@ -1,218 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = it_IT - -\documentclass[Lau,binding=0.6cm]{sapthesis} - -\usepackage{microtype} -\usepackage[italian]{babel} -\usepackage[utf8]{inputenx} - -\usepackage{hyperref} -\hypersetup{pdftitle={Sapthesis class example},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Esempio d'uso della classe Sapthesis\\ per una tesi di Laurea} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{Fisica} -\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicato a\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments} -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Capitolo non numerato} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Paragrafo non numerato} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex deleted file mode 100644 index c780e79ee82..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex +++ /dev/null @@ -1,219 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = it_IT - -\documentclass[MasterS,binding=0.6cm]{sapthesis} -% use MasterP option, instead of MasterS, for a ``Master di primo livello'' - -\usepackage{microtype} -\usepackage[italian]{babel} -\usepackage[utf8]{inputenx} - -\usepackage{hyperref} -\hypersetup{pdftitle={Esempio d'uso della classe Sapthesis per una tesi di Master},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Esempio d'uso della classe Sapthesis\\ per una tesi di Master} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{Fisica} -\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicato a\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments} -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Capitolo non numerato} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Paragrafo non numerato} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex deleted file mode 100644 index 20dadb8c815..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex +++ /dev/null @@ -1,221 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = en_US - -\documentclass[PhD,binding=0.6cm]{../sapthesis} - -\usepackage{microtype} -% if you write in italian: -%\usepackage[italian]{babel} -\usepackage[utf8]{inputenx} - -\usepackage{hyperref} -\hypersetup{pdftitle={Usage example of the Sapthesis class for a PhD thesis},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Usage example of the Sapthesis class\\ for a PhD thesis} -\author{Francesco Biccari} -\IDnumber{1234567} -\course[Physics]{Fisica} -\courseorganizer{Scuola di dottorato Vito Volterra} -\cycle{XXV} -\submitdate{April 2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} -\ISBN{000000000-0} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicated to\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments}[Ringraziamenti] -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Non numbered chapter} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Non numbered section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex deleted file mode 100644 index db99767f6bb..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex +++ /dev/null @@ -1,220 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = en_US - -\documentclass[Specialization,binding=0.6cm]{sapthesis} - -\usepackage{microtype} -\usepackage[utf8]{inputenx} - -\usepackage{hyperref} -\hypersetup{pdftitle={Usage example of Sapthesis class for Specialization thesis},pdfauthor={Francesco Biccari}} - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - -% Commands for the titlepage -\title{Usage example of Sapthesis class for\\ Specialization thesis} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{Fisica Medica} -\courseorganizer{Facoltà di Medicina e Chirurgia} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\advisor{Dr. Nome Cognome} -\coadvisor{Dr. Nome Cognome} -\director{Prof. Nome Cognome} -\authoremail{biccari@email.com} - -\examdate{16 April 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Dr. Nome Cognome} -\versiondate{\today} -\website{biccari.altervista.org} -\ISBN{000000000-0} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicated to\\ Donald Knuth} - -\begin{abstract} -This document is an example which shows the main features of -the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari -with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX). -\end{abstract} - -\begin{acknowledgments}[Ringraziamenti] -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Non numbered chapter} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Non numbered section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex deleted file mode 100644 index ddebabbf4da..00000000000 --- a/Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex +++ /dev/null @@ -1,229 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX program = pdflatex -% !TeX spellcheck = it_IT - -\documentclass[TFA,oneside]{sapthesis} - -% READ THE DOCUMENTATION! - -\usepackage{microtype} -\usepackage[italian]{babel} -\usepackage[utf8]{inputenx} - -\usepackage{hyperref} -\hypersetup{pdftitle={Esempio relazione TFA},pdfauthor={Francesco Biccari}} - -% If you need to increase the line spacing (interlinea) -%\usepackage{setspace} -%\onehalfspacing - -% Remove in a normal thesis -\usepackage{lipsum} -\usepackage{curve2e} -\definecolor{gray}{gray}{0.4} -\newcommand{\bs}{\textbackslash} - - -% Commands for the titlepage -\title{Esempio d'uso della classe Sapthesis\\ per la relazione di tirocinio del TFA} -\author{Francesco Biccari} -\IDnumber{1234567} -\course{A027 Matematica e Fisica} -\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} -\advisor{Prof. Nome Cognome} -\tutor{Prof.ssa Nome Cognome} -\tutorcoord{Prof.ssa Nome Cognome} -\authoremail{biccari@email.com} -\schoolname{Liceo Scientifico Louis Pasteur} -\schooladdress{Via G. Barellai 130, 00135 Roma} -\schoolwebsite{http://www.liceopasteur.it/} -\schoolprincipal{Prof.ssa Nome Cognome} - -\examdate{9 luglio 2013} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome} -\examiner{Prof. Nome Cognome (tutor coord.)} -\examiner{Prof. Nome Cognome (tutor)} -\examiner{Prof. Nome Cognome (dirigente scolastico nominato dall'USR)} -\examiner{Prof. Nome Cognome (tutor coord. supplente)} - -\versiondate{\today} - - - -\begin{document} - -\frontmatter - -\maketitle - -\dedication{Dedicato a\\ Donald Knuth} - -\begin{acknowledgments}[Ringraziamenti] -Ho deciso di scrivere i ringraziamenti in italiano -per dimostrare la mia gratitudine verso i membri -del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare, -verso il prof. Enrico Gregorio. -\end{acknowledgments} - -\tableofcontents - -% Do not use the starred version of the chapter command! -\chapter{Capitolo non numerato} - -In this manual you can skip the gray text because it is just dummy text.% -\footnote{This is a footnote.} - -\textcolor{gray}{\lipsum[1-22]} - - -\section*{Paragrafo non numerato} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-22]} - - - - -\mainmatter - -\chapter{Style features of \textsf{sapthesis}} - -In this chapter I will discuss my stylistic choices of \textsf{sapthesis}. -I will show the page layout geometry and I will describe the page style. - -\section{Page layout} - -The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{sapthesis} page layout is shown. - -\begin{figure}[h] -\centering -\setlength{\unitlength}{0.27mm} -\begin{picture}(420,297)(-210,0) -\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) -\Line(0,0)(0,297) -\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} -\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} -\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} -\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} -\end{picture} -\caption{Page layout scheme of \textsf{sapthesis class} using a zero binding margin.} -\label{layout} -\end{figure} - - -\section{Page style} - -The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved. -They have the same font dimension of the footnotes and are typed in italics. -Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page. -Notice that if a binding margin greater than 1.5\, cm is used, the dimensions of the margin notes become too small and very ugly. -Do not use them in this case. - -The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation -\begin{equation} -x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} -\end{equation} - - -The title page is automatically composed when the \texttt{\bs maketitle} command is given. -The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section. -Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}. - -\begin{figure} -\centering -\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex] -\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos} -\caption{Logo of the Sapienza -- University of Rome.} -\label{fig:largenenough} -\end{figure} - - - -\section{About figures and tables} - -As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats. - -A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset -always the table caption above the table. Do not use vertical lines. - -\begin{table} -\caption{This is a simple table.} -\label{tab:letters} -\centering -\begin{tabular}{lcc} -\toprule -Letter & Test & Test \\ -\midrule -A & C & E \\ -B & D & F \\ -\bottomrule -\end{tabular} -\end{table} - - -\section{A section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum[1-10]} - - - -\section{Another section} - -In this manual you can skip the gray text because it is just dummy text. - -\textcolor{gray}{\lipsum} - - -\appendix -\chapter{Special commands provided by \textsf{sapthesis}} - -\textsf{Sapthesis} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}): -\begin{equation} -\eu^{\iu\pi}+1=0 -\end{equation} - -There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}): -\begin{equation} -\der{f}{x} \qquad \pder{f}{*{2}{y}} -\end{equation} - - -\textsf{Sapthesis} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}: -\[ -a_b \neq a\rb{b}\qquad a^b \neq a\rp{b} -\] -And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}. - - -Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm. - -We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing. -\[ -\int x \di x -\] - -Finally we have defined the color \textsf{sapred} which is the official color -of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.} - -In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes. - -\textcolor{gray}{\lipsum} -\marginpar{This is a fancy margin note!} -\textcolor{gray}{\lipsum} - -\backmatter -% bibliography -%\cleardoublepage -%\phantomsection -%\bibliographystyle{sapthesis} % BibTeX style -%\bibliography{bibliography} % BibTeX database without .bib extension - -\end{document} diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf b/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf Binary files differnew file mode 100644 index 00000000000..348c7c9c09b --- /dev/null +++ b/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf Binary files differindex 80268090c7f..18c215ee6cf 100644 --- a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf +++ b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex index 67c736eceb6..ce2ce1811e2 100644 --- a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex +++ b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex @@ -16,6 +16,7 @@ \usepackage{color} \definecolor{gray}{gray}{0.4} \definecolor{sfondoblu}{rgb}{0.94,0.97,1} +\usepackage{curve2e} \usepackage{listings} \lstset{language=[LaTeX]TeX, basicstyle=\scriptsize\ttfamily, @@ -25,10 +26,12 @@ frameround=tttt, frame=tlrb, escapechar=|, - morekeywords={submitdate, cycle, courseorganizer, AcademicYear, copyyear, Faculty, course, PhDorganizer, IDnumber, advisor, examdate, examiner, authoremail, frontmatter, mainmatter, maketitle, tableofcontents, chapter, appendix, backmatter, dedication, selectlanguage, tutor, tutorcoord, schoolname, schooladdress, schoolwebsite, schoolprincipal}, + morekeywords={submitdate, cycle, courseorganizer, AcademicYear, copyyear, Faculty, course, PhDorganizer, IDnumber, advisor, coadvisor, examdate, examiner, authoremail, frontmatter, mainmatter, maketitle, tableofcontents, chapter, appendix, backmatter, dedication, selectlanguage, tutor, tutorcoord, thesistype, customdirectorlabel, schoolname, schooladdress, schoolwebsite, schoolprincipal, phantomsection, director, hypersetup}, columns=flexible } +\definecolor{sapred}{rgb}{0.5098039,0.1411765,0.2} + \usepackage{multicol} % eliminate dots in the table of contents @@ -53,7 +56,7 @@ \author{\small Francesco Biccari\thanks{\href{mailto:biccari@gmail.com}{biccari@gmail.com}}} \title{\small Documentation of the \LaTeX\ class\\ \Large \textbf{\texttt{sapthesis.cls}}\\ - \small \vspace{0.2cm} Version 4.1, 2018-08-07 + \small \vspace{0.2cm} Version 5.0, 2022-01-01 } \date{} @@ -104,7 +107,7 @@ \maketitle \begin{abstract}\noindent -This document describes how to use \texttt{sapthesis.cls}, a \LaTeX\ document class for the typesetting of the theses of the ``Sapienza -- University of Rome''. The official web page of \textsf{sapthesis} is\\ +This document describes how to use \texttt{sapthesis.cls}, a \LaTeX\ document class for the typesetting of the theses of the ``Sapienza University of Rome''. The official web page of \textsf{sapthesis} is\\ {\footnotesize\url{http://biccari.altervista.org/c/informatica/latex/sapthesis.php}}. \end{abstract} @@ -126,7 +129,7 @@ Apart from the time spent, the resulting documents are obviously all different f This has a negative impact both on the student's work and on the university. Moreover in 2007 the Sapienza university changed completely its logo and a lot of strict graphic rules for official documents were introduced.% -\footnote{A thesis is not an official document and therefore these guidelines can not be applied (private communication with Laura Gobbo, Ufficio Stampa e Comunicazione Sapienza -- Universit\`a di Roma). +\footnote{A thesis is not an official document and therefore these guidelines can not be applied (private communication with Laura Gobbo, Ufficio Stampa e Comunicazione Sapienza Universit\`a di Roma). However some Microsoft Word templates, with a completely different style, are provided. To give a look to the new Sapienza style see \href{https://www.uniroma1.it/it/pagina/marchio-identita-visiva-e-sistema-grafico}{Marchio, identità visiva e sistema grafico} and \href{https://www.uniroma1.it/it/pagina/impaginazione-della-tesi-e-logo}{Template tesi}.} @@ -134,11 +137,13 @@ To give a look to the new Sapienza style see For these reasons I thought that a \LaTeX\ class for the theses of my university would have been a good idea. \textsf{Sapthesis} is the result of my work. -To give a look to a document composed by \textsf{sapthesis} class, compile one of the several examples in the \texttt{examples} directory. -In those files the page layout and the layout choices are explained. +Its official web page is +{\footnotesize\url{http://biccari.altervista.org/c/informatica/latex/sapthesis.php}}. \textsf{Sapthesis} is released under the terms of the latest version of the \href{http://www.latex-project.org/lppl/}{\LaTeX\ Project Public License}. +To give a look to a document composed by \textsf{sapthesis} class, compile one of the several examples reported in App.\,\ref{sec:examples}. + I would like to thank the Italian \TeX\ user group (\href{http://www.guitex.org/}{GuIT}) for the help provided, in particular Enrico Gregorio and Claudio Beccari. I would also thank all the users who reported bugs and suggestions. \section[Requirements\\ and installation]{Requirements and installation} @@ -150,8 +155,8 @@ the \texttt{README} file. The \textsf{sapthesis} package provides: the \texttt{sapthesis.cls} class file; the documentation -\texttt{sapthesis-doc.pdf} (this file) and its source code; the logos of -Sapienza university; several usage examples; an English Bib\TeX\ style, called +\texttt{sapthesis-doc.pdf} (this file) and its source code; the logo of +Sapienza university; an English Bib\TeX\ style, called \texttt{sapthesis.bst}, which can be used, obviously, only if you use the Bib\TeX\ way to compose your bibliography and if your thesis is written in English (its usage is not mandatory). @@ -174,46 +179,34 @@ As usual, in order to use this class, you need to call it by \begin{lstlisting} \documentclass[|\textit{\texttt{options}}|]{sapthesis} \end{lstlisting} -You have to specify the class options for your case (see Sec.~\ref{class_options}). Then you have to provide some fundamental information (title, author, etc\ldots) by specific commands in the preamble (see Sec.~\ref{commands_titlepage}). Finally, remember to follow a source code structure similar to those of the examples given in App.~\ref{sec:PhDexample} and~\ref{sec:LaMexample}. +You have to specify the class options for your case (see Sec.~\ref{class_options}). Then you have to provide some fundamental information (title, author, etc\ldots) by specific commands in the preamble (see Sec.~\ref{commands_titlepage}). Finally, remember to follow a source code structure similar to those of the examples given in App.~\ref{sec:examples}. Especially the usage of the commands \texttt{\bs frontmatter}, \texttt{\bs mainmatter} and \texttt{\bs backmatter} is mandatory, otherwise the page style of the document will be wrong! -This class supports, at the moment, two languages: Italian and English. English is the default. -If your thesis contains only English or very few paragraphs in another language, do not use the \texttt{babel} package because completely useless. Instead, if you write in italian, load the \texttt{babel} package with the -\texttt{italian} option: \texttt{\bs usepackage[italian]\{babel\}}. +This class supports, at the moment, two languages: Italian and English. The choice of the language is automatic according to the \texttt{babel} package settings. If babel is not loaded, english is used. See below to override the automatic choice. \subsection{Class options} \label{class_options} The following options can be passed to the \texttt{\bs documentclass} command. \begin{description} -\item[\texttt{PhD}] Option to typeset a \textit{Dottorato di Ricerca} (PhD) thesis. -\item[\texttt{LaM}] Option to typeset a \textit{Laurea Magistrale} (Master's degree) thesis. -\item[\texttt{Lau}] Option to typeset a \textit{Laurea} (Bachelor's degree) thesis. -\item[\texttt{MasterP}] Option to typeset a thesis for a \textit{Master di primo livello} (First level master). -\item[\texttt{MasterS}] Option to typeset a thesis for a \textit{Master di secondo livello} (Second level master). -\item[\texttt{TFA}] Option to typeset the final report for a \textit{Tirocinio Formativo Attivo}. -\item[\texttt{Specialization}] Option to typeset a thesis for a \textit{Specializzazione}. +\item[\texttt{a4paper/a5paper/b5paper}] Choose one of these three options to set the paper format. The default value is \texttt{a4paper}. +\item[\texttt{layout=\textsl{a5paper/b5paper}}] If, for some reason, it is impossible to print on A5 or B5 directly (printer not supporting these formats, paper not available, ...), it is possible to specify the A5 or B5 layout, maintaining the A4 paper format: some cropmarks will be printed to show where the page should be cut. \item[\texttt{draft}] The usual \texttt{draft} option of the \LaTeX\ Standard Classes. \item[\texttt{oneside}] The usual \texttt{oneside} option of the \LaTeX\ Standard Classes. \item[\texttt{twoside}] (default) The usual \texttt{twoside} option of the \LaTeX\ Standard Classes. -\item[\texttt{bn}] This option typesets the title page in black and white -(using the b/w logo, \texttt{sapienza-MLblack-pos.pdf}, instead of the colored one) and passes the \texttt{monochrome} option to \textsf{color} and -\textsf{xcolor} packages. - \item[\texttt{binding=\textsl{length}}] (zero default binding) The value of this option is an offset of the text column. It is useful to take into account the margin for the binding (ask to your bookbinder for information). -\item[\texttt{noexaminfo}] Suppress all the final exam informations. Indeed, by default, \textsf{sapthesis} shows some information about the final thesis discussion on the back of the title page. By default it shows the phrase ``Thesis not yet defended''. Otherwise, as explained later, giving the commands +\item[\texttt{noexaminfo}] Suppress all the final exam informations. Indeed, by default, \textsf{Sapthesis} shows some information about the final thesis discussion on the back of the title page. By default it shows the phrase ``Thesis not yet defended''. Otherwise, as explained later, giving the commands \texttt{\bs examdate\{\dots\}} and \texttt{\bs examiner\{\dots\}} the date and the examiners list are shown. -\item[\texttt{italian} or \texttt{english}] Explicitly declare the language of -the title page. Useful when you want to write the title page in a language -and the thesis in a different language. \item[\texttt{nodefaultfont}] Avoid the loading of packages \textsf{fontenc}, \textsf{textcomp} and \textsf{lmodern}. \item[\texttt{romandiff}] See App.~\ref{sec:usefulcommands}. -\item[\texttt{fem}] Use the feminine (only Italian): shows ``candidata'' instead of ``candidato''. +\item[\texttt{italian} / \texttt{english}] Explicitly declare the language of +the title page. Useful to write the title page in a language +and the thesis in a different language. \end{description} \subsection[Commands for the\\ title page]{Commands for the title page} @@ -223,64 +216,71 @@ As usual, the title page is generated by the \texttt{\bs maketitle} command. It needs some information that you can supply by the following commands in the preamble. \begin{description} -\item[\texttt{\bs title\{\dots\}}] Mandatory. Title. +\item[\texttt{\bs title\{\dots\}}] Mandatory. Title of the thesis. The text is justified, however it is recommended to insert manual linebreaks (\bs\bs) to compose a beautiful title. + +\item[\texttt{\bs subtitle\{\dots\}}] Optional. Subtitle (try to avoid a subtitle). If both\\ \texttt{\bs subtitle\{\dots\}} and \texttt{\bs alttitle\{\dots\}} are used, the latter is discarded. -\item[\texttt{\bs subtitle\{\dots\}}] Optional. Subtitle (try to avoid a subtitle). +\item[\texttt{\bs alttitle\{\dots\}}] Optional. Alternative title (try to avoid an alternative title). This command, together with the \texttt{\bs title\{\dots\}} command, is typically used to insert in the frontispiece the title in another language. If both \texttt{\bs subtitle\{\dots\}} and \texttt{\bs alttitle\{\dots\}} are used, the latter is discarded. \item[\texttt{\bs author\{\dots\}}] Mandatory. Author (student's name). \item[\texttt{\bs IDnumber\{\dots\}}] Mandatory. ID number (\textit{matricola} in Italian). -\item[\texttt{\bs course[\dots]\{\dots\}}] Mandatory. Use the official Italian name of the course. If the optional argument \texttt{override} is specified, the mandatory argument is used to specify the entire course line in the frontispiece. In this way it is possible to override the behavior of the class (not recommended!). +\item[\texttt{\bs course\{\dots\}}] Mandatory. Use the official Italian name of the course. +Even though your thesis is in English you should write here the official name of the course, which normally is in Italian. -\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory. Course organizer. - -\item[\texttt{\bs submitdate\{\dots\}}] Mandatory. Use the form \texttt{\bs submitdate\{April 2009\}} for PhD's and the form \texttt{\bs submitdate\{2009/2010\}} for Laurea theses. +\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}} -\item[\texttt{\bs AcademicYear\{\dots\}}] Alias for \texttt{\bs submitdate}. Academic Year. +\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory. Course organizer (for example Scuola di Scienze Matematiche Fisiche e Naturali). Use \bs\bs\ to properly break the lines. -\item[\texttt{\bs copyyear\{\dots\}}] Mandatory. Copyright year (usually the -graduation year). +\item[\texttt{\bs AcademicYear\{\dots\}}] Academic Year. \item[\texttt{\bs advisor\{\dots\}}] You must specify at least one advisor. If you have more than one advisor, put several advisor commands in the correct order:\\ \texttt{\bs advisor\{Prof.~Pippo\}} \texttt{\bs advisor\{Dr.~Pluto\}} -\item[\texttt{\bs coadvisor[\dots]\{\dots\}}] Optional. Co-advisors of the thesis. -Same syntax of the \texttt{\bs advisor} command. If the optional argument \texttt{ext} is specified, ``External advisor'' will be printed instead of ``Co-Advisor''. +\item[\texttt{\bs customadvisorlabel\{\dots\}}] Optional. Specify the label for advisors. It can be used, for example, to print ``Relatrice'' instead of ``Relatore''. -\item[\texttt{\bs reviewer\{\dots\}}] Optional. Reviewers of the thesis. -Same syntax of the \texttt{\bs advisor} command. The list of the reviewer is preceded by the a text which can be specified by the \texttt{\bs reviewerlabel\{\dots\}} command. +\item[\texttt{\bs coadvisor\{\dots\}}] Optional. Co-advisors of the thesis. +Same syntax of the \texttt{\bs advisor} command. -\item[\texttt{\bs authoremail\{\dots\}}] Mandatory. Email of the thesis author. -It is automatically hyper-linked if \textsf{hyperref} package is loaded. - -\item[\texttt{\bs versiondate\{\dots\}}] Optional. Date version of the thesis. +\item[\texttt{\bs customcoadvisorlabel\{\dots\}}] Optional. Specify the label for co-advisors. It can be used to print ``external advisor'' or similar labels. -\item[\texttt{\bs website\{\dots\}}] Optional. Thesis website. Automatically -hyper-linked if \textsf{hyperref} package is loaded. - -\item[\texttt{\bs ISBN\{\dots\}}] Optional. ISBN +\item[\texttt{\bs director\{\dots\}}] Optional. Director of the PhD program, head of the Specialization degree, or similar. Same syntax of the \texttt{\bs advisor} command. Avoid its usage if possible. -\item[\texttt{\bs copyrightstatement\{\dots\}}] Optional. Specify a copyright statement that will be printed in place of the default one. +\item[\texttt{\bs customdirectorlabel\{\dots\}}] Optional. Specify the label for director. +\end{description} +Together with the title page, \textsf{Sapthesis} will also compose an information page just after the title page. See also the \texttt{\bs noexaminfo} class option described in a previous section. Here follow the necessary commands to compose this page. +\begin{description} \item[\texttt{\bs examdate\{\dots\}}] Optional. Date of the final exam.\\ -Example: \texttt{\bs examdate\{16 February 2010\}}. +Example: \texttt{\bs examdate\{16 February 2020\}}. \item[\texttt{\bs examiner[\dots]\{\dots\}}] Optional. Specifies the members of the board of examiners of the final exam. Usage similar to \texttt{\bs advisor} command. The optional argument can be used to specify the role of that examiner in the commission. -\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}} +\item[\texttt{\bs thesistype\{\dots\}}] Optional. Type of thesis (usually PhD thesis, Master thesis, and so on). + +\item[\texttt{\bs ISBN\{\dots\}}] Optional. ISBN + +\item[\texttt{\bs copyyear\{\dots\}}] Mandatory. Copyright year (usually the +graduation year). + +\item[\texttt{\bs copyrightstatement\{\dots\}}] Optional. Specify a copyright statement that will be printed in place of the default one. + +\item[\texttt{\bs versiondate\{\dots\}}] Optional. Date version of the thesis. + +\item[\texttt{\bs website\{\dots\}}] Optional. Thesis website. Automatically +hyper-linked if \textsf{hyperref} package is loaded. + +\item[\texttt{\bs authoremail\{\dots\}}] Mandatory. Email of the thesis author. +It is automatically hyper-linked if \textsf{hyperref} package is loaded. -\item[\texttt{\bs director\{\dots\}}] Only for Specialization. Mandatory. +\item[\texttt{\bs reviewer\{\dots\}}] Optional. Reviewers of the thesis (typically this applies to PhD theses only). Same syntax of the \texttt{\bs advisor} command. The list of the reviewer is preceded by the a text which can be specified by the \texttt{\bs reviewerlabel\{\dots\}} command. -\item[\texttt{\bs tutor\{\dots\}} and \texttt{\bs tutorcoord\{\dots\}}] Only for TFA. Mandatory. +\item[\texttt{\bs extrainfo\{\dots\}}] Optional. This command can be used to insert an arbitraly long text at the top of the back of the titlepage. For example, in the past it was used to provide some information for TFA theses (tutor, tutor coordinator, principal of the school, name of the school, and so on). -\item[\texttt{\bs schoolname\{\dots\}}] Only for TFA. Mandatory. Name of the school. -\item[\texttt{\bs schooladdress\{\dots\}}] Only for TFA. Mandatory. School's address. -\item[\texttt{\bs schoolwebsite\{\dots\}}] Only for TFA. Optional. School's website. -\item[\texttt{\bs schoolprincipal\{\dots\}}] Only for TFA. Mandatory. School's principal. \end{description} @@ -300,21 +300,20 @@ If you use a language for the acknowledgments different from that of the thesis, \end{description} - -The \texttt{sapthesis} class defines also the color \texttt{sapred} which is the \emph{Sapienza red}: RGB(130,36,51). -This color is switched to black if the \texttt{bn} option is in use. Example of usage: \texttt{\ldots \bs textcolor\{sapred\}\{blah blah blah\}\ldots} +\textcolor{sapred}{% +The \texttt{sapthesis} class defines also the color \texttt{sapred} which is the \emph{Sapienza red}: RGB(130,36,51). Example of usage: \texttt{\bs textcolor\{sapred\}\{blah blah\}}} \section{Recommendations} \begin{itemize} -\item Do \textbf{not} change the default layout. If you want to change the interline spacing, do not use the \texttt{\bs linespread} command. Load instead the \textsf{setspace} package and use, for example, the \texttt{\bs onehalfspacing} command. +\item Do \textbf{not} change the default layout. \item Do \textbf{not} load the packages already loaded by \textsf{sapthesis} (see Sec.~\ref{requirements_installation}). \item As you already should know, \LaTeX\ can process only documents -in pure ASCII. If you want to insert \emph{directly} other characters, not included in the 128 ASCII characters (for example accented letters), you have to use a particular text encoding for your source file. Then you have to ``tell'' to \LaTeX\ which encoding you have chosen by the packages \texttt{inputenc}. It is always recommended to use UTF-8 character encoding and specify this choice also by the \emph{magic lines} at the beginning of the source code (see the examples in App.~\ref{sec:PhDexample} and~\ref{sec:LaMexample}). +in pure ASCII. If you want to insert \emph{directly} other characters, not included in the 128 ASCII characters (for example accented letters), you have to use a particular text encoding for your source file. Then you have to ``tell'' to \LaTeX\ which encoding you have chosen by the packages \texttt{inputenc}. It is always recommended to use UTF-8 character encoding and specify this choice also by the \emph{magic lines} at the beginning of the source code (see the examples in App.~\ref{sec:examples}). \item Respect the following thesis structure: @@ -354,90 +353,64 @@ first author surname: this order is very useful, contrary to the other typical o \end{itemize} +\clearpage +\section{Other useful commands} +\label{sec:usefulcommands} -\appendix - -\section{A very brief introduction to the \TeX\ world} - -Many people want to (or are compelled to) write in \LaTeX\ without studying -a basic manual. Here follows a very brief introduction to the \TeX\ world. - -\TeX, the document preparation system designed by Donald Knuth in 1978, is a program to typeset documents. -It is a mark-up language: you write a simple text decorated with \TeX\ commands (source code) which is then compiled to obtain the final product, a document in pdf format. -\LaTeX\ is just a set of macros, written in \TeX, to simplify the writing of the source code: it can be thought as a simpler programming language with respect to \TeX. A source code written in \LaTeX\ can be compiled by several ``compilers'': \texttt{pdflatex} (the most common), or \texttt{xelatex}, or others. - -The following list of \LaTeX\ manuals, may be especially useful for Italian authors. - -\begin{itemize} -\item \href{http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf}{\textsc{L. -Pantieri \& T. Gordini}, \textit{L'arte di scrivere con} \LaTeX, (2017)} - -\item \href{http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive} \LaTeX\ \textit{symbol list}, (2017)} - -\item \href{http://profs.sci.univr.it/~gregorio/breveguida.pdf}{\textsc{E. Gregorio}, \LaTeX\textit{: breve guida ai pacchetti di uso pi\`u comune}, (2010)} -\end{itemize} - -In order to use \LaTeX, you have to install a \TeX\ distribution. It contains the compilers, several fonts and other files needed by the compilers and also many \emph{packages}, which can be thought as libraries or extensions of \LaTeX. The most famous distributions are \href{http://miktex.org/}{MiKTeX} (available only for Windows), \href{http://www.tug.org/texlive/}{TeX Live} (available both for Windows and Linux) and \href{http://www.tug.org/mactex/2011/}{MacTeX} (available only for Mac OS). - -Finally we discuss the editor, that is the program used to write your source file. Since a source file written in \LaTeX, like in any other programming language, is a simple text file, you can write your code with any text editor you want (for example Notepad in Windows). However the suggested editors are: -\begin{itemize} -\item \href{http://tug.org/texworks/}{TeXworks}. Already installed with any \TeX\ distribution. Very simple and powerful. Use TeXworks if you are not an expert. Enrico Gregorio has written a very good and brief TeXworks manual in Italian, which can be found at: {\small \url{http://profs.sci.univr.it/~gregorio/introtexworks.pdf}}. - -\item \href{http://texstudio.sourceforge.net/}{TeXstudio} (cross-platform), \href{http://www.xm1math.net/texmaker/}{TeXmaker} (cross-platform), \href{http://pages.uoregon.edu/koch/texshop/}{TeXshop} (only for Mac), \href{http://kile.sourceforge.net/}{Kile} (only for Linux). Powerful editors. - -\item \textbf{Avoid} other editors unless you know what you are doing! - -\end{itemize} +\textsf{Sapthesis} provides several useful commands for scientific texts. -Finally we explain how to compile the example documents provided in the \textsf{sapthesis} package. Double click on one of the \texttt{.tex} file in the \texttt{examples} folder. -TeXworks should start showing the content of that file. -The \texttt{pdflatex} compiler should be automatically selected thanks to the \emph{magic lines} placed at the beginning of the file. -Now, in order to compile, press the green button. -At the end of the compilation the resulting pdf appears in a separate window. Remember to compile at least three times, because \LaTeX\ needs more than one compilation to correctly resolve the internal cross references (for example for the table of contents composition, or when you refer to a figure by the \texttt{\bs label}\,--\,\texttt{\bs ref}\,/\,\texttt{\bs pageref} mechanism). +\begin{description} +\item[\texttt{\bs eu}] Napier's number, $\mathrm{e}$, in roman. +\item[\texttt{\bs iu}] Imaginary unit, $\mathrm{i}$, in roman. +\item[\texttt{\bs der\{\dots\}\{\dots\}}] Derivative. The first argument represents the function to derive while the second the variables separated by commas. The differential symbol is automatically inserted. Examples: +\texttt{\bs der\{f\}\{x\}}, \texttt{\bs der\{f\}\{x,y\}}, \texttt{\bs der\{f\}\{*\{3\}\{x\}\}}, +\texttt{\bs der\{f\}\{*\{2\}\{x\},*\{2\}\{y\},z\}}. -\section{Using LyX} +\item[\texttt{\bs pder\{\dots\}\{\dots\}}] Partial derivative. Same syntax of the \texttt{\bs der} command. -LyX is an advanced \LaTeX\ editor which does not simply show the source code like any text editor, but instead it renders maths, images, tables and some text formatting commands. However this ``layer'' between the writer and the real source code is sometimes frustrating and many authors discourage the usage of LyX. +\item[\texttt{\bs rb\{\dots\}}] Roman suBscript -Using \textsf{sapthesis} with LyX is quite straightforward. -\begin{itemize} -\item -Install \textsf{sapthesis} by the package manager of your \TeX\ distribution or manually. +\item[\texttt{\bs rp\{\dots\}}] Roman suPerscript -\item -Copy the file \texttt{sapthesis.layout} in the directory\\ \texttt{C:\bs Program Files\bs Lyx20\bs Resources\bs layouts\bs}\\ and then, in LyX, click on \textsf{Tools > Reconfigure}. This will add the \textsf{sapthesis} class in the list of LyX available classes. +\item[\texttt{\bs tb\{\dots\}}] Text suBscript -\item -In LyX, first of all, go in \textsf{Tools > Preferences > Language Settings > Language} and choose ``none'' in Language package. This step is necessary because LyX not only loads babel with the desired language, but it passes the language also as an option for the class! This triggers an error in many classes. +\item[\texttt{\bs tp\{\dots\}}] Text suPerscript -\item -Create a new document and go in \textsf{Document > Settings > Document Class}. Here you can choose \textsf{sapthesis} as the class for the document and write the class options. +\item[\texttt{\bs un\{\dots\}}] Useful command to typeset measurement units in the correct way, e.g. \texttt{25\bs un\{m/s\}}, +\texttt{13\bs un\{kg\bs ,cm\^{}\{-3\}\}}. It can be used both inside or outside the math environment. +For heavy usage of measurement units and to insert numbers in the form +\texttt{1.4e-5}, the package \textsf{siunitx} is recommended. -\item -Write the preamble in \textsf{Document > Settings > LaTeX Preamble}. +\item[\texttt{\bs g}] Shortcut for the \texttt{\bs degree} command. Example: \texttt{45\bs g} produces 45\g. -\item Create the titlepage inserting the title by the \textsf{Title} item in the LyX left menu. +\item[\texttt{\bs C}] Shortcut for the \texttt{\bs celsius} command. Example: \texttt{37\bs ,\bs C} produces 37\,\C. (Not available in math mode compiling with \texttt{xelatex}). -\end{itemize} +\item[\texttt{\bs A}] Angstrom. Example: \texttt{10\bs ,\bs A} produces 10\,\A. -It is recommended to activate \textsf{View > Source Pane}. This step is not necessary but it is very useful to observe the \LaTeX\ code produced by LyX (on the right choose ``Complete source'' or ``Preamble''). +\item[\texttt{\bs micro}] Micro prefix. Example: \texttt{7\bs ,\bs micro m} produces 7\,\micro m. +\item[\texttt{\bs ohm}] Ohm. Example: \texttt{100\bs ,\bs ohm} produces 100\,\ohm. +\item[\texttt{\bs di}] Differential symbol with automatic spacing. Example: +\texttt{\$\bs int x \bs di x\$} produces $\int x \di x$. If you prefer the differential symbol in roman ($\mathrm{d}$), you can use the \texttt{romandiff} document class option. +\item[\texttt{\bs x}] Shortcut for the \texttt{\bs times} command. E.g.: \texttt{\$7 \bs x 10\^{}5\$} produces $7 \times 10^5$. +\end{description} \clearpage -\section{PhD thesis example} -\label{sec:PhDexample} +\section{Examples} +\label{sec:examples} +\subsection*{PhD thesis in English} \begin{lstlisting} % !TeX encoding = UTF-8 % !TeX program = pdflatex % !TeX spellcheck = en_US -\documentclass[binding=0.6cm,PhD]{sapthesis} +\documentclass[binding=0.6cm]{sapthesis} \usepackage{microtype} \usepackage{hyperref} @@ -446,14 +419,15 @@ It is recommended to activate \textsf{View > Source Pane}. This step is not nece \title{My thesis} \author{Francesco Biccari} \IDnumber{123456} -\course[Philology]{Filologia} +\course{Dottorato di Ricerca in Filologia} \courseorganizer{Scuola di Dottorato in Scienze Filologiche} -\cycle{XXII} -\submitdate{October 2009} -\copyyear{2009} +\cycle{XXXVII} +\AcademicYear{2021/2022} \advisor{Prof. Caio} -\advisor{Dr. Sempronio} +\coadvisor{Dr. Sempronio} \authoremail{pippo@pippo.com} +\copyyear{2022} +\thesistype{PhD thesis} \begin{document} @@ -483,15 +457,14 @@ This thesis deals with myself. \clearpage -\section[Laurea (Magistrale)\\ thesis example]{Laurea (Magistrale) thesis example} -\label{sec:LaMexample} +\subsection*{Master thesis (Laurea/Laurea Magistrale) in Italian} \begin{lstlisting} % !TeX encoding = UTF-8 % !TeX program = pdflatex % !TeX spellcheck = it_IT -\documentclass[binding=0.6cm,Lau]{sapthesis} % LaM for a Laurea Magistrale +\documentclass[binding=0.6cm]{sapthesis} \usepackage{microtype} \usepackage[italian]{babel} @@ -502,13 +475,14 @@ This thesis deals with myself. \title{La mia tesi} \author{Francesco Biccari} \IDnumber{123456} -\course{Fisica} +\course{Laurea Magistrale in Fisica} \courseorganizer{Facolt|\`a| di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2011/2012} -\copyyear{2012} +\AcademicYear{2021/2022} \advisor{Prof. Caio} -\advisor{Dr. Sempronio} -\authoremail{pippo@pippo.com} +\coadvisor{Dr. Sempronio} +\authoremail{francesco.biccari@pippo.com} +\copyyear{2022} +\thesistype{Tesi di Laurea Magistrale} \begin{document} @@ -538,49 +512,49 @@ Questa tesi parla di me. \clearpage -\section{TFA thesis example} -\label{sec:TFAexample} +\subsection*{Specialization thesis in English} \begin{lstlisting} % !TeX encoding = UTF-8 % !TeX program = pdflatex -% !TeX spellcheck = it_IT +% !TeX spellcheck = en_US -\documentclass[binding=0.6cm,TFA]{sapthesis} +\documentclass[binding=0.6cm]{sapthesis} \usepackage{microtype} -\usepackage[italian]{babel} +\usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{hyperref} -\hypersetup{pdftitle={La mia tesi},pdfauthor={Francesco Biccari}} +\hypersetup{pdftitle={My thesis},pdfauthor={Francesco Biccari}} -\title{La mia tesi} +\title{My thesis} \author{Francesco Biccari} \IDnumber{123456} -\course{A049 Matematica e Fisica} -\courseorganizer{Facolt|\`a| di Scienze Matematiche, Fisiche e Naturali} -\AcademicYear{2012/2013} -\copyyear{2013} +\course{Specializzazione in Fisica Medica} +\courseorganizer{Facolt|\`a| di Medicina e Chirurgia} +\AcademicYear{2021/2022} \advisor{Prof. Caio} -\tutor{Dr. Sempronio} -\tutorcoord{Dr. Sempronio} -\authoremail{pippo@pippo.com} - -\schoolname{Liceo Scientifico Louis Pasteur} -\schooladdress{Via G. Barellai 130, 00135 Roma} -\schoolwebsite{http://www.liceopasteur.it/} -\schoolprincipal{Prof. Diego Armando Maradona} +\coadvisor{Dr. Sempronio} +\director{Prof. Pippo} +\customdirectorlabel{Direttore della Scuola di Specializzazione} +\authoremail{francesco.biccari@pippo.com} +\copyyear{2022} +\thesistype{Specialization thesis} \begin{document} \frontmatter \maketitle -\dedication{Dedicato a\\ Donald Knuth} +\dedication{Dedicated to\\ Donald Knuth} + +\begin{abstract} +This thesis deals with myself. +\end{abstract} \tableofcontents \mainmatter -\chapter{Introduzione} +\chapter{Introduction} ... \backmatter @@ -593,57 +567,251 @@ Questa tesi parla di me. \end{document} \end{lstlisting} + +\appendix + +\section{A very brief introduction to the \TeX\ world} + +Many people want to (or are compelled to) write in \LaTeX\ without studying +a basic manual. Here follows a very brief introduction to the \TeX\ world. + +\TeX, the document preparation system designed by Donald Knuth in 1978, is a program to typeset documents. +It is a mark-up language: you write a simple text decorated with \TeX\ commands (source code) which is then compiled to obtain the final product, a document in pdf format. +\LaTeX\ is just a set of macros, written in \TeX, to simplify the writing of the source code: it can be thought as a simpler programming language with respect to \TeX. A source code written in \LaTeX\ can be compiled by several ``compilers'': \texttt{pdflatex} (the most common), or \texttt{xelatex}, or others. + +The following list of \LaTeX\ manuals, may be especially useful for Italian authors. + +\begin{itemize} +\item \href{http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf}{\textsc{L. +Pantieri \& T. Gordini}, \textit{L'arte di scrivere con} \LaTeX, (2017)} + +\item \href{http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive} \LaTeX\ \textit{symbol list}, (2021)} + +\item \href{http://profs.sci.univr.it/~gregorio/breveguida.pdf}{\textsc{E. Gregorio}, \LaTeX\textit{: breve guida ai pacchetti di uso pi\`u comune}, (2010)} +\end{itemize} + +In order to use \LaTeX, you have to install a \TeX\ distribution. It contains the compilers, several fonts and other files needed by the compilers and also many \emph{packages}, which can be thought as libraries or extensions of \LaTeX. The most famous distributions are \href{http://miktex.org/}{MiKTeX} (available only for Windows, Linux, and Mac), \href{http://www.tug.org/texlive/}{TeX Live} (available for Windows, Linux, and Mac) and \href{https://tug.org/mactex/}{MacTeX} (available only for Mac OS). + +Finally we discuss the editor, that is the program used to write your source file. Since a source file written in \LaTeX, like in any other programming language, is a simple text file, you can write your code with any text editor you want (for example Notepad in Windows). However the suggested editors are: +\begin{itemize} +\item \href{http://tug.org/texworks/}{TeXworks}. Already installed with any \TeX\ distribution. Very simple and powerful. Use TeXworks if you are not an expert. Enrico Gregorio has written a very good and brief TeXworks manual in Italian, which can be found at: {\small \url{http://profs.sci.univr.it/~gregorio/introtexworks.pdf}}. + +\item \href{http://texstudio.sourceforge.net/}{TeXstudio} (cross-platform), \href{http://www.xm1math.net/texmaker/}{TeXmaker} (cross-platform), \href{http://pages.uoregon.edu/koch/texshop/}{TeXshop} (only for Mac), \href{http://kile.sourceforge.net/}{Kile} (only for Linux). Powerful editors. + +\item \textbf{Avoid} other editors unless you know what you are doing! + +\end{itemize} + +Finally we explain how to compile the example documents provided in the \textsf{sapthesis} package. Double click on one of the \texttt{.tex} file in the \texttt{examples} folder. +TeXworks should start showing the content of that file. +The \texttt{pdflatex} compiler should be automatically selected thanks to the \emph{magic lines} placed at the beginning of the file. +Now, in order to compile, press the green button. +At the end of the compilation the resulting pdf appears in a separate window. Remember to compile at least three times, because \LaTeX\ needs more than one compilation to correctly resolve the internal cross references (for example for the table of contents composition, or when you refer to a figure by the \texttt{\bs label}\,--\,\texttt{\bs ref}\,/\,\texttt{\bs pageref} mechanism). + + +\subsection*{Using Overleaf} + +\href{https://www.overleaf.com/}{Overleaf} is a collaborative cloud-based online text editor, specifically designed for \LaTeX. The compilation of the source file is performed remotely on the Overleaf servers, by a TeXLive distribution. Therefore, using \textsf{sapthesis} in Overleaf is straightforward. You don't need to do anything, the package is already available. For any reason \textsf{sapthesis} is not available or the version present in Overleaf is outdated, just copy the files of \textsf{sapthesis } in your remote working directory in Overleaf. Local files have always precedence with respect to global files. + +\subsection*{Using LyX} + +\href{https://www.lyx.org/}{LyX} is an advanced \LaTeX\ editor which does not simply show the source code like any text editor, but instead it renders maths, images, tables and some text formatting commands. However this ``layer'' between the writer and the real source code is sometimes frustrating and many authors discourage the usage of LyX. + +Using \textsf{sapthesis} with LyX is quite straightforward. +\begin{itemize} +\item +Install \textsf{sapthesis} by the package manager of your \TeX\ distribution or manually. + +\item +Copy the file \texttt{sapthesis.layout} in the directory\\ \texttt{C:\bs Program Files\bs Lyx20\bs Resources\bs layouts\bs}\\ and then, in LyX, click on \textsf{Tools > Reconfigure}. This will add the \textsf{sapthesis} class in the list of LyX available classes. + +\item +In LyX, first of all, go in \textsf{Tools > Preferences > Language Settings > Language} and choose ``none'' in Language package. This step is necessary because LyX not only loads babel with the desired language, but it passes the language also as an option for the class! This triggers an error in many classes. + +\item +Create a new document and go in \textsf{Document > Settings > Document Class}. Here you can choose \textsf{sapthesis} as the class for the document and write the class options. + +\item +Write the preamble in \textsf{Document > Settings > LaTeX Preamble}. + +\item Create the titlepage inserting the title by the \textsf{Title} item in the LyX left menu. + +\end{itemize} + +It is recommended to activate \textsf{View > Source Pane}. This step is not necessary but it is very useful to observe the \LaTeX\ code produced by LyX (on the right choose ``Complete source'' or ``Preamble''). + + + + + + + + + \clearpage -\section{Other useful commands} -\label{sec:usefulcommands} +\section{Frequently Asked Questions} -\begin{description} -\item[\texttt{\bs eu}] Napier's number, $\mathrm{e}$, in roman. +\subsection{How can I increase the font size?} -\item[\texttt{\bs iu}] Imaginary unit, $\mathrm{i}$, in roman. +The default font used in \textsf{Sapthesis} is Latin Modern. The default font size is 11\,pt using A4 and 10\,pt using A5 and B5. At the moment it is impossible to change the font size unless you modify the \textsf{Sapthesis} class file (\texttt{sapthesis.cls}). The reason for this choice is to maintain a common format for all the theses. -\item[\texttt{\bs der\{\dots\}\{\dots\}}] Derivative. The first argument represents the function to derive while the second the variables separated by commas. The differential symbol is automatically inserted. Examples: -\texttt{\bs der\{f\}\{x\}}, \texttt{\bs der\{f\}\{x,y\}}, \texttt{\bs der\{f\}\{*\{3\}\{x\}\}}, -\texttt{\bs der\{f\}\{*\{2\}\{x\},*\{2\}\{y\},z\}}. -\item[\texttt{\bs pder\{\dots\}\{\dots\}}] Partial derivative. Same syntax of the \texttt{\bs der} command. +\subsection{How can I increase the line-spacing?} -\item[\texttt{\bs rb\{\dots\}}] Roman suBscript +The line-spacing in typography is defined as the distance between two lines. A strange ``tradition'' in Italy is to write the thesis with a double line-spacing. This is an incredibly large number. The lines are so separated that the effect is very ugly. Two reasons are behind this choice. The first one is that a lot of space is available for your professor to comment your text. The second one is that, in this way, the thesis is thicker. -\item[\texttt{\bs rp\{\dots\}}] Roman suPerscript +This effect is amplified when you use Microsoft Word because Word defines the line-spacing in a different way with respect to the typical definition. And usually people do not know that. Therefore, when you set the value of 2 for the line-spacing in Word, actually you obtain a line-spacing of 2.34 according to the normal definition of the term! (Word adds an extra 17\% of space, I do not know why). -\item[\texttt{\bs tb\{\dots\}}] Text suBscript +Of course this large value of the line-spacing is a nonsense. It is known in typography that the best value ranges between 1.20 and 1.45. In \LaTeX\ the default line-spacing is 1.20, which means that, if you use a font size of 10\,pt, the line-spacing is 12\,pt. In \textsf{Sapthesis} the line-spacing is set to 1.20. Nowadays, professors typically correct a thesis by using the comment tools of the their pdf viewer. There are still some who want to print it and want a double line-spacing. In that case, give them a copy with a double line-spacing but ask them to have the permission to print it in a more normal line-spacing, in order to save paper. -\item[\texttt{\bs tp\{\dots\}}] Text suPerscript +If you want to change the line-spacing, do not use the \texttt{\bs linespread} command. Load instead the \textsf{setspace} package and use, for example, the \texttt{\bs onehalfspacing} command. -\item[\texttt{\bs un\{\dots\}}] Useful command to typeset measurement units in the correct way, e.g. \texttt{25\bs un\{m/s\}}, -\texttt{13\bs un\{kg\bs ,cm\^{}\{-3\}\}}. It can be used both inside or outside the math environment. -For heavy usage of measurement units and to insert numbers in the form -\texttt{1.4e-5}, the package \textsf{siunitx} is recommended. -\item[\texttt{\bs mnote\{\dots\}}] Fancy margin notes -\item[\texttt{\bs g}] Shortcut for the \texttt{\bs degree} command. Example: \texttt{45\bs g} produces 45\g. +\subsection{Single sided or double sided printing?} -\item[\texttt{\bs C}] Shortcut for the \texttt{\bs celsius} command. Example: \texttt{37\bs ,\bs C} produces 37\,\C. (Not available in math mode compiling with \texttt{xelatex}). +A strange ``tradition'' in Italy is to print the theses only on one side of the paper sheets. In the past this was justified because a thesis was manually typed by a \href{https://en.wikipedia.org/wiki/Typewriter}{typewriter machine}. +Today, where the theses are all composed by a computer, this ``tradition'' is kept mainly because in this way the professors and the students are happy to see a thicker book. -\item[\texttt{\bs A}] Angstrom. Example: \texttt{10\bs ,\bs A} produces 10\,\A. +Of course this is a nonsense. Not only because the bulky effect is only aesthetic (if you open the thesis you can see that only one side is printed), but especially because it is a waste of paper. Moreover, reading a book where only the right page is printed is quite ugly and strange, isn't it? (Have you ever seen a book, containing mainly text, printed single sided?) -\item[\texttt{\bs micro}] Micro prefix. Example: \texttt{7\bs ,\bs micro m} produces 7\,\micro m. +The only real reason to print single sided is when a good paper is not available. Indeed, a low quality paper, like the one typically used for photocopies, has a grammage of 80\,g/m$^2$. It is a little bit semitransparent and this can be a problem when you print double sided, especially if you have many color images. The best approach is using a proper paper grammage of 90\,g/m$^2$ or 100\,g/m$^2$. Ask to the printing service which type of paper is more suitable to print your thesis double sided. -\item[\texttt{\bs ohm}] Ohm. Example: \texttt{100\bs ,\bs ohm} produces 100\,\ohm. -\item[\texttt{\bs di}] Differential symbol with automatic spacing.\\ Example: -\texttt{\$\bs int x \bs di x\$} produces $\int x \di x$. If you prefer the differential symbol in roman ($\mathrm{d}$) you can give the option \texttt{romandiff} in the document class options. +\subsection{Inverted margins? How much space for binding?} -\item[\texttt{\bs x}] Shortcut for the \texttt{\bs times} command. E.g.: \texttt{\$7 \bs x 10\^{}5\$} produces $7 \times 10^5$. +Another typical question regards the margins of the thesis. Quite often the students (and incredibly also the printing services) complain about the margins of the thesis. They think that the margins are reversed because in \LaTeX\ standard classes, by default, the inner margin is smaller than the outer margin. The same behaviour, but with slightly different proportions, is adopted in \textsf{Sapthesis} (see Figure\,\ref{layout}). Of course, they are wrong. This is the correct behavior! Indeed, as you can see in any book, the sum of the two inner margins should be more or less equal to the width of a single outer margin. This is for an aesthetic reason. Otherwise the two columns of text would be too much separated when the book is open. -\end{description} +\begin{figure}[!b] +\centering +\setlength{\unitlength}{0.12mm} +\begin{picture}(420,297)(-210,0) +\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0) +\Line(0,0)(0,297) +\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)} +\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)} +\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)} +\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)} +\end{picture} +\caption{A4 page layout scheme of \textsf{UniFiTh} class using a zero binding margin.} +\label{layout} +\end{figure} + + +At this point the students usually reply ``what about the binding margin? The inner margin should be larger because some space is used by the binding process!'' This is partially true. The effect described above in Figure\,\ref{layout} is what should happen \emph{after} the binding process. For this reason there is the documentclass \texttt{binding} option in \textsf{Sapthesis} (see Section\,\ref{class_options}). Typical values are 6 or 7\,mm but it is always preferable to ask the printing service which is the correct value according to the binding method (be careful because many printing services are not professional and suggest arbitrarly binding margin values). +\subsection{Numbered introduction and conclusions?} +There is a strange ``tradition'' in Italy to not attribute a number to the Introduction and Conclusions of a thesis. Probably, only because they are usually short chapters. So it seems that they do not deserve a proper number like any other chapter. +In my (and not only mine) opinion this is a nonsense. The Introduction and Conclusions chapters are part of the thesis, and they should be read to properly understand the thesis. They cannot be skipped. So why don't attribute a number to those chapters? +Therefore I suggest to use the following structure of the thesis (which is the same reported in the examples in Appendix \ref{sec:examples}). + +\begin{lstlisting} +... + +\frontmatter +\maketitle +... + +% The chapters after the mainmatter command are numbered +\mainmatter +\chapter{Introduction} +\chapter{...} +\chapter{...} +\chapter{...} +\chapter{Conclusions} + +\backmatter +... +\end{lstlisting} + +However, if you really want to follow the nonsense of not giving a number to the Introduction and Conclusions chapter, you can do it in the following way. But keep in mind that \emph{if you do not number the Introduction and Conclusions, you cannot insert any numbered equation, table, or picture in these chapters}. Indeed, all these objects are numbered with the chapter number: Fig.\,1.2, Tab.\,3.2, Eq.\,(4.1), etc. If the chapter does not have a number, how can we assign a number to Figures, Tables, or Equations? + +\begin{lstlisting} +... + +\frontmatter +\maketitle + +% The chapters after the mainmatter command are numbered +\mainmatter +\chapter*{Introduction} % The chapter* does not attribute a number +\markboth{Introduction}{} % This command is necessary for the headings +\chapter{...} +\chapter{...} +\chapter{...} +\chapter*{Conclusions} % The chapter* does not attribute a number +\markboth{Conclusions}{} % This command is necessary for the headings + +\backmatter +... +\end{lstlisting} + +Finally, it is worth noting that the first and last chapter of a thesis must not to be always called Introduction and Conclusions! + +\subsection{How to reduce the size of the pdf?} + +Usually, students do not optimize the images of their thesis. This is a very bad practice and one of the typical consequences is the excessive large size of the final pdf. The topic is too long to be covered here, however I want to provide a simple way to reduce \textit{a posteriori} the file size of the pdf. + +Using \href{https://www.ghostscript.com/}{Ghostscript} we can ``distill'' a pdf file, which means interpreting it and re-enconding it again. This is just a small list of possible commands (commands are intended for Windows 64 bit but they can easily applied to other operating systems changing the name of the Ghostscript executable): + +\begin{lstlisting} +BEST QUALITY (Flate image encoding) + +gswin64c.exe -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=output.pdf +-dAutoFilterColorImages=false -dAutoFilterGrayImages=false +-dColorImageFilter=/FlateEncode -dGrayImageFilter=/FlateEncode +-dPDFSETTINGS=/prepress -dCompatibilityLevel=1.5 input.pdf +\end{lstlisting} + +\begin{lstlisting} +BEST QUALITY (DECT image encoding) + +gswin64c.exe -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=output.pdf +-dPDFSETTINGS=/prepress -dCompatibilityLevel=1.5 input.pdf +\end{lstlisting} + +\begin{lstlisting} +LOWER QUALITY (DECT image encoding) +Substitute XXXXXXX with one of the following settings (order of descending quality): +/printer /ebook /screen + +gswin64c.exe -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=output.pdf +-dPDFSETTINGS=XXXXXXX -dCompatibilityLevel=1.5 input.pdf +\end{lstlisting} + +\subsection{How to create an archivable pdf?} + +\href{https://en.wikipedia.org/wiki/PDF/A}{PDF/A} is a particular PDF format, standardized by ISO, specialized for use in the archiving and long-term preservation of electronic documents. Public and private institutions, including universities, increasingly require this form to archive electronic documents. There are several levels of PDF/A. The suggested format for a thesis is the PDF/A-2b. + +The best and free way to check if a pdf file is compliant to one of the PDF/A levels is to use \href{https://verapdf.org/}{veraPDF}, an open source software supported by the most important PDF associations in the world and funded by the European Commission. This software is freely available for Windows, Linux, and Mac. + +A PDF/A file can be generated directly in \LaTeX, properly following some rules (see ``Creare file archiviabili con pdf\LaTeX\ e Lua\LaTeX'' by Claudio Beccari) however we do not have enough space to cover this topic here. +A faster way is to transform the file of the thesis in a PDF/A compliant pdf file using \href{https://www.ghostscript.com/}{Ghostscript}. Follow the following steps: + +\begin{enumerate} +\item Copy in your working directory an \texttt{icc} color profile. Since the pdf file will be viewed mainly on electronic screen, you can use a generic sRGB color profile. You can download one here: \url{https://www.color.org/srgbprofiles.xalter}. Rename it, for example, in \texttt{srgb.icc}. + +\item Copy a PostScript definition file, with the instructions to convert the file in PDF/A, in your working directory. This file, containing all the proper commands, can be found in your computer. +You can find it under the name \texttt{PDFA\_def.ps} in the \texttt{lib} folder of your Ghostscript installation directory (for example \texttt{C:\bs Program Files\bs gs\bs gs9.22\bs lib\bs}typically in the lib subfolder). Copy this file in your working directory and rename it! Let us suppose to rename it in \texttt{PDFArenamed.ps}. + +\item Modify the PostScript definition file. Open the \texttt{PDFArenamed.ps} file and specify the color profile (\texttt{srgb.icc}) and the title of your pdf file. To do that use the text editor you prefer. The variables to modify are intuitive and easily identifiable: \texttt{/ICCProfile} and \texttt{/Title}. + +\item Open a terminal and launch the following command +\begin{lstlisting} +gswin64.exe -q -dNOPAUSE -dBATCH -dNOSAFER +-sDEVICE=pdfwrite -sOutputFile=output.pdf +-dPDFA=2 -dPDFACompatibilityPolicy=1 +-sColorConversionStrategy=UseDeviceIndependentColor +-sProcessColorModel=DeviceRGB +PDFArenamed.ps input.pdf +\end{lstlisting} +\item Finally, control that the converted file correctly adheres to the PDF/A format using the VeraPDF software. + +\end{enumerate} \addtocontents{toc}{\protect\end{multicols}} \end{document} |