summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sapthesis
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/tex/latex/sapthesis
parent415295d7375d0e636b076fcb4ed92f4a877fd671 (diff)
sapthesis (4dec15)
git-svn-id: svn://tug.org/texlive/trunk@39014 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sapthesis')
-rw-r--r--Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls68
1 files changed, 54 insertions, 14 deletions
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}}