diff options
author | Karl Berry <karl@freefriends.org> | 2021-10-04 20:29:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-10-04 20:29:29 +0000 |
commit | 473f0ee766a80f5e7aced8e5bb9b7678de58428a (patch) | |
tree | 4255d5400b2aa54f8e2ae63c84c94852fd5b648f /Master/texmf-dist | |
parent | 251f4fabc7d9e566ef91969154f94e3458796f83 (diff) |
unifith (4oct21)
git-svn-id: svn://tug.org/texlive/trunk@60698 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/unifith/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/unifith/examples/Dottorato.pdf | bin | 473006 -> 494976 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/unifith/examples/Dottorato.tex | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/unifith/examples/Laurea.pdf | bin | 476123 -> 497301 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/unifith/unifith-doc.pdf | bin | 218729 -> 349338 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/unifith/unifith-doc.tex | 238 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/unifith/unifith.cls | 463 |
7 files changed, 593 insertions, 117 deletions
diff --git a/Master/texmf-dist/doc/latex/unifith/README b/Master/texmf-dist/doc/latex/unifith/README index fba3c1a6d7a..b6639eca916 100644 --- a/Master/texmf-dist/doc/latex/unifith/README +++ b/Master/texmf-dist/doc/latex/unifith/README @@ -10,7 +10,7 @@ ** License ********************************************************** - Copyright (c) 2019 Francesco Biccari. + Copyright (c) 2021 Francesco Biccari. This work (specified below) may be distributed and/or modified under the conditions of the diff --git a/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.pdf b/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.pdf Binary files differindex 57a773b2b87..9418a14f525 100644 --- a/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.pdf +++ b/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.pdf diff --git a/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.tex b/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.tex index 5e5b9db8665..97124aa279b 100644 --- a/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.tex +++ b/Master/texmf-dist/doc/latex/unifith/examples/Dottorato.tex @@ -2,7 +2,7 @@ % !TeX program = pdflatex % !TeX spellcheck = en_US -\documentclass[binding=0.6cm]{unifith} +\documentclass[a4paper,binding=0.6cm]{unifith} \usepackage{microtype} \usepackage[english]{babel} @@ -19,7 +19,7 @@ % Commands for the titlepage \title{Usage example of the UniFiTh class\\ for a PhD thesis} -%\subtitle{Subtitle} +%\subtitle{Subtitle} \alttitle{Optional alternative or translated title} \author{Francesco Biccari} \IDnumber{1234567} @@ -42,8 +42,11 @@ \versiondate{\today} \ISBN{000000000-0} +\website{http://biccari.altervista.org} +\director{Prof. Name Surname} + \begin{document} \frontmatter diff --git a/Master/texmf-dist/doc/latex/unifith/examples/Laurea.pdf b/Master/texmf-dist/doc/latex/unifith/examples/Laurea.pdf Binary files differindex 5899b0eb6ff..c1a4faf50c6 100644 --- a/Master/texmf-dist/doc/latex/unifith/examples/Laurea.pdf +++ b/Master/texmf-dist/doc/latex/unifith/examples/Laurea.pdf diff --git a/Master/texmf-dist/doc/latex/unifith/unifith-doc.pdf b/Master/texmf-dist/doc/latex/unifith/unifith-doc.pdf Binary files differindex 1a0cdd73ac4..6abf6d864d8 100644 --- a/Master/texmf-dist/doc/latex/unifith/unifith-doc.pdf +++ b/Master/texmf-dist/doc/latex/unifith/unifith-doc.pdf diff --git a/Master/texmf-dist/doc/latex/unifith/unifith-doc.tex b/Master/texmf-dist/doc/latex/unifith/unifith-doc.tex index ee88dd0c28b..cc7e9e46aac 100644 --- a/Master/texmf-dist/doc/latex/unifith/unifith-doc.tex +++ b/Master/texmf-dist/doc/latex/unifith/unifith-doc.tex @@ -13,6 +13,7 @@ \usepackage[varg,cmintegrals,cmbraces]{newtxmath} \usepackage{microtype} \usepackage{graphicx} +\usepackage{curve2e} \usepackage{color} \definecolor{gray}{gray}{0.4} \definecolor{sfondoblu}{rgb}{0.94,0.97,1} @@ -25,7 +26,7 @@ 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,alttitle,thesistype}, + morekeywords={submitdate, cycle, courseorganizer, AcademicYear, copyyear, Faculty, course, PhDorganizer, IDnumber, advisor, examdate, examiner, authoremail, frontmatter, mainmatter, maketitle, tableofcontents, chapter, appendix, backmatter, dedication, selectlanguage,alttitle,thesistype,phantomsection}, columns=flexible } @@ -50,10 +51,10 @@ \newcommand{\bs}{\textbackslash} \newcommand{\sq}{\textquotesingle} -\author{\small Francesco Biccari\thanks{\href{mailto:biccari@gmail.com}{biccari@gmail.com}}} +\author{\small Francesco Biccari\\\small(\href{mailto:biccari@gmail.com}{biccari@gmail.com})} \title{\small Documentation of the \LaTeX\ class\\ \Large \textbf{\texttt{unifith.cls}}\\ - \small \vspace{0.2cm} Version 1.2, 2019-08-27 + \small \vspace{0.2cm} Version 1.6, 2021-10-01 } \date{} @@ -100,6 +101,8 @@ \providecommand*{\un}[1]{\ensuremath{\mathrm{\,#1}}} + \newcommand{\unifith}{\textsf{UniFiTh}} + \begin{document} \maketitle @@ -148,7 +151,7 @@ The \textsf{UniFiTh} package provides: the University of Florence (see next section); several usage examples. -\textsf{UniFiTh} explicitely loads the packages \textsf{xkeyval}, \textsf{etoolbox}, \textsf{geometry}, \textsf{ifxetex}, \textsf{xltxtra}, \textsf{fontenc}, \textsf{textcomp}, \textsf{lmodern}, \textsf{caption}, \textsf{graphicx}, \textsf{color}, \textsf{booktabs}, \textsf{amsmath}, \textsf{fancyhdr}. +\textsf{UniFiTh} explicitely loads the packages \textsf{xkeyval}, \textsf{etoolbox}, \textsf{geometry}, \textsf{ifxetex}, \textsf{fontspec}, \textsf{fontenc}, \textsf{textcomp}, \textsf{lmodern}, \textsf{caption}, \textsf{graphicx}, \textsf{color}, \textsf{booktabs}, \textsf{amsmath}, \textsf{fancyhdr}. Do \textbf{not} include these packages in the preamble of your document! @@ -182,6 +185,8 @@ The following options can be passed to the \texttt{\bs documentclass} command. \begin{description} +\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 those formats, paper not available, ...), it is possible to specify the A5 or B5 layout, maintaining the A4 paper format. In this case 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. @@ -206,55 +211,61 @@ in the preamble. \begin{description} \item[\texttt{\bs title\{\dots\}}] Mandatory. Title. -\item[\texttt{\bs subtitle\{\dots\}}] Optional. Subtitle (try to avoid a subtitle). +\item[\texttt{\bs subtitle\{\dots\}}] Optional. Subtitle (try to avoid a subtitle). An alias of this coomand is \texttt{\bs alttitle\{\dots\}} (alternative title). -\item[\texttt{\bs author\{\dots\}}] Mandatory. Author (student's name). +\item[\texttt{\bs author\{\dots\}}] Mandatory. Author (student's name). See the \texttt{fem} class option described in the previous section. \item[\texttt{\bs IDnumber\{\dots\}}] Mandatory. ID number (\textit{matricola} in Italian). \item[\texttt{\bs course\{\dots\}}] Mandatory. Use the official Italian name of the course. -\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory. Course organizer. - -\item[\texttt{\bs AcademicYear\{\dots\}}] Academic Year. +\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}} -\item[\texttt{\bs copyyear\{\dots\}}] Mandatory. Copyright year (usually the -graduation year). +\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory. Course organizer (for example Scuola di Scienze Matematiche Fisiche e Naturali). The usual \bs\bs can be use to break the lines. -\item[\texttt{\bs thesistype\{\dots\}}] Optional. Type of thesis (usually PhD thesis, Master thesis, and so on.). +\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 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 director\{\dots\}}] Optional. Director of the PhD program. Head of the Specialization degree. Same syntax of the \texttt{\bs advisor} command. -\item[\texttt{\bs ISBN\{\dots\}}] Optional. ISBN - -\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, \unifith\ 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\}}. \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. \end{description} @@ -284,7 +295,7 @@ Example of usage: \texttt{\bs textcolor\{unifiblue\}\{blah blah\}} \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{UniFiTh} (see Sec.~\ref{requirements_installation}). @@ -347,7 +358,7 @@ The following list of \LaTeX\ manuals, may be especially useful for Italian auth \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://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} @@ -395,12 +406,12 @@ At the end of the compilation the resulting pdf appears in a separate window. Re \course{Corso di Dottorato in Fisica e Astronomia} \courseorganizer{Dipartimento di Fisica e Astronomia} \cycle{Ciclo XXXII} +\advisor{Prof. Caio} +\advisor{Dr. Sempronio} \AcademicYear{2018/2019} \thesistype{PhD thesis} \copyyear{2020} -\advisor{Prof. Caio} -\advisor{Dr. Sempronio} \authoremail{pippo@pippo.com} \begin{document} @@ -436,7 +447,7 @@ This thesis deals with myself. \begin{lstlisting} % !TeX encoding = UTF-8 % !TeX program = pdflatex -% !TeX spellcheck = en_US +% !TeX spellcheck = it_IT \documentclass[binding=0.6cm]{unifith} @@ -452,12 +463,12 @@ This thesis deals with myself. \IDnumber{166350} \course{Corso di Laurea Magistrale in Fisica e Astronomia} \courseorganizer{Scuola di Scienze Matematiche, Fisiche e Naturali} +\advisor{Prof. Caio} +\advisor{Dr. Sempronio} \AcademicYear{2018/2019} \thesistype{Master thesis} \copyyear{2020} -\advisor{Prof. Caio} -\advisor{Dr. Sempronio} \authoremail{pippo@pippo.com} \begin{document} @@ -535,8 +546,165 @@ For heavy usage of measurement units and to insert numbers in the form \end{description} +\clearpage +\section{Frequently Asked Questions} + +\subsection{How can I increase the font size?} + +The default font used in \unifith\ 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 \unifith\ class file (\texttt{unifith.cls}). The reason for this choice is to maintain a common format for all the theses. + + +\subsection{How can I increase the line-spacing?} + +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. + +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). + +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 \unifith\ 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. + +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. + + + +\subsection{Single sided or double sided printing?} + +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. + +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?) + +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. + + +\subsection{Inverted margins? How much space for binding?} + +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 \unifith\ (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. + +\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 \unifith\ (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:PhDexample} and \ref{sec:LaMexample}). + +\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 TOPTesi \LaTeX\ class documentation 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}. First of all you need to copy two files in the same directory of the pdf file you want to convert. One file is an ICC color profile and the other one is a PostScript definition file containing some information needed by the convertion process. Let us start from the 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}. The PostScript definition file, already prepared for PDF/A file generation, can be found in the Ghostscript directory in your system (typically in the lib subfolder). Once copied (and RENAMED!) in your working directory, open it and modify the /ICCProfile variable, matching the name of the ICC color profile you downloaded, and the /Title variable, matching (reasonably) the title of your pdf. + +Then, 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} + + +%\subsection{Cover} +% +%In order to help the student to prepare the cover for the printing service, \unifith\ provides a class option \texttt{cover}. When this option is used, the thesis is not compiled, but the cover is generated as a single page pdf. This file is usually provided to the printing service to prepare the cover for the thesis. Of course the students can use their own cover or the cover provided by the printing services. \addtocontents{toc}{\protect\end{multicols}} diff --git a/Master/texmf-dist/tex/latex/unifith/unifith.cls b/Master/texmf-dist/tex/latex/unifith/unifith.cls index ea90f6ca6bf..5cf3fe13636 100644 --- a/Master/texmf-dist/tex/latex/unifith/unifith.cls +++ b/Master/texmf-dist/tex/latex/unifith/unifith.cls @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% unifith.cls %% -%% version 1.2 %% -%% 2019-08-27 %% +%% version 1.6 %% +%% date: see below %% %% author: Francesco Biccari %% %% contact: biccari@gmail.com %% %% %% @@ -20,9 +20,8 @@ \NeedsTeXFormat{LaTeX2e}[2009/01/01] \ProvidesClass{unifith}% -[2019/08/27 University of Florence thesis class] +[2021/10/01 University of Florence thesis class] -\def\UFI@classVersion{1.2} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -34,26 +33,42 @@ \newif\ifUFI@customlanguage \UFI@customlanguagefalse \newif\ifUFI@noexaminfo \UFI@noexaminfofalse \newif\ifUFI@femaleauthor \UFI@femaleauthorfalse +\def\UFI@paper{a4paper} +\def\UFI@layout{a4paper} +\def\UFI@fontsize{11pt} \define@key[ufi]{}{noexaminfo}[]{\UFI@noexaminfotrue} \define@key[ufi]{}{fem}[]{\UFI@femaleauthortrue} \define@key[ufi]{}{nodefaultfont}[]{\UFI@nodefaultfonttrue} \define@key[ufi]{}{romandiff}[]{\UFI@romandifftrue} \define@key[ufi]{}{binding}[0pt]{\setlength{\UFI@binding}{#1}} -\define@key[ufi]{}{draft}[]{\PassOptionsToClass{draft}{book}} +\define@key[ufi]{}{draft}[]{% +\PassOptionsToClass{draft}{book}% +%\PassOptionsToPackage{showframe}{geometry} +} \define@key[ufi]{}{oneside}[]{\PassOptionsToClass{oneside}{book}} \define@key[ufi]{}{twoside}[]{} +\define@key[ufi]{}{a4paper}[]{\def\UFI@paper{a4paper}} +\define@key[ufi]{}{a5paper}[]{% +\def\UFI@paper{a5paper}\def\UFI@layout{a5paper}\def\UFI@fontsize{10pt}} +\define@key[ufi]{}{b5paper}[]{% +\def\UFI@paper{b5paper}\def\UFI@layout{b5paper}\def\UFI@fontsize{10pt}} +\define@choicekey[ufi]{}{layout}[]{a4paper,a5paper,b5paper}[]{% +\def\UFI@layout{#1}\def\UFI@fontsize{10pt}} \DeclareOptionX*{\ClassError{unifith}{Option '\CurrentOption'% \MessageBreak is not valid}{Remove '\CurrentOption' % from class options}} \ProcessOptionsX[ufi]<> -\LoadClass[a4paper,11pt]{book} - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Page layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\RequirePackage[a4paper]{geometry} +\LoadClass[\UFI@paper,\UFI@fontsize]{book} +\RequirePackage[\UFI@paper]{geometry} + +% A4 +\def\UFI@layoutname{a4paper} +\ifx\UFI@layout\UFI@layoutname % \geometry{textwidth=396pt, textheight=641pt, marginparsep=12pt, @@ -62,9 +77,43 @@ includehead, marginparwidth=72pt, heightrounded} - \if@twoside\geometry{hmarginratio=55:89}\fi +\fi +% A5 +\def\UFI@layoutname{a5paper} +\ifx\UFI@layout\UFI@layoutname % +\geometry{textwidth=300pt, + textheight=485pt, + marginparsep=12pt, + bindingoffset=\UFI@binding, + vmarginratio=55:89, + includehead, + marginparwidth=42pt, + heightrounded} +\if@twoside\geometry{hmarginratio=55:89}\fi +\def\UFI@papername{a4paper} +\ifx\UFI@paper\UFI@papername% +\geometry{layout=\UFI@layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi +\fi + +% B5 +\def\UFI@layoutname{b5paper} +\ifx\UFI@layout\UFI@layoutname % +\geometry{textwidth=340pt, + textheight=550pt, + marginparsep=12pt, + bindingoffset=\UFI@binding, + vmarginratio=55:89, + includehead, + marginparwidth=42pt, + heightrounded} +\if@twoside\geometry{hmarginratio=55:89}\fi +\def\UFI@papername{a4paper} +\ifx\UFI@paper\UFI@papername% +\geometry{layout=\UFI@layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi +\fi + @@ -72,7 +121,7 @@ %% Some settings%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \RequirePackage{ifxetex} \ifxetex - \RequirePackage{xltxtra} + \RequirePackage{fontspec} \else \ifUFI@nodefaultfont\relax\else \RequirePackage[T1]{fontenc} @@ -117,7 +166,7 @@ \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0pt}} -%% ri-definition of the plain style (first page of the chapters) +%% re-definition of the plain style (first page of the chapters) \fancypagestyle{plain}{% \renewcommand{\headrulewidth}{0pt} \fancyhf{} @@ -132,24 +181,22 @@ \g@addto@macro\frontmatter{\pagestyle{UFI@mainstyle}} \g@addto@macro\mainmatter{\pagestyle{UFI@mainstyle}} -% fancy marginnote (not activated yet) -% commands to redefine the marginpar command -% maybe in future I will remove the mnote command? -%\def \@marginparreset {% -% \reset@font -% \footnotesize -% \itshape -% \@setminipage -%} -%\long\def\@xmpar[#1]#2{% -% \@savemarbox\@marbox{\raggedleft #1}% -% \@savemarbox\@currbox{\raggedright #2}% -% \@xympar} -%\long\def\@ympar#1{% -% \@savemarbox\@marbox{\raggedleft #1}% -% \@savemarbox\@currbox{\raggedright #1}% -% \@xympar} -% +% fancy marginnote +% redefine the marginpar command +\def \@marginparreset {% + \reset@font + \small + \itshape + \@setminipage +} +\long\def\@xmpar[#1]#2{% + \@savemarbox\@marbox{\raggedleft #1}% + \@savemarbox\@currbox{\raggedright #2}% + \@xympar} +\long\def\@ympar#1{% + \@savemarbox\@marbox{\raggedleft #1}% + \@savemarbox\@currbox{\raggedright #1}% + \@xympar} @@ -169,7 +216,10 @@ % logo \newif\ifUFI@unifilogo \UFI@unifilogofalse -\IfFileExists{unifilogo.pdf}{\UFI@unifilogotrue}{\RequirePackage{hyperref}} +\IfFileExists{unifilogo.pdf}{\UFI@unifilogotrue}{% +\ClassWarningNoLine{unifith}{Logo not found! You have to download it +manually. See the documentation or just the frontispiece.} +\RequirePackage{hyperref}} @@ -210,17 +260,17 @@ %% Co-Advisors or External Advisor \newcount\UFI@coadvisorcount \newtoks\UFI@coadvisortoks -\newif\ifUFI@ext \UFI@extfalse -\newcommand{\coadvisor}[2][]{% +\newcommand{\coadvisor}[1]{% \ifnum\UFI@coadvisorcount=\z@ - \UFI@coadvisortoks={#2}% + \UFI@coadvisortoks={#1}% \else - \UFI@coadvisortoks=\expandafter{\the\UFI@coadvisortoks\\[0.75mm]#2}% + \UFI@coadvisortoks=\expandafter{\the\UFI@coadvisortoks\\[0.75mm]#1}% \fi - \advance\UFI@coadvisorcount\@ne - \ifstrequal{#1}{ext}{\UFI@exttrue}{}} - + \advance\UFI@coadvisorcount\@ne} +\newcommand{\customcoadvisorlabel}[1]{% + \newcommand{\UFI@ThesisCoAdvisorLabel}{#1} + \newcommand{\UFI@ThesisCoAdvisorsLabel}{#1}} %% Reviewers \def\UFI@ReviewerLabel{} @@ -249,6 +299,9 @@ \fi \advance\UFI@directorcount\@ne} +\newcommand{\customdirectorlabel}[1]{% + \newcommand{\UFI@ThesisDirectorLabel}{#1} + \newcommand{\UFI@ThesisDirectorsLabel}{#1}} %% Examiners \newcount\UFI@examinercount @@ -287,37 +340,21 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% maketitle -\newcommand{\UFI@maketitleGeneral}{ - -% Errors: - -\if|\UFI@courseorganizerLabel|\ClassError{unifith}{You must specify the course % - organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi -\if|\UFI@courseLabel|\ClassError{unifith}{You must specify the % - course}{Example: \protect\course{Corso di Laurea Magistrale in Fisica}}\fi -\if|\UFI@submitdate|\ClassError{unifith}{You must specify the % - thesis submission date}{Example: \protect\submitdate{August 2012} The date must be in the form Month(name) Year(number)}\fi -\if|\UFI@copyyear|\ClassError{unifith}{You must specify the % - copyright year}{Example: \protect\copyyear{2012}}\fi -\if|\UFI@IDnumber|\ClassError{unifith}{You must specify your % - ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi -\if|\UFI@authoremail|\ClassError{unifith}{You must specify the email of the author}{% - Example: \protect\authoremail{author@email.com}}\fi - -% Titlepage: +\newcommand{\UFI@maketitleA}{ \begin{titlepage} \linespread{1}\selectfont - - % questa parbox forse è meglio eliminarla sostituendola con qualcosa di più semplice e che scali verticalmente. - % infatti se metto tanti relatori, si sovrappone tutto. - \newcommand{\UFI@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}} + \newlength{\UFI@parboxindent} + \newlength{\UFI@parboxwidth} + \setlength{\UFI@parboxindent}{1.72cm} + \setlength{\UFI@parboxwidth}{\dimexpr\textwidth-\UFI@parboxindent\relax} + \newcommand{\UFI@parbox}[2][]{\hspace{\UFI@parboxindent}% + \parbox[t][##1][t]{\UFI@parboxwidth}{##2}} \parindent=0pt \sffamily \vspace*{-25mm} - %\hspace{-1cm}\includegraphics[width=6.5cm]{unifilogo} \ifUFI@unifilogo \parbox[b][3cm][c]{0.49\linewidth}{\hspace{-1cm}\includegraphics[width=6.5cm]{unifilogo.pdf}} @@ -364,8 +401,6 @@ \vspace{\stretch{1}} - - \UFI@parbox{% \ifUFI@femaleauthor \textbf{\bfseries\UFI@CandidateLabelFemale}\\[1.5mm] @@ -378,6 +413,7 @@ \vspace*{1cm} \UFI@parbox{% + \parbox[t]{0.59\UFI@parboxwidth}{% \ifcase\UFI@advisorcount \ClassError{unifith}{You must specify at least one advisor in the preamble}% {E.g. \protect\advisor{Prof. Name Surname}} @@ -386,7 +422,29 @@ \else \textbf{\bfseries\UFI@ThesisAdvisorsLabel}\\[2mm] \fi - \the\UFI@advisortoks + \the\UFI@advisortoks} + \hfill + \parbox[t]{0.39\UFI@parboxwidth}{% + \ifcase\UFI@directorcount + \relax + \or + \textbf{\bfseries\UFI@ThesisDirectorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisDirectorsLabel}\\[2mm] + \fi + \the\UFI@directortoks} + } + + \vspace{1cm} + + \UFI@parbox{% + \ifcase\UFI@coadvisorcount\relax + \or + \textbf{\bfseries\UFI@ThesisCoAdvisorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisCoAdvisorsLabel}\\[2mm] + \fi + \the\UFI@coadvisortoks } \vspace*{1cm} @@ -394,11 +452,235 @@ \UFI@parbox{\raisebox{-0.5cm}[0pt][0pt]{\UFI@AcademicYearLabel\ \UFI@submitdate}} \end{titlepage} -\clearpage -\UFI@composebacktitlepage } +\newcommand{\UFI@maketitleB}{ + + \begin{titlepage} + \newlength{\UFI@parboxindent} + \newlength{\UFI@parboxwidth} + \linespread{1}\selectfont + \setlength{\UFI@parboxindent}{0.85cm} + \setlength{\UFI@parboxwidth}{\dimexpr\textwidth-\UFI@parboxindent\relax} + \newcommand{\UFI@parbox}[2][]{\hspace{\UFI@parboxindent}% + \parbox[t][##1][t]{\UFI@parboxwidth}{##2}} + \parindent=0pt + \sffamily + + \vspace*{-20mm} + %\hspace{-1cm}\includegraphics[width=6.5cm]{unifilogo} + + \ifUFI@unifilogo + \parbox[b][3cm][c]{0.39\linewidth}{\hspace{-1cm}\includegraphics[width=4.5cm]{unifilogo.pdf}} + \else + \parbox[b][3cm][c]{0.39\linewidth}{%\hspace{-1cm} + \setlength{\unitlength}{1mm} + \begin{picture}(45,27.3)(0,0) + \footnotesize + \put(0,0){\framebox(52,27.3)[0,0]{}} + \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}} + \put(2,18){\makebox(0,0)[l]{UniFi logo not found!}} + \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/unifilogo.pdf}{Click here to download the UniFi logo}} + \put(2,5.5){Then copy unifilogo.pdf in the folder} + \put(2,1.5){of your main .tex file.} + \end{picture} + } + \fi + \hfill + \parbox[b][3cm][c]{0.49\linewidth}{% + \raggedleft + \normalfont\footnotesize\scshape + \textsc{\UFI@courseorganizerLabel}\\[2mm] + \UFI@courseLabel + \if?\UFI@cycle?\relax\else\\\UFI@cycle\fi + } + + \nointerlineskip + \vspace{\stretch{0.5}} + \nointerlineskip + + \UFI@parbox{\LARGE\@title\par} + + \if|\UFI@subtitle| + \if|\UFI@alttitle| + \relax + \else + \vspace*{1.5cm} + \UFI@parbox{\LARGE\UFI@alttitle\par} + \fi + \else + \vspace{0.4cm} + \UFI@parbox{\linespread{1.2}\selectfont\large\UFI@subtitle\par} + \fi + + \vspace{\stretch{1}} + + \UFI@parbox{% + \ifUFI@femaleauthor + \textbf{\bfseries\UFI@CandidateLabelFemale}\\[1.5mm] + \else + \textbf{\bfseries\UFI@CandidateLabel}\\[1.5mm] + \fi + \@author\hspace{0.2cm} (\UFI@IDnumberLabel\ \UFI@IDnumber) + } + + \vspace*{1cm} + \UFI@parbox{% + \parbox[t]{0.59\UFI@parboxwidth}{% + \ifcase\UFI@advisorcount + \ClassError{unifith}{You must specify at least one advisor in the preamble}% + {E.g. \protect\advisor{Prof. Name Surname}} + \or + \textbf{\bfseries\UFI@ThesisAdvisorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisAdvisorsLabel}\\[2mm] + \fi + \the\UFI@advisortoks} + \hfill + \parbox[t]{0.39\UFI@parboxwidth}{% + \ifcase\UFI@directorcount + \relax + \or + \textbf{\bfseries\UFI@ThesisDirectorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisDirectorsLabel}\\[2mm] + \fi + \the\UFI@directortoks} + } + + \vspace{1cm} + + \UFI@parbox{% + \ifcase\UFI@coadvisorcount\relax + \or + \textbf{\bfseries\UFI@ThesisCoAdvisorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisCoAdvisorsLabel}\\[2mm] + \fi + \the\UFI@coadvisortoks} + + \vspace*{1.5cm} + + \UFI@parbox{\raisebox{0cm}[0pt][0pt]{\UFI@AcademicYearLabel\ \UFI@submitdate}} + + \end{titlepage} +} + + +\newcommand{\UFI@maketitleC}{ + + \begin{titlepage} + + \linespread{1}\selectfont + \newlength{\UFI@parboxindent} + \newlength{\UFI@parboxwidth} + \setlength{\UFI@parboxindent}{0.85cm} + \setlength{\UFI@parboxwidth}{\dimexpr\textwidth-\UFI@parboxindent\relax} + \newcommand{\UFI@parbox}[2][]{\hspace{\UFI@parboxindent}% + \parbox[t][##1][t]{\UFI@parboxwidth}{##2}} + \parindent=0pt + \sffamily + + \vspace*{-20mm} + %\hspace{-1cm}\includegraphics[width=6.5cm]{unifilogo} + + \ifUFI@unifilogo + \parbox[b][3cm][c]{0.39\linewidth}{\hspace{-1cm}\includegraphics[width=4.5cm]{unifilogo.pdf}} + \else + \parbox[b][3cm][c]{0.39\linewidth}{%\hspace{-1cm} + \setlength{\unitlength}{1mm} + \begin{picture}(45,27.3)(0,0) + \footnotesize + \put(0,0){\framebox(52,27.3)[0,0]{}} + \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}} + \put(2,18){\makebox(0,0)[l]{UniFi logo not found!}} + \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/unifilogo.pdf}{Click here to download the UniFi logo}} + \put(2,5.5){Then copy unifilogo.pdf in the folder} + \put(2,1.5){of your main .tex file.} + \end{picture} + } + \fi + \hfill + \parbox[b][3cm][c]{0.49\linewidth}{% + \raggedleft + \normalfont\footnotesize\scshape + \textsc{\UFI@courseorganizerLabel}\\[2mm] + \UFI@courseLabel + \if?\UFI@cycle?\relax\else\\\UFI@cycle\fi + } + + \nointerlineskip + \vspace{\stretch{0.5}} + \nointerlineskip + + \UFI@parbox{\LARGE\@title\par} + + \if|\UFI@subtitle| + \if|\UFI@alttitle| + \relax + \else + \vspace*{1.5cm} + \UFI@parbox{\LARGE\UFI@alttitle\par} + \fi + \else + \vspace{0.4cm} + \UFI@parbox{\linespread{1.2}\selectfont\large\UFI@subtitle\par} + \fi + + \vspace{\stretch{1}} + + \UFI@parbox{% + \ifUFI@femaleauthor + \textbf{\bfseries\UFI@CandidateLabelFemale}\\[1.5mm] + \else + \textbf{\bfseries\UFI@CandidateLabel}\\[1.5mm] + \fi + \@author\hspace{0.2cm} (\UFI@IDnumberLabel\ \UFI@IDnumber) + } + + \vspace*{1cm} + \UFI@parbox{% + \parbox[t]{0.59\UFI@parboxwidth}{% + \ifcase\UFI@advisorcount + \ClassError{unifith}{You must specify at least one advisor in the preamble}% + {E.g. \protect\advisor{Prof. Name Surname}} + \or + \textbf{\bfseries\UFI@ThesisAdvisorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisAdvisorsLabel}\\[2mm] + \fi + \the\UFI@advisortoks} + \hfill + \parbox[t]{0.39\UFI@parboxwidth}{% + \ifcase\UFI@directorcount + \relax + \or + \textbf{\bfseries\UFI@ThesisDirectorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisDirectorsLabel}\\[2mm] + \fi + \the\UFI@directortoks} + } + + \vspace{1cm} + + \UFI@parbox{% + \ifcase\UFI@coadvisorcount\relax + \or + \textbf{\bfseries\UFI@ThesisCoAdvisorLabel}\\[2mm] + \else + \textbf{\bfseries\UFI@ThesisCoAdvisorsLabel}\\[2mm] + \fi + \the\UFI@coadvisortoks} + + \vspace*{1.5cm} + + \UFI@parbox{\raisebox{0cm}[0pt][0pt]{\UFI@AcademicYearLabel\ \UFI@submitdate}} + + \end{titlepage} +} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Macro for the back of the title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -483,8 +765,35 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Choosing the right \maketitle according to the thesis type %%%%%%% -\renewcommand{\maketitle}{\UFI@maketitleGeneral} - +\renewcommand{\maketitle}{% +% Errors: +\if|\UFI@courseorganizerLabel|\ClassError{unifith}{You must specify the course % + organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi +\if|\UFI@courseLabel|\ClassError{unifith}{You must specify the % + course}{Example: \protect\course{Corso di Laurea Magistrale in Fisica}}\fi +\if|\UFI@submitdate|\ClassError{unifith}{You must specify the % + thesis submission date}{Example: \protect\submitdate{August 2012} The date must be in the form Month(name) Year(number)}\fi +\if|\UFI@copyyear|\ClassError{unifith}{You must specify the % + copyright year}{Example: \protect\copyyear{2012}}\fi +\if|\UFI@IDnumber|\ClassError{unifith}{You must specify your % + ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi +\if|\UFI@authoremail|\ClassError{unifith}{You must specify the email of the author}{% + Example: \protect\authoremail{author@email.com}}\fi +%titlepage +\def\UFI@layoutname{a4paper} +\ifx\UFI@layout\UFI@layoutname +\UFI@maketitleA +\fi +\def\UFI@layoutname{a5paper} +\ifx\UFI@layout\UFI@layoutname +\UFI@maketitleB +\fi +\def\UFI@layoutname{b5paper} +\ifx\UFI@layout\UFI@layoutname +\UFI@maketitleC +\fi +\clearpage +\UFI@composebacktitlepage} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -522,12 +831,10 @@ \newcommand{\UFI@IDnumberLabel}{ID number} \newcommand{\UFI@ThesisAdvisorLabel}{Thesis Advisor} \newcommand{\UFI@ThesisAdvisorsLabel}{Thesis Advisors} - \newcommand{\UFI@ThesisCoAdvisorLabel}{Co-Advisor} - \newcommand{\UFI@ThesisCoAdvisorsLabel}{Co-Advisors} - \newcommand{\UFI@ThesisExtAdvisorLabel}{External Advisor} - \newcommand{\UFI@ThesisExtAdvisorsLabel}{External Advisors} - \newcommand{\UFI@ThesisDirectorLabel}{Director} - \newcommand{\UFI@ThesisDirectorsLabel}{Directors} + \providecommand{\UFI@ThesisCoAdvisorLabel}{Co-Advisor} + \providecommand{\UFI@ThesisCoAdvisorsLabel}{Co-Advisors} + \providecommand{\UFI@ThesisDirectorLabel}{Director} + \providecommand{\UFI@ThesisDirectorsLabel}{Directors} \newcommand{\UFI@AcademicYearLabel}{Academic Year} \newcommand{\UFI@ThesisNotDefensedLabel}{Thesis not yet defended} \newcommand{\UFI@ThesisDefensedLabelA}{Thesis defended on} @@ -554,12 +861,10 @@ \newcommand{\UFI@IDnumberLabel}{Matricola} \newcommand{\UFI@ThesisAdvisorLabel}{Relatore} \newcommand{\UFI@ThesisAdvisorsLabel}{Relatori} - \newcommand{\UFI@ThesisCoAdvisorLabel}{Correlatore} - \newcommand{\UFI@ThesisCoAdvisorsLabel}{Correlatori} - \newcommand{\UFI@ThesisExtAdvisorLabel}{Relatore esterno} - \newcommand{\UFI@ThesisExtAdvisorsLabel}{Relatori esterni} - \newcommand{\UFI@ThesisDirectorLabel}{Direttore} - \newcommand{\UFI@ThesisDirectorsLabel}{Direttori} + \providecommand{\UFI@ThesisCoAdvisorLabel}{Correlatore} + \providecommand{\UFI@ThesisCoAdvisorsLabel}{Correlatori} + \providecommand{\UFI@ThesisDirectorLabel}{Direttore} + \providecommand{\UFI@ThesisDirectorsLabel}{Direttori} \newcommand{\UFI@AcademicYearLabel}{Anno Accademico} \newcommand{\UFI@ThesisNotDefensedLabel}{Tesi non ancora discussa} \newcommand{\UFI@ThesisDefensedLabelA}{Tesi discussa il} |