summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-12-04 23:35:09 +0000
committerKarl Berry <karl@freefriends.org>2015-12-04 23:35:09 +0000
commitc057b22ae349a7d9a35965f6d11446cd710c441c (patch)
tree59516ba2ead78f7c51631fe7dd527c645297203c /Master/texmf-dist
parent415295d7375d0e636b076fcb4ed92f4a877fd671 (diff)
sapthesis (4dec15)
git-svn-id: svn://tug.org/texlive/trunk@39014 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/README4
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex6
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex6
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex6
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex8
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex6
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex6
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdfbin179500 -> 227124 bytes
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex223
-rw-r--r--Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls68
10 files changed, 185 insertions, 148 deletions
diff --git a/Master/texmf-dist/doc/latex/sapthesis/README b/Master/texmf-dist/doc/latex/sapthesis/README
index 3e38b95ae67..38e07b53b86 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-2013 by Francesco Biccari.
+ Copyright (c) 2008-2015 by Francesco Biccari.
This work (specified below) may be distributed and/or
modified under the conditions of the
@@ -27,7 +27,7 @@
The "Sapienza - University of Rome" logo is a registered
trademark of "Sapienza" university. The logo can be used
only according to the "Protocollo per l'uso del
- marchio/logotipo e del sistema di identità visiva della
+ marchio/logotipo e del sistema di identità visiva della
Sapienza" document available, with other information,
at the following link (in italian):
http://www.uniroma1.it/ateneo/chi-siamo/identit%C3%A0-visiva-e-marchio
diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex
index edbf2252da5..6bddec4d07d 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex
+++ b/Master/texmf-dist/doc/latex/sapthesis/examples/Laurea.tex
@@ -1,6 +1,6 @@
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = it_IT
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = it_IT
\documentclass[Lau,binding=0.6cm]{sapthesis}
diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex
index 4be77e41543..938f879b62f 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex
+++ b/Master/texmf-dist/doc/latex/sapthesis/examples/LaureaMagistrale.tex
@@ -1,6 +1,6 @@
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = it_IT
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = it_IT
\documentclass[LaM,binding=0.6cm]{sapthesis}
diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex
index 1b1a3f04723..b615b1a10f7 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex
+++ b/Master/texmf-dist/doc/latex/sapthesis/examples/Master.tex
@@ -1,6 +1,6 @@
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = it_IT
+% !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''
diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex
index 6a62de2f6f8..cb7d76dd961 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex
+++ b/Master/texmf-dist/doc/latex/sapthesis/examples/PhD.tex
@@ -1,6 +1,6 @@
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = en_US
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = en_US
\documentclass[PhD,binding=0.6cm]{sapthesis}
@@ -184,7 +184,7 @@ In this manual you can skip the gray text because it is just dummy text.
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}
+\der{f}{x} \qquad \pder{f}{*{2}{x},y}
\end{equation}
diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex
index f80f90ec4ce..0a9fb6c318a 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex
+++ b/Master/texmf-dist/doc/latex/sapthesis/examples/Specialization.tex
@@ -1,6 +1,6 @@
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = en_US
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = en_US
\documentclass[Specialization,binding=0.6cm]{sapthesis}
diff --git a/Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex b/Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex
index 9892edbd2cc..ec0a1bb4799 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex
+++ b/Master/texmf-dist/doc/latex/sapthesis/examples/TFA.tex
@@ -1,6 +1,6 @@
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = it_IT
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = it_IT
\documentclass[TFA,oneside]{sapthesis}
diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf
index 0729b6b9913..0994b27bc66 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf
+++ b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex
index d5e21735c79..9afe86e72c7 100644
--- a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex
+++ b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex
@@ -1,6 +1,7 @@
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = en_US
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = en_US
+
\documentclass[a5paper,11pt]{article}
@@ -52,7 +53,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 3.7, 2013-07-20
+ \small \vspace{0.2cm} Version 3.8, 2015-12-04
}
\date{}
@@ -141,6 +142,7 @@ In those files the page layout and the layout choices are explained.
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}
+\label{requirements_installation}
The simplest way to install \textsf{sapthesis} is by the package manager of
your \TeX\ distribution (\TeX\ Live or MiK\TeX). For manual installation see
@@ -172,7 +174,7 @@ 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 (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:PhDexample} and~\ref{sec:LaMexample}.
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.
@@ -181,7 +183,7 @@ If your thesis contains only English or very few paragraphs in another language,
\subsection{Class options}
\label{class_options}
-The following options can be passed to the documentclass command.
+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.
@@ -203,13 +205,15 @@ The following options can be passed to the documentclass command.
\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}] Remove the final exam informations.
+\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): ``candidata'' instead of ``candidato''.
+\item[\texttt{fem}] Use the feminine (only Italian): shows ``candidata'' instead of ``candidato''.
\end{description}
\subsection[Commands for the\\ title page]{Commands for the title page}
@@ -229,8 +233,6 @@ in the preamble.
\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory.
-\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}}
-
\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 AcademicYear\{\dots\}}] Alias for \texttt{\bs submitdate}.
@@ -245,30 +247,33 @@ If you have more than one advisor, put several advisor commands in the correct o
\item[\texttt{\bs coadvisor\{\dots\}}] Optional. Co-advisors of the thesis.
Same syntax of the \texttt{\bs advisor} command.
-\item[\texttt{\bs tutor\{\dots\}} and \texttt{\bs tutorcoord\{\dots\}}] Only for TFA. Mandatory.
-
-\item[\texttt{\bs director\{\dots\}}] Only for Specialization. Mandatory.
-
\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 examdate\{\dots\}}] Optional. Date of the final exam.
-Use the form\\ \texttt{\bs examdate\{16 February 2010\}}.
+\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 ISBN\{\dots\}}] Optional. ISBN
+
+\item[\texttt{\bs examdate\{\dots\}}] Optional. Date of the final exam.\\
+Example: \texttt{\bs examdate\{16 February 2010\}}.
\item[\texttt{\bs examiner\{\dots\}}] Optional. Specifies the members of the
board of examiners of the final exam. Usage similar to \texttt{\bs advisor} command.
+\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}}
+
+\item[\texttt{\bs director\{\dots\}}] Only for Specialization. Mandatory.
+
+\item[\texttt{\bs tutor\{\dots\}} and \texttt{\bs tutorcoord\{\dots\}}] Only for TFA. Mandatory.
+
\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.
-\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 ISBN\{\dots\}}] Optional. ISBN
\end{description}
@@ -298,7 +303,7 @@ This color is switched to black if the \texttt{bn} option is in use. Example of
\item Do \textbf{not} change the default layout and do \textbf{not} use packages which can modify the layout of your thesis. However if you want to change the interline spacing, do not use the \texttt{\bs linespread} command. Load instead the \textsf{setspace} package and use the \texttt{\bs onehalfspacing} command.
-\item Do \textbf{not} load the following packages in the preamble of your document because already loaded by \textsf{sapthesis}: \textsf{xkeyval}, \textsf{geometry}, \textsf{ifxetex}, \textsf{xltxtra}, \textsf{fontenc}, \textsf{textcomp}, \textsf{lmodern}, \textsf{caption}, \textsf{graphicx}, \textsf{color}, \textsf{booktabs}, \textsf{amsmath}, \textsf{fancyhdr}.
+\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
@@ -327,7 +332,7 @@ is not very professional. The dedication should be enough.
\item Usually tables and figures are centered. Remember that, according to the typographic rules, the table captions should be placed \textbf{above} the table, whereas the figure caption should be placed \textbf{below} the figure.
\item If the figure has a small width, it is possible to put the figure caption
-aside the figure using the \texttt{sidecap} package (not preloaded in \texttt{sapthesis.cls}).
+aside the figure using the \texttt{sidecap} package (not preloaded by \textsf{sapthesis}).
\item Avoid the use of colors unless really necessary. Remember that the figures should be readable even if they are printed in gray scale!
@@ -335,51 +340,97 @@ aside the figure using the \texttt{sidecap} package (not preloaded in \texttt{sa
\item The name of operators should be typed in roman. Example: use $\sin$ (\texttt{\$\bs sin\$}) instead of $sin$ (\texttt{\$sin\$}).
-\item The margin notes are rarely used in scientific documents and should \textbf{not} be used in a thesis.
+\item The margin notes are rarely used in scientific documents and should \textbf{not} be used in a scientific thesis.
\item Do not divide the bibliography per chapter unless it is \textbf{really} necessary.
This will save you from wasting a lot of time to prepare your \LaTeX\ source code.
Order your bibliography alphabetically according to the
-first author surname: this order is very useful, contrary to the other typical order, the citation order. In this regard
-I recommend the usage of the \texttt{backref} package.
+first author surname: this order is very useful, contrary to the other typical order, the citation order.
\end{itemize}
+\appendix
+
+\section{A very brief introduction to the \TeX\ world}
-% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
-\addcontentsline{toc}{section}{\refname}
-\begin{thebibliography}{9}
-\item[]
-\hskip-\leftmargin
-\begin{minipage}{\textwidth}
Many people want to (or are compelled to) write in \LaTeX\ without studying
-a basic manual. Here follows a brief list of documents, especially useful for
-italian students.
-\end{minipage}
-\medskip
-\bibitem{Pantieri_Arte}
-\href{http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf}{\textsc{L.
-Pantieri \& T. Gordini}, \textit{L'arte di scrivere con \LaTeX}, (2012)}
+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, (2012)}
+
+\item \href{http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive} \LaTeX\ \textit{symbol list}, (2015)}
+
+\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/egtex.html}}.
+
+\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).
+
+
+
+\section{Using LyX}
+
+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'').
-\bibitem{Pakin_Symbol}
-\href{http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive \LaTeX\ symbol list}, (2009)}
-\bibitem{Gregorio_Pacchetti}
-\href{http://profs.sci.univr.it/~gregorio/breveguida.pdf}{\textsc{E. Gregorio}, \textit{\LaTeX: breve guida ai pacchetti di uso pi\`u comune}, (2010)}
-\end{thebibliography}
-\appendix
\clearpage
\section{PhD thesis example}
\label{sec:PhDexample}
\begin{lstlisting}
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = en_US
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = en_US
\documentclass[binding=0.6cm,PhD]{sapthesis}
@@ -431,9 +482,9 @@ This thesis deals with myself.
\label{sec:LaMexample}
\begin{lstlisting}
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = it_IT
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = it_IT
\documentclass[binding=0.6cm,Lau]{sapthesis} % LaM for a Laurea Magistrale
@@ -486,9 +537,9 @@ Questa tesi parla di me.
\label{sec:TFAexample}
\begin{lstlisting}
-% !TEX encoding = UTF-8
-% !TEX program = pdflatex
-% !TEX spellcheck = it_IT
+% !TeX encoding = UTF-8
+% !TeX program = pdflatex
+% !TeX spellcheck = it_IT
\documentclass[binding=0.6cm,TFA]{sapthesis}
@@ -546,9 +597,11 @@ Questa tesi parla di me.
\item[\texttt{\bs iu}] Imaginary unit, $\mathrm{i}$, in roman.
-\item[\texttt{\bs der[\dots]\{\dots\}\{\dots\}}] Derivative. The optional parameter is the order of the derivative. The following two arguments are the numerator and the denominator. The differential symbol is automatically inserted.
+\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\}\{\dots\}}] Partial derivative. Same as above
+\item[\texttt{\bs pder\{\dots\}\{\dots\}}] Partial derivative. Same syntax of the \texttt{\bs der} command.
\item[\texttt{\bs rb\{\dots\}}] Roman suBscript
@@ -583,62 +636,6 @@ For heavy usage of measurement units and to insert numbers in the form
\end{description}
-\section{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 macro language: you write a source text decorated with \TeX\ commands, which is then compiled to obtain the final product, a document in pdf format in our case.
-\LaTeX\ is just a set of macros written in \TeX\ to simplify the writing of the source text: you can think about it 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, (2012)}
-
-\item \href{http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive} \LaTeX\ \textit{symbol list}, (2009)}
-
-\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/egtex.html}}.
-
-\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 document provided in the \textsf{sapthesis} package. Double click on the file \texttt{sapthesis-example.tex}.
-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).
-
-
-
-\section{Using LyX}
-
-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
-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
-In LyX, go in \textsf{View > View Source}. This step is not necessary but it is very useful to observe the \LaTeX\ code produced by LyX (on the right choose ``Complete source'').
-
-\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}.
-\end{itemize}
-
-Now you are ready to use \textsf{sapthesis} in LyX.
-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. Then you have to write the preamble of the document in \textsf{Document > Settings > LaTeX Preamble}.
diff --git a/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
index 36442eba466..d776340f628 100644
--- a/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
+++ b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sapthesis.cls %%
-%% version 3.7 %%
-%% 2013-07-20 %%
+%% version 3.8 %%
+%% 2015-12-04 %%
%% author: Francesco Biccari %%
%% contact: biccari@gmail.com %%
%% %%
@@ -20,9 +20,9 @@
\NeedsTeXFormat{LaTeX2e}[2009/01/01]
\ProvidesClass{sapthesis}%
-[2013/07/20 Sapienza - University of Rome thesis class]
+[2015/12/04 Sapienza - University of Rome thesis class]
-\def\SAP@classVersion{3.7}
+\def\SAP@classVersion{3.8}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -836,14 +836,23 @@
\vspace*{1.5cm}
\fi
-\ifSAP@noexaminfo
+\ifSAP@noexaminfo\relax
\else
\if?\SAP@examdate?
- \SAP@ThesisNotDefensedLabel%
+ \ifcase\SAP@examinercount
+ \SAP@ThesisNotDefensedLabel%
+ \else
+ \ClassError{sapthesis}{You have specified one or more examiners but not
+ the date of the final exam}{E.g. \protect\examdate{17 July 2015}}
+ \fi
\else
- \SAP@ThesisDefensedLabelA\ \SAP@examdate\\
- \SAP@ThesisDefensedLabelB:\\[2mm]
- \the\SAP@examinertoks%
+ \ifcase\SAP@examinercount
+ \ClassError{sapthesis}{You have specified the final exam date but no examiner}{E.g. \protect\examiner{Prof. Giulio Cesare}}
+ \else
+ \SAP@ThesisDefensedLabelA\ \SAP@examdate\\
+ \SAP@ThesisDefensedLabelB:\\[2mm]
+ \the\SAP@examinertoks%
+ \fi
\fi
\fi
@@ -1043,6 +1052,7 @@
\ifxetex
\ProvideTextCommandDefault{\C}{\celsius}
\else
+
\providecommand{\C}{\celsius}
\fi
@@ -1081,11 +1091,41 @@
\providecommand{\di}{\mathop{}\!d}
\fi
- % derivative and partial derivative (only math)
- \providecommand*{\der}[3][]{\frac{d\if?#1?\else^{#1}\fi#2}{d #3\if?#1?\else^{#1}\fi}}
- \providecommand*{\pder}[3][]{%
- \frac{\partial\if?#1?\else^{#1}\fi#2}{\partial #3\if?#1?\else^{#1}\fi}%
- }
+ % derivative and partial derivative (only math)
+ % see http://www.guit.sssup.it/phpbb/viewtopic.php?p=42199#42199
+ \providecommand{\der}[2]{\begingroup
+ \@tempswafalse\toks@={}\count@=\z@
+ \@for\next:=#2\do
+ {\expandafter\check@var\next\@nil
+ \advance\count@\der@exp
+ \if@tempswa
+ \toks@=\expandafter{\the\toks@\,}%
+ \else
+ \@tempswatrue
+ \fi
+ \toks@=\expandafter{\the\expandafter\toks@\expandafter\partial\der@var}}%
+ \frac{\partial\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}%
+ \endgroup}
+ \def\check@var{\@ifstar{\mult@var}{\one@var}}
+ \def\mult@var#1#2\@nil{\def\der@var{#2^{#1}}\def\der@exp{#1}}
+ \def\one@var#1\@nil{\def\der@var{#1}\chardef\der@exp\@ne}
+
+ \providecommand{\pder}[2]{\begingroup
+ \@tempswafalse\toks@={}\count@=\z@
+ \@for\next:=#2\do
+ {\expandafter\check@var\next\@nil
+ \advance\count@\der@exp
+ \if@tempswa
+ \toks@=\expandafter{\the\toks@\,}%
+ \else
+ \@tempswatrue
+ \fi
+ \toks@=\expandafter{\the\expandafter\toks@\expandafter\partial\der@var}}%
+ \frac{\partial\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}%
+ \endgroup}
+ \def\check@var{\@ifstar{\mult@var}{\one@var}}
+ \def\mult@var#1#2\@nil{\def\der@var{#2^{#1}}\def\der@exp{#1}}
+ \def\one@var#1\@nil{\def\der@var{#1}\chardef\der@exp\@ne}
% subscript and superscript in text mode
\DeclareRobustCommand*\textsubscript[1]{\@textsubscript{\selectfont#1}}