summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-13 23:16:05 +0000
committerKarl Berry <karl@freefriends.org>2011-09-13 23:16:05 +0000
commit7acf90d374f147ba3f73726c03c086049648d7a1 (patch)
tree6dcef1908b9c8854db3da93e17f93a660a5cbf99
parent1993bf742a4a04e823f0bbe5d8b90a6d103709f2 (diff)
sapthesis (13sep11)
git-svn-id: svn://tug.org/texlive/trunk@23939 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/bibtex/bst/sapthesis/sapthesis.bst1778
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/README.TEXLIVE8
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/README.sapthesis95
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdfbin0 -> 141964 bytes
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex506
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.pdfbin0 -> 386553 bytes
-rw-r--r--Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.tex259
-rw-r--r--Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls821
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check3
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds3
-rw-r--r--Master/tlpkg/tlpsrc/collection-publishers.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/sapthesis.tlpsrc0
12 files changed, 3472 insertions, 2 deletions
diff --git a/Master/texmf-dist/bibtex/bst/sapthesis/sapthesis.bst b/Master/texmf-dist/bibtex/bst/sapthesis/sapthesis.bst
new file mode 100644
index 00000000000..ddd5ffb93a4
--- /dev/null
+++ b/Master/texmf-dist/bibtex/bst/sapthesis/sapthesis.bst
@@ -0,0 +1,1778 @@
+%%
+%% This is file `sapthesis.bst',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% merlin.mbs (with options: `head,exlang,nm-rev,jnrlst,nmlm,x9,m1,nmft,nmft-sc,yr-par,xmth,vol-bf,vnum-x,volp-com,jdt-vs,jpg-1,num-xser,isbn,edpar,edby-par,english,pp,ed,abr,xedn,nfss,,{}')
+%% english.mbs (with options: `exlang,nm-rev,jnrlst,nmlm,x9,m1,nmft,nmft-sc,yr-par,xmth,vol-bf,vnum-x,volp-com,jdt-vs,jpg-1,num-xser,isbn,edpar,edby-par,english,pp,ed,abr,xedn,nfss,,{}')
+%% merlin.mbs (with options: `tail,exlang,nm-rev,jnrlst,nmlm,x9,m1,nmft,nmft-sc,yr-par,xmth,vol-bf,vnum-x,volp-com,jdt-vs,jpg-1,num-xser,isbn,edpar,edby-par,english,pp,ed,abr,xedn,nfss,,{}')
+%% ----------------------------------------
+%% *** ***
+%%
+%% Copyright 1994-2007 Patrick W Daly
+ % ===============================================================
+ % IMPORTANT NOTICE:
+ % This bibliographic style (bst) file has been generated from one or
+ % more master bibliographic style (mbs) files, listed above.
+ %
+ % This generated file can be redistributed and/or modified under the terms
+ % of the LaTeX Project Public License Distributed from CTAN
+ % archives in directory macros/latex/base/lppl.txt; either
+ % version 1 of the License, or any later version.
+ % ===============================================================
+ % Name and version information of the main mbs file:
+ % \ProvidesFile{merlin.mbs}[2007/04/24 4.20 (PWD, AO, DPC)]
+ % For use with BibTeX version 0.99a or later
+ %-------------------------------------------------------------------
+ % This bibliography style file is intended for texts in
+ % ENGLISH
+ % This is a numerical citation style, and as such is standard LaTeX.
+ % It requires no extra package to interface to the main text.
+ % The form of the \bibitem entries is
+ % \bibitem{key}...
+ % Usage of \cite is as follows:
+ % \cite{key} ==>> [#]
+ % \cite[chap. 2]{key} ==>> [#, chap. 2]
+ % where # is a number determined by the ordering in the reference list.
+ % The order in the reference list is alphabetical by authors.
+ %---------------------------------------------------------------------
+
+ENTRY
+ { address
+ author
+ booktitle
+ chapter
+ edition
+ editor
+ eid
+ howpublished
+ institution
+ isbn
+ journal
+ key
+ month
+ note
+ number
+ organization
+ pages
+ publisher
+ school
+ series
+ title
+ type
+ volume
+ year
+ eprint % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ doi % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ pubmed % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ url % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ lastchecked % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ }
+ {}
+ { label }
+INTEGERS { output.state before.all mid.sentence after.sentence after.block }
+STRINGS { urlintro eprinturl eprintprefix doiprefix doiurl pubmedprefix pubmedurl openinlinelink closeinlinelink } % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl...
+INTEGERS { hrefform inlinelinks makeinlinelink addeprints adddoiresolver addpubmedresolver }
+% Following constants may be adjusted by hand, if desired
+FUNCTION {init.urlbst.variables}
+{
+ "Available from: " 'urlintro := % prefix before URL
+ "http://arxiv.org/abs/" 'eprinturl := % prefix to make URL from eprint ref
+ "arXiv:" 'eprintprefix := % text prefix printed before eprint ref
+ "http://dx.doi.org/" 'doiurl := % prefix to make URL from DOI
+ "doi:" 'doiprefix := % text prefix printed before DOI ref
+ "http://www.ncbi.nlm.nih.gov/pubmed/" 'pubmedurl := % prefix to make URL from PUBMED
+ "PMID:" 'pubmedprefix := % text prefix printed before PUBMED ref
+ #1 'addeprints := % 0=no eprints; 1=include eprints
+ #1 'adddoiresolver := % 0=no DOI resolver; 1=include it
+ #0 'addpubmedresolver := % 0=no PUBMED resolver; 1=include it
+ #2 'hrefform := % 0=no crossrefs; 1=hypertex xrefs; 2=hyperref refs
+ #0 'inlinelinks := % 0=URLs explicit; 1=URLs attached to titles
+ % the following are internal state variables, not config constants
+ #0 'makeinlinelink := % state variable managed by setup.inlinelink
+ "" 'openinlinelink := % ditto
+ "" 'closeinlinelink := % ditto
+}
+INTEGERS {
+ bracket.state
+ outside.brackets
+ open.brackets
+ within.brackets
+ close.brackets
+}
+% ...C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl to here
+FUNCTION {init.state.consts}
+{ #0 'outside.brackets := % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ #1 'open.brackets :=
+ #2 'within.brackets :=
+ #3 'close.brackets :=
+
+ #0 'before.all :=
+ #1 'mid.sentence :=
+ #2 'after.sentence :=
+ #3 'after.block :=
+}
+STRINGS { s t}
+% C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+FUNCTION {output.nonnull.original}
+{ 's :=
+ output.state mid.sentence =
+ { ", " * write$ }
+ { output.state after.block =
+ { add.period$ write$
+ newline$
+ "\newblock " write$
+ }
+ { output.state before.all =
+ 'write$
+ { add.period$ " " * write$ }
+ if$
+ }
+ if$
+ mid.sentence 'output.state :=
+ }
+ if$
+ s
+}
+
+% C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl...
+% The following three functions are for handling inlinelink. They wrap
+% a block of text which is potentially output with write$ by multiple
+% other functions, so we don't know the content a priori.
+% They communicate between each other using the variables makeinlinelink
+% (which is true if a link should be made), and closeinlinelink (which holds
+% the string which should close any current link. They can be called
+% at any time, but start.inlinelink will be a no-op unless something has
+% previously set makeinlinelink true, and the two ...end.inlinelink functions
+% will only do their stuff if start.inlinelink has previously set
+% closeinlinelink to be non-empty.
+FUNCTION {setup.inlinelink}
+{ makeinlinelink
+ { hrefform #1 = % hypertex
+ { "\special {html:<a href=" quote$ * url * quote$ * "> }{" * 'openinlinelink :=
+ "\special {html:</a>}" 'closeinlinelink :=
+ }
+ { hrefform #2 = % hyperref
+ { "\href{" url * "}{" * 'openinlinelink :=
+ "}" 'closeinlinelink :=
+ }
+ 'skip$
+ if$ % hrefform #2 =
+ }
+ if$ % hrefform #1 =
+ #0 'makeinlinelink :=
+ }
+ 'skip$
+ if$ % makeinlinelink
+}
+FUNCTION {add.inlinelink}
+{ openinlinelink empty$
+ 'skip$
+ { openinlinelink swap$ * closeinlinelink *
+ "" 'openinlinelink :=
+ }
+ if$
+}
+FUNCTION {output.nonnull}
+{ % Save the thing we've been asked to output
+ 's :=
+ % If the bracket-state is close.brackets, then add a close-bracket to
+ % what is currently at the top of the stack, and set bracket.state
+ % to outside.brackets
+ bracket.state close.brackets =
+ { "]" *
+ outside.brackets 'bracket.state :=
+ }
+ 'skip$
+ if$
+ bracket.state outside.brackets =
+ { % We're outside all brackets -- this is the normal situation.
+ % Write out what's currently at the top of the stack, using the
+ % original output.nonnull function.
+ s
+ add.inlinelink
+ output.nonnull.original % invoke the original output.nonnull
+ }
+ { % Still in brackets. Add open-bracket or (continuation) comma, add the
+ % new text (in s) to the top of the stack, and move to the close-brackets
+ % state, ready for next time (unless inbrackets resets it). If we come
+ % into this branch, then output.state is carefully undisturbed.
+ bracket.state open.brackets =
+ { " [" * }
+ { ", " * } % bracket.state will be within.brackets
+ if$
+ s *
+ close.brackets 'bracket.state :=
+ }
+ if$
+}
+
+% Call this function just before adding something which should be presented in
+% brackets. bracket.state is handled specially within output.nonnull.
+FUNCTION {inbrackets}
+{ bracket.state close.brackets =
+ { within.brackets 'bracket.state := } % reset the state: not open nor closed
+ { open.brackets 'bracket.state := }
+ if$
+}
+
+FUNCTION {format.lastchecked}
+{ lastchecked empty$
+ { "" }
+ { inbrackets "cited " lastchecked * }
+ if$
+}
+% ...C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl to here
+FUNCTION {output}
+{ duplicate$ empty$
+ 'pop$
+ 'output.nonnull
+ if$
+}
+FUNCTION {output.check}
+{ 't :=
+ duplicate$ empty$
+ { pop$ "empty " t * " in " * cite$ * warning$ }
+ 'output.nonnull
+ if$
+}
+FUNCTION {fin.entry.original}
+{ add.period$
+ write$
+ newline$
+}
+
+FUNCTION {new.block}
+{ output.state before.all =
+ 'skip$
+ { after.block 'output.state := }
+ if$
+}
+FUNCTION {new.sentence}
+{ output.state after.block =
+ 'skip$
+ { output.state before.all =
+ 'skip$
+ { after.sentence 'output.state := }
+ if$
+ }
+ if$
+}
+FUNCTION {add.blank}
+{ " " * before.all 'output.state :=
+}
+
+FUNCTION {date.block}
+{
+ new.block
+}
+
+FUNCTION {not}
+{ { #0 }
+ { #1 }
+ if$
+}
+FUNCTION {and}
+{ 'skip$
+ { pop$ #0 }
+ if$
+}
+FUNCTION {or}
+{ { pop$ #1 }
+ 'skip$
+ if$
+}
+FUNCTION {new.block.checka}
+{ empty$
+ 'skip$
+ 'new.block
+ if$
+}
+FUNCTION {new.block.checkb}
+{ empty$
+ swap$ empty$
+ and
+ 'skip$
+ 'new.block
+ if$
+}
+FUNCTION {new.sentence.checka}
+{ empty$
+ 'skip$
+ 'new.sentence
+ if$
+}
+FUNCTION {new.sentence.checkb}
+{ empty$
+ swap$ empty$
+ and
+ 'skip$
+ 'new.sentence
+ if$
+}
+FUNCTION {field.or.null}
+{ duplicate$ empty$
+ { pop$ "" }
+ 'skip$
+ if$
+}
+FUNCTION {emphasize}
+{ duplicate$ empty$
+ { pop$ "" }
+ { "\emph{" swap$ * "}" * }
+ if$
+}
+FUNCTION {bolden}
+{ duplicate$ empty$
+ { pop$ "" }
+ { "\textbf{" swap$ * "}" * }
+ if$
+}
+FUNCTION {scaps}
+{ duplicate$ empty$
+ { pop$ "" }
+ { "\textsc{" swap$ * "}" * }
+ if$
+}
+FUNCTION {bib.name.font}
+{ scaps }
+FUNCTION {bib.fname.font}
+{ bib.name.font }
+FUNCTION {tie.or.space.prefix}
+{ duplicate$ text.length$ #3 <
+ { "~" }
+ { " " }
+ if$
+ swap$
+}
+
+FUNCTION {capitalize}
+{ "u" change.case$ "t" change.case$ }
+
+FUNCTION {space.word}
+{ " " swap$ * " " * }
+ % Here are the language-specific definitions for explicit words.
+ % Each function has a name bbl.xxx where xxx is the English word.
+ %-------------------------------------------------------------------
+ % Begin module:
+ % \ProvidesFile{english.mbs}[2003/11/06 4.2 (PWD)]
+
+ % The language selected here is ENGLISH
+FUNCTION {bbl.and}
+{ "and"}
+
+FUNCTION {bbl.etal}
+{ "et~al." }
+
+FUNCTION {bbl.editors}
+{ "eds." }
+
+FUNCTION {bbl.editor}
+{ "ed." }
+
+FUNCTION {bbl.edby}
+{ "edited by" }
+
+FUNCTION {bbl.edition}
+{ "edn." }
+
+FUNCTION {bbl.volume}
+{ "vol." }
+
+FUNCTION {bbl.of}
+{ "of" }
+
+FUNCTION {bbl.number}
+{ "no." }
+
+FUNCTION {bbl.nr}
+{ "no." }
+
+FUNCTION {bbl.in}
+{ "in" }
+
+FUNCTION {bbl.pages}
+{ "pp." }
+
+FUNCTION {bbl.page}
+{ "p." }
+
+FUNCTION {bbl.chapter}
+{ "chap." }
+
+FUNCTION {bbl.techrep}
+{ "Tech. Rep." }
+
+FUNCTION {bbl.mthesis}
+{ "Master's thesis" }
+
+FUNCTION {bbl.phdthesis}
+{ "Ph.D. thesis" }
+
+MACRO {jan} {"Jan."}
+
+MACRO {feb} {"Feb."}
+
+MACRO {mar} {"Mar."}
+
+MACRO {apr} {"Apr."}
+
+MACRO {may} {"May"}
+
+MACRO {jun} {"Jun."}
+
+MACRO {jul} {"Jul."}
+
+MACRO {aug} {"Aug."}
+
+MACRO {sep} {"Sep."}
+
+MACRO {oct} {"Oct."}
+
+MACRO {nov} {"Nov."}
+
+MACRO {dec} {"Dec."}
+
+ % End module: english.mbs
+%% Copyright 1994-2007 Patrick W Daly
+MACRO {acmcs} {"ACM Computing Surveys"}
+
+MACRO {acta} {"Acta Informatica"}
+
+MACRO {cacm} {"Communications of the ACM"}
+
+MACRO {ibmjrd} {"IBM Journal of Research and Development"}
+
+MACRO {ibmsj} {"IBM Systems Journal"}
+
+MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
+
+MACRO {ieeetc} {"IEEE Transactions on Computers"}
+
+MACRO {ieeetcad}
+ {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
+
+MACRO {ipl} {"Information Processing Letters"}
+
+MACRO {jacm} {"Journal of the ACM"}
+
+MACRO {jcss} {"Journal of Computer and System Sciences"}
+
+MACRO {scp} {"Science of Computer Programming"}
+
+MACRO {sicomp} {"SIAM Journal on Computing"}
+
+MACRO {tocs} {"ACM Transactions on Computer Systems"}
+
+MACRO {tods} {"ACM Transactions on Database Systems"}
+
+MACRO {tog} {"ACM Transactions on Graphics"}
+
+MACRO {toms} {"ACM Transactions on Mathematical Software"}
+
+MACRO {toois} {"ACM Transactions on Office Information Systems"}
+
+MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
+
+MACRO {tcs} {"Theoretical Computer Science"}
+FUNCTION {bibinfo.check}
+{ swap$
+ duplicate$ missing$
+ {
+ pop$ pop$
+ ""
+ }
+ { duplicate$ empty$
+ {
+ swap$ pop$
+ }
+ { swap$
+ pop$
+ }
+ if$
+ }
+ if$
+}
+FUNCTION {bibinfo.warn}
+{ swap$
+ duplicate$ missing$
+ {
+ swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
+ ""
+ }
+ { duplicate$ empty$
+ {
+ swap$ "empty " swap$ * " in " * cite$ * warning$
+ }
+ { swap$
+ pop$
+ }
+ if$
+ }
+ if$
+}
+INTEGERS { nameptr namesleft numnames }
+
+
+STRINGS { bibinfo}
+
+FUNCTION {format.names}
+{ 'bibinfo :=
+ duplicate$ empty$ 'skip$ {
+ 's :=
+ "" 't :=
+ #1 'nameptr :=
+ s num.names$ 'numnames :=
+ numnames 'namesleft :=
+ { namesleft #0 > }
+ { s nameptr
+ "{vv~}{ll}{, f.}{, jj}"
+ format.name$
+ bibinfo bibinfo.check
+ 't :=
+ nameptr #1 >
+ {
+ nameptr #1
+ #1 + =
+ numnames #9
+ > and
+ { "others" 't :=
+ #1 'namesleft := }
+ 'skip$
+ if$
+ namesleft #1 >
+ { ", " * t * }
+ {
+ s nameptr "{ll}" format.name$ duplicate$ "others" =
+ { 't := }
+ { pop$ }
+ if$
+ numnames #2 >
+ { "," * }
+ 'skip$
+ if$
+ t "others" =
+ {
+ " " * bbl.etal *
+ bib.name.font
+ }
+ {
+ bbl.and
+ space.word * t *
+ }
+ if$
+ }
+ if$
+ }
+ 't
+ if$
+ nameptr #1 + 'nameptr :=
+ namesleft #1 - 'namesleft :=
+ }
+ while$
+ t "others" =
+ 'skip$
+ { bib.name.font }
+ if$
+ } if$
+}
+FUNCTION {format.names.ed}
+{
+ 'bibinfo :=
+ duplicate$ empty$ 'skip$ {
+ 's :=
+ "" 't :=
+ #1 'nameptr :=
+ s num.names$ 'numnames :=
+ numnames 'namesleft :=
+ { namesleft #0 > }
+ { s nameptr
+ "{f.~}{vv~}{ll}{, jj}"
+ format.name$
+ bibinfo bibinfo.check
+ 't :=
+ nameptr #1 >
+ {
+ namesleft #1 >
+ { ", " * t * }
+ {
+ s nameptr "{ll}" format.name$ duplicate$ "others" =
+ { 't := }
+ { pop$ }
+ if$
+ numnames #2 >
+ { "," * }
+ 'skip$
+ if$
+ t "others" =
+ {
+
+ " " * bbl.etal *
+ }
+ {
+ bbl.and
+ space.word * t *
+ }
+ if$
+ }
+ if$
+ }
+ 't
+ if$
+ nameptr #1 + 'nameptr :=
+ namesleft #1 - 'namesleft :=
+ }
+ while$
+ } if$
+}
+FUNCTION {format.authors}
+{ author "author" format.names
+}
+FUNCTION {get.bbl.editor}
+{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
+
+FUNCTION {format.editors}
+{ editor "editor" format.names duplicate$ empty$ 'skip$
+ {
+ " " *
+ get.bbl.editor
+ "(" swap$ * ")" *
+ *
+ }
+ if$
+}
+FUNCTION {format.isbn}
+{ isbn "isbn" bibinfo.check
+ duplicate$ empty$ 'skip$
+ {
+ new.block
+ "ISBN " swap$ *
+ }
+ if$
+}
+
+FUNCTION {format.note}
+{
+ note empty$
+ { "" }
+ { note #1 #1 substring$
+ duplicate$ "{" =
+ 'skip$
+ { output.state mid.sentence =
+ { "l" }
+ { "u" }
+ if$
+ change.case$
+ }
+ if$
+ note #2 global.max$ substring$ * "note" bibinfo.check
+ }
+ if$
+}
+
+FUNCTION {format.title}
+{ title
+ duplicate$ empty$ 'skip$
+ { "t" change.case$ }
+ if$
+ "title" bibinfo.check
+}
+FUNCTION {output.bibitem.original}
+{ newline$
+ "\bibitem{" write$
+ cite$ write$
+ "}" write$
+ newline$
+ ""
+ before.all 'output.state :=
+}
+
+FUNCTION {n.dashify}
+{
+ 't :=
+ ""
+ { t empty$ not }
+ { t #1 #1 substring$ "-" =
+ { t #1 #2 substring$ "--" = not
+ { "--" *
+ t #2 global.max$ substring$ 't :=
+ }
+ { { t #1 #1 substring$ "-" = }
+ { "-" *
+ t #2 global.max$ substring$ 't :=
+ }
+ while$
+ }
+ if$
+ }
+ { t #1 #1 substring$ *
+ t #2 global.max$ substring$ 't :=
+ }
+ if$
+ }
+ while$
+}
+
+FUNCTION {word.in}
+{ bbl.in capitalize
+ " " * }
+
+FUNCTION {format.date}
+{
+ ""
+ duplicate$ empty$
+ year "year" bibinfo.check duplicate$ empty$
+ { swap$ 'skip$
+ { "there's a month but no year in " cite$ * warning$ }
+ if$
+ *
+ }
+ { swap$ 'skip$
+ {
+ swap$
+ " " * swap$
+ }
+ if$
+ *
+ }
+ if$
+ duplicate$ empty$
+ 'skip$
+ {
+ before.all 'output.state :=
+ " (" swap$ * ")" *
+ }
+ if$
+}
+FUNCTION{format.year}
+{ year "year" bibinfo.check duplicate$ empty$
+ { "empty year in " cite$ *
+ warning$
+ }
+ {
+ " (" swap$ * ")" *
+ }
+ if$
+}
+FUNCTION {format.btitle}
+{ title "title" bibinfo.check
+ duplicate$ empty$ 'skip$
+ {
+ emphasize
+ }
+ if$
+}
+FUNCTION {either.or.check}
+{ empty$
+ 'pop$
+ { "can't use both " swap$ * " fields in " * cite$ * warning$ }
+ if$
+}
+FUNCTION {format.bvolume}
+{ volume empty$
+ { "" }
+ { bbl.volume volume tie.or.space.prefix
+ "volume" bibinfo.check * *
+ series "series" bibinfo.check
+ duplicate$ empty$ 'pop$
+ { swap$ bbl.of space.word * swap$
+ emphasize * }
+ if$
+ "volume and number" number either.or.check
+ }
+ if$
+}
+FUNCTION {format.number.series}
+{ volume empty$
+ { number empty$
+ { series field.or.null }
+ { series empty$
+ { number "number" bibinfo.check }
+ { output.state mid.sentence =
+ { bbl.number }
+ { bbl.number capitalize }
+ if$
+ number tie.or.space.prefix "number" bibinfo.check * *
+ bbl.in space.word *
+ series "series" bibinfo.check *
+ }
+ if$
+ }
+ if$
+ }
+ { "" }
+ if$
+}
+
+FUNCTION {format.edition}
+{ edition duplicate$ empty$ 'skip$
+ {
+ output.state mid.sentence =
+ { "l" }
+ { "t" }
+ if$ change.case$
+ "edition" bibinfo.check
+ " " * bbl.edition *
+ }
+ if$
+}
+INTEGERS { multiresult }
+FUNCTION {multi.page.check}
+{ 't :=
+ #0 'multiresult :=
+ { multiresult not
+ t empty$ not
+ and
+ }
+ { t #1 #1 substring$
+ duplicate$ "-" =
+ swap$ duplicate$ "," =
+ swap$ "+" =
+ or or
+ { #1 'multiresult := }
+ { t #2 global.max$ substring$ 't := }
+ if$
+ }
+ while$
+ multiresult
+}
+FUNCTION {format.pages}
+{ pages duplicate$ empty$ 'skip$
+ { duplicate$ multi.page.check
+ {
+ bbl.pages swap$
+ n.dashify
+ }
+ {
+ bbl.page swap$
+ }
+ if$
+ tie.or.space.prefix
+ "pages" bibinfo.check
+ * *
+ }
+ if$
+}
+FUNCTION {first.page}
+{ 't :=
+ ""
+ { t empty$ not t #1 #1 substring$ "-" = not and }
+ { t #1 #1 substring$ *
+ t #2 global.max$ substring$ 't :=
+ }
+ while$
+}
+
+FUNCTION {format.journal.pages}
+{ pages duplicate$ empty$ 'pop$
+ { swap$ duplicate$ empty$
+ { pop$ pop$ format.pages }
+ {
+ ", " *
+ swap$
+ first.page
+ "pages" bibinfo.check
+ *
+ }
+ if$
+ }
+ if$
+}
+FUNCTION {format.journal.eid}
+{ eid "eid" bibinfo.check
+ duplicate$ empty$ 'pop$
+ { swap$ duplicate$ empty$ 'skip$
+ {
+ ", " *
+ }
+ if$
+ swap$ *
+ }
+ if$
+}
+FUNCTION {format.vol.num.pages}
+{ volume field.or.null
+ duplicate$ empty$ 'skip$
+ {
+ "volume" bibinfo.check
+ }
+ if$
+ bolden
+ format.year *
+ eid empty$
+ { format.journal.pages }
+ { format.journal.eid }
+ if$
+}
+
+FUNCTION {format.chapter.pages}
+{ chapter empty$
+ 'format.pages
+ { type empty$
+ { bbl.chapter }
+ { type "l" change.case$
+ "type" bibinfo.check
+ }
+ if$
+ chapter tie.or.space.prefix
+ "chapter" bibinfo.check
+ * *
+ pages empty$
+ 'skip$
+ { ", " * format.pages * }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.booktitle}
+{
+ booktitle "booktitle" bibinfo.check
+ emphasize
+}
+FUNCTION {format.in.ed.booktitle}
+{ format.booktitle duplicate$ empty$ 'skip$
+ {
+ editor "editor" format.names.ed duplicate$ empty$ 'pop$
+ {
+ bbl.edby
+ " " * swap$ *
+ "(" swap$ * ")" *
+ swap$
+ " " * swap$
+ * }
+ if$
+ word.in swap$ *
+ }
+ if$
+}
+FUNCTION {empty.misc.check}
+{ author empty$ title empty$ howpublished empty$
+ month empty$ year empty$ note empty$
+ and and and and and
+ key empty$ not and
+ { "all relevant fields are empty in " cite$ * warning$ }
+ 'skip$
+ if$
+}
+FUNCTION {format.thesis.type}
+{ type duplicate$ empty$
+ 'pop$
+ { swap$ pop$
+ "t" change.case$ "type" bibinfo.check
+ }
+ if$
+}
+FUNCTION {format.tr.number}
+{ number "number" bibinfo.check
+ type duplicate$ empty$
+ { pop$ bbl.techrep }
+ 'skip$
+ if$
+ "type" bibinfo.check
+ swap$ duplicate$ empty$
+ { pop$ "t" change.case$ }
+ { tie.or.space.prefix * * }
+ if$
+}
+FUNCTION {format.article.crossref}
+{
+ key duplicate$ empty$
+ { pop$
+ journal duplicate$ empty$
+ { "need key or journal for " cite$ * " to crossref " * crossref * warning$ }
+ { "journal" bibinfo.check emphasize word.in swap$ * }
+ if$
+ }
+ { word.in swap$ * " " *}
+ if$
+ " \cite{" * crossref * "}" *
+}
+FUNCTION {format.crossref.editor}
+{ editor #1 "{vv~}{ll}" format.name$
+ "editor" bibinfo.check
+ editor num.names$ duplicate$
+ #2 >
+ { pop$
+ "editor" bibinfo.check
+ " " * bbl.etal
+ *
+ }
+ { #2 <
+ 'skip$
+ { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
+ {
+ "editor" bibinfo.check
+ " " * bbl.etal
+ *
+ }
+ {
+ bbl.and space.word
+ * editor #2 "{vv~}{ll}" format.name$
+ "editor" bibinfo.check
+ *
+ }
+ if$
+ }
+ if$
+ }
+ if$
+}
+FUNCTION {format.book.crossref}
+{ volume duplicate$ empty$
+ { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
+ pop$ word.in
+ }
+ { bbl.volume
+ capitalize
+ swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
+ }
+ if$
+ editor empty$
+ editor field.or.null author field.or.null =
+ or
+ { key empty$
+ { series empty$
+ { "need editor, key, or series for " cite$ * " to crossref " *
+ crossref * warning$
+ "" *
+ }
+ { series emphasize * }
+ if$
+ }
+ { key * }
+ if$
+ }
+ { format.crossref.editor * }
+ if$
+ " \cite{" * crossref * "}" *
+}
+FUNCTION {format.incoll.inproc.crossref}
+{
+ editor empty$
+ editor field.or.null author field.or.null =
+ or
+ { key empty$
+ { format.booktitle duplicate$ empty$
+ { "need editor, key, or booktitle for " cite$ * " to crossref " *
+ crossref * warning$
+ }
+ { word.in swap$ * }
+ if$
+ }
+ { word.in key * " " *}
+ if$
+ }
+ { word.in format.crossref.editor * " " *}
+ if$
+ " \cite{" * crossref * "}" *
+}
+FUNCTION {format.org.or.pub}
+{ 't :=
+ ""
+ address empty$ t empty$ and
+ 'skip$
+ {
+ t empty$
+ { address "address" bibinfo.check *
+ }
+ { t *
+ address empty$
+ 'skip$
+ { ", " * address "address" bibinfo.check * }
+ if$
+ }
+ if$
+ }
+ if$
+}
+FUNCTION {format.publisher.address}
+{ publisher "publisher" bibinfo.warn format.org.or.pub
+}
+
+FUNCTION {format.organization.address}
+{ organization "organization" bibinfo.check format.org.or.pub
+}
+
+% C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl...
+% Functions for making hypertext links.
+% In all cases, the stack has (link-text href-url)
+%
+% make 'null' specials
+FUNCTION {make.href.null}
+{
+ pop$
+}
+% make hypertex specials
+FUNCTION {make.href.hypertex}
+{
+ "\special {html:<a href=" quote$ *
+ swap$ * quote$ * "> }" * swap$ *
+ "\special {html:</a>}" *
+}
+% make hyperref specials
+FUNCTION {make.href.hyperref}
+{
+ "\href {" swap$ * "} {\path{" * swap$ * "}}" *
+}
+FUNCTION {make.href}
+{ hrefform #2 =
+ 'make.href.hyperref % hrefform = 2
+ { hrefform #1 =
+ 'make.href.hypertex % hrefform = 1
+ 'make.href.null % hrefform = 0 (or anything else)
+ if$
+ }
+ if$
+}
+
+% If inlinelinks is true, then format.url should be a no-op, since it's
+% (a) redundant, and (b) could end up as a link-within-a-link.
+FUNCTION {format.url}
+{ inlinelinks #1 = url empty$ or
+ { "" }
+ { hrefform #1 =
+ { % special case -- add HyperTeX specials
+ urlintro "\url{" url * "}" * url make.href.hypertex * }
+ { urlintro "\url{" * url * "}" * }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.eprint}
+{ eprint empty$
+ { "" }
+ { eprintprefix eprint * eprinturl eprint * make.href }
+ if$
+}
+
+FUNCTION {format.doi}
+{ doi empty$
+ { "" }
+ { doiprefix doi * doiurl doi * make.href }
+ if$
+}
+
+FUNCTION {format.pubmed}
+{ pubmed empty$
+ { "" }
+ { pubmedprefix pubmed * pubmedurl pubmed * make.href }
+ if$
+}
+
+% Output a URL. We can't use the more normal idiom (something like
+% `format.url output'), because the `inbrackets' within
+% format.lastchecked applies to everything between calls to `output',
+% so that `format.url format.lastchecked * output' ends up with both
+% the URL and the lastchecked in brackets.
+FUNCTION {output.url}
+{ url empty$
+ 'skip$
+ { new.block
+ format.url output
+ format.lastchecked output
+ }
+ if$
+}
+
+FUNCTION {output.web.refs}
+{
+ new.block
+ output.url
+ addeprints eprint empty$ not and
+ { format.eprint output.nonnull }
+ 'skip$
+ if$
+ adddoiresolver doi empty$ not and
+ { format.doi output.nonnull }
+ 'skip$
+ if$
+ addpubmedresolver pubmed empty$ not and
+ { format.pubmed output.nonnull }
+ 'skip$
+ if$
+}
+
+% Wrapper for output.bibitem.original.
+% If the URL field is not empty, set makeinlinelink to be true,
+% so that an inline link will be started at the next opportunity
+FUNCTION {output.bibitem}
+{ outside.brackets 'bracket.state :=
+ output.bibitem.original
+ inlinelinks url empty$ not and
+ { #1 'makeinlinelink := }
+ { #0 'makeinlinelink := }
+ if$
+}
+
+% Wrapper for fin.entry.original
+FUNCTION {fin.entry}
+{ output.web.refs % urlbst
+ makeinlinelink % ooops, it appears we didn't have a title for inlinelink
+ { setup.inlinelink % add some artificial link text here, as a fallback
+ "[link]" output.nonnull }
+ 'skip$
+ if$
+ bracket.state close.brackets = % urlbst
+ { "]" * }
+ 'skip$
+ if$
+ fin.entry.original
+}
+
+% Webpage entry type.
+% Title and url fields required;
+% author, note, year, month, and lastchecked fields optional
+% See references
+% ISO 690-2 http://www.nlc-bnc.ca/iso/tc46sc9/standard/690-2e.htm
+% http://www.classroom.net/classroom/CitingNetResources.html
+% http://neal.ctstateu.edu/history/cite.html
+% http://www.cas.usf.edu/english/walker/mla.html
+% for citation formats for web pages.
+FUNCTION {webpage}
+{ output.bibitem
+ author empty$
+ { editor empty$
+ 'skip$ % author and editor both optional
+ { format.editors output.nonnull }
+ if$
+ }
+ { editor empty$
+ { format.authors output.nonnull }
+ { "can't use both author and editor fields in " cite$ * warning$ }
+ if$
+ }
+ if$
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$
+ format.title "title" output.check
+ inbrackets "online" output
+ new.block
+ year empty$
+ 'skip$
+ { format.date "year" output.check }
+ if$
+ % We don't need to output the URL details ('lastchecked' and 'url'),
+ % because fin.entry does that for us, using output.web.refs. The only
+ % reason we would want to put them here is if we were to decide that
+ % they should go in front of the rather miscellaneous information in 'note'.
+ new.block
+ note output
+ fin.entry
+}
+% ...C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl to here
+
+
+FUNCTION {article}
+{ output.bibitem
+ format.authors "author" output.check
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.title "title" output.check
+ new.block
+ crossref missing$
+ {
+ journal
+ "journal" bibinfo.check
+ emphasize
+ "journal" output.check
+ format.vol.num.pages output
+ }
+ { format.article.crossref output.nonnull
+ format.pages output
+ }
+ if$
+ new.block
+ format.note output
+ fin.entry
+}
+FUNCTION {book}
+{ output.bibitem
+ author empty$
+ { format.editors "author and editor" output.check
+ }
+ { format.authors output.nonnull
+ crossref missing$
+ { "author and editor" editor either.or.check }
+ 'skip$
+ if$
+ }
+ if$
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.btitle "title" output.check
+ crossref missing$
+ { format.bvolume output
+ new.block
+ format.number.series output
+ new.sentence
+ format.publisher.address output
+ }
+ {
+ new.block
+ format.book.crossref output.nonnull
+ }
+ if$
+ format.edition output
+ format.date "year" output.check
+ format.isbn output
+ new.block
+ format.note output
+ fin.entry
+}
+FUNCTION {booklet}
+{ output.bibitem
+ format.authors output
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.title "title" output.check
+ new.block
+ howpublished "howpublished" bibinfo.check output
+ address "address" bibinfo.check output
+ format.date output
+ format.isbn output
+ new.block
+ format.note output
+ fin.entry
+}
+
+FUNCTION {inbook}
+{ output.bibitem
+ author empty$
+ { format.editors "author and editor" output.check
+ }
+ { format.authors output.nonnull
+ crossref missing$
+ { "author and editor" editor either.or.check }
+ 'skip$
+ if$
+ }
+ if$
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.btitle "title" output.check
+ crossref missing$
+ {
+ format.bvolume output
+ format.chapter.pages "chapter and pages" output.check
+ new.block
+ format.number.series output
+ new.sentence
+ format.publisher.address output
+ }
+ {
+ format.chapter.pages "chapter and pages" output.check
+ new.block
+ format.book.crossref output.nonnull
+ }
+ if$
+ format.edition output
+ format.date "year" output.check
+ crossref missing$
+ { format.isbn output }
+ 'skip$
+ if$
+ new.block
+ format.note output
+ fin.entry
+}
+
+FUNCTION {incollection}
+{ output.bibitem
+ format.authors "author" output.check
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.title "title" output.check
+ new.block
+ crossref missing$
+ { format.in.ed.booktitle "booktitle" output.check
+ format.bvolume output
+ format.number.series output
+ format.chapter.pages output
+ new.sentence
+ format.publisher.address output
+ format.edition output
+ format.date "year" output.check
+ format.isbn output
+ }
+ { format.incoll.inproc.crossref output.nonnull
+ format.chapter.pages output
+ }
+ if$
+ new.block
+ format.note output
+ fin.entry
+}
+FUNCTION {inproceedings}
+{ output.bibitem
+ format.authors "author" output.check
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.title "title" output.check
+ new.block
+ crossref missing$
+ { format.in.ed.booktitle "booktitle" output.check
+ format.bvolume output
+ format.number.series output
+ format.pages output
+ new.sentence
+ publisher empty$
+ { format.organization.address output }
+ { organization "organization" bibinfo.check output
+ format.publisher.address output
+ }
+ if$
+ format.date "year" output.check
+ format.isbn output
+ }
+ { format.incoll.inproc.crossref output.nonnull
+ format.pages output
+ }
+ if$
+ new.block
+ format.note output
+ fin.entry
+}
+FUNCTION {conference} { inproceedings }
+FUNCTION {manual}
+{ output.bibitem
+ author empty$
+ { organization "organization" bibinfo.check
+ duplicate$ empty$ 'pop$
+ { output
+ address "address" bibinfo.check output
+ }
+ if$
+ }
+ { format.authors output.nonnull }
+ if$
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.btitle "title" output.check
+ author empty$
+ { organization empty$
+ {
+ address new.block.checka
+ address "address" bibinfo.check output
+ }
+ 'skip$
+ if$
+ }
+ {
+ organization address new.block.checkb
+ organization "organization" bibinfo.check output
+ address "address" bibinfo.check output
+ }
+ if$
+ format.edition output
+ format.date output
+ new.block
+ format.note output
+ fin.entry
+}
+
+FUNCTION {mastersthesis}
+{ output.bibitem
+ format.authors "author" output.check
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.btitle
+ "title" output.check
+ new.block
+ bbl.mthesis format.thesis.type output.nonnull
+ school "school" bibinfo.warn output
+ address "address" bibinfo.check output
+ format.date "year" output.check
+ new.block
+ format.note output
+ fin.entry
+}
+
+FUNCTION {misc}
+{ output.bibitem
+ format.authors output
+ title howpublished new.block.checkb
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.title output
+ howpublished new.block.checka
+ howpublished "howpublished" bibinfo.check output
+ format.date output
+ new.block
+ format.note output
+ fin.entry
+ empty.misc.check
+}
+FUNCTION {phdthesis}
+{ output.bibitem
+ format.authors "author" output.check
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.btitle
+ "title" output.check
+ new.block
+ bbl.phdthesis format.thesis.type output.nonnull
+ school "school" bibinfo.warn output
+ address "address" bibinfo.check output
+ format.date "year" output.check
+ new.block
+ format.note output
+ fin.entry
+}
+
+FUNCTION {proceedings}
+{ output.bibitem
+ editor empty$
+ { organization "organization" bibinfo.check output
+ }
+ { format.editors output.nonnull }
+ if$
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.btitle "title" output.check
+ format.bvolume output
+ format.number.series output
+ editor empty$
+ { publisher empty$
+ {
+ new.sentence
+ format.publisher.address output
+ }
+ if$
+ }
+ { publisher empty$
+ {
+ new.sentence
+ format.organization.address output }
+ {
+ new.sentence
+ organization "organization" bibinfo.check output
+ format.publisher.address output
+ }
+ if$
+ }
+ if$
+ format.date "year" output.check
+ format.isbn output
+ new.block
+ format.note output
+ fin.entry
+}
+
+FUNCTION {techreport}
+{ output.bibitem
+ format.authors "author" output.check
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.title
+ "title" output.check
+ new.block
+ format.tr.number output.nonnull
+ institution "institution" bibinfo.warn output
+ address "address" bibinfo.check output
+ format.date "year" output.check
+ new.block
+ format.note output
+ fin.entry
+}
+
+FUNCTION {unpublished}
+{ output.bibitem
+ format.authors "author" output.check
+ new.block
+ title empty$ 'skip$ 'setup.inlinelink if$ % C:\Program Files\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl
+ format.title "title" output.check
+ format.date output
+ new.block
+ format.note "note" output.check
+ fin.entry
+}
+
+FUNCTION {default.type} { misc }
+READ
+FUNCTION {sortify}
+{ purify$
+ "l" change.case$
+}
+INTEGERS { len }
+FUNCTION {chop.word}
+{ 's :=
+ 'len :=
+ s #1 len substring$ =
+ { s len #1 + global.max$ substring$ }
+ 's
+ if$
+}
+FUNCTION {sort.format.names}
+{ 's :=
+ #1 'nameptr :=
+ ""
+ s num.names$ 'numnames :=
+ numnames 'namesleft :=
+ { namesleft #0 > }
+ { s nameptr
+ "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}"
+ format.name$ 't :=
+ nameptr #1 >
+ {
+ nameptr #1
+ #1 + =
+ numnames #9
+ > and
+ { "others" 't :=
+ #1 'namesleft := }
+ 'skip$
+ if$
+ " " *
+ namesleft #1 = t "others" = and
+ { "zzzzz" * }
+ { t sortify * }
+ if$
+ }
+ { t sortify * }
+ if$
+ nameptr #1 + 'nameptr :=
+ namesleft #1 - 'namesleft :=
+ }
+ while$
+}
+
+FUNCTION {sort.format.title}
+{ 't :=
+ "A " #2
+ "An " #3
+ "The " #4 t chop.word
+ chop.word
+ chop.word
+ sortify
+ #1 global.max$ substring$
+}
+FUNCTION {author.sort}
+{ author empty$
+ { key empty$
+ { "to sort, need author or key in " cite$ * warning$
+ ""
+ }
+ { key sortify }
+ if$
+ }
+ { author sort.format.names }
+ if$
+}
+FUNCTION {author.editor.sort}
+{ author empty$
+ { editor empty$
+ { key empty$
+ { "to sort, need author, editor, or key in " cite$ * warning$
+ ""
+ }
+ { key sortify }
+ if$
+ }
+ { editor sort.format.names }
+ if$
+ }
+ { author sort.format.names }
+ if$
+}
+FUNCTION {author.organization.sort}
+{ author empty$
+ { organization empty$
+ { key empty$
+ { "to sort, need author, organization, or key in " cite$ * warning$
+ ""
+ }
+ { key sortify }
+ if$
+ }
+ { "The " #4 organization chop.word sortify }
+ if$
+ }
+ { author sort.format.names }
+ if$
+}
+FUNCTION {editor.organization.sort}
+{ editor empty$
+ { organization empty$
+ { key empty$
+ { "to sort, need editor, organization, or key in " cite$ * warning$
+ ""
+ }
+ { key sortify }
+ if$
+ }
+ { "The " #4 organization chop.word sortify }
+ if$
+ }
+ { editor sort.format.names }
+ if$
+}
+FUNCTION {presort}
+{ type$ "book" =
+ type$ "inbook" =
+ or
+ 'author.editor.sort
+ { type$ "proceedings" =
+ 'editor.organization.sort
+ { type$ "manual" =
+ 'author.organization.sort
+ 'author.sort
+ if$
+ }
+ if$
+ }
+ if$
+ " "
+ *
+ year field.or.null sortify
+ *
+ " "
+ *
+ title field.or.null
+ sort.format.title
+ *
+ #1 entry.max$ substring$
+ 'sort.key$ :=
+}
+ITERATE {presort}
+SORT
+STRINGS { longest.label }
+INTEGERS { number.label longest.label.width }
+FUNCTION {initialize.longest.label}
+{ "" 'longest.label :=
+ #1 'number.label :=
+ #0 'longest.label.width :=
+}
+FUNCTION {longest.label.pass}
+{ number.label int.to.str$ 'label :=
+ number.label #1 + 'number.label :=
+ label width$ longest.label.width >
+ { label 'longest.label :=
+ label width$ 'longest.label.width :=
+ }
+ 'skip$
+ if$
+}
+EXECUTE {initialize.longest.label}
+ITERATE {longest.label.pass}
+FUNCTION {begin.bib}
+{ preamble$ empty$
+ 'skip$
+ { preamble$ write$ newline$ }
+ if$
+ "\begin{thebibliography}{" longest.label * "}" *
+ write$ newline$
+}
+EXECUTE {begin.bib}
+EXECUTE {init.urlbst.variables}
+EXECUTE {init.state.consts}
+ITERATE {call.type$}
+FUNCTION {end.bib}
+{ newline$
+ "\end{thebibliography}" write$ newline$
+}
+EXECUTE {end.bib}
+%% End of customized bst file
+%%
+%% End of file `sapthesis.bst'.
diff --git a/Master/texmf-dist/doc/latex/sapthesis/README.TEXLIVE b/Master/texmf-dist/doc/latex/sapthesis/README.TEXLIVE
new file mode 100644
index 00000000000..874b450c1cb
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sapthesis/README.TEXLIVE
@@ -0,0 +1,8 @@
+The following files have been removed in the TeX Live installation of
+the current package, typically due to duplication, lack of space, or
+missing source code. You can find these files on CTAN at
+ http://mirror.ctan.org/macros/latex/contrib/sapthesis
+If questions or concerns, email tex-live@tug.org.
+
+ marchiologo_nero_positivo.pdf
+ marchiologo_rosso_positivo.pdf
diff --git a/Master/texmf-dist/doc/latex/sapthesis/README.sapthesis b/Master/texmf-dist/doc/latex/sapthesis/README.sapthesis
new file mode 100644
index 00000000000..e2b0dfaf86b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sapthesis/README.sapthesis
@@ -0,0 +1,95 @@
+*********************************************************************
+* sapthesis class *
+*********************************************************************
+
+ This is the README file of the "sapthesis" LaTeX class.
+ Official web page:
+ http://biccari.altervista.org/c/informatica/latex/sapthesis.php
+
+
+
+** License **********************************************************
+
+ Copyright (c) 2008-2011 by Francesco Biccari.
+
+ This work (specified below) may be distributed and/or
+ modified under the conditions of the
+ LaTeX Project Public License,
+ either version 1.3 of this license or any later version.
+ The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of
+ LaTeX version 2005/12/01 or later.
+
+ This work has the LPPL maintenance status 'maintained'.
+ The Current Maintainer of this work is Francesco Biccari.
+
+ 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
+ Sapienza" document available, with other information,
+ at the following link (in italian):
+ http://www.uniroma1.it/ufficiostampa/identita.php
+ In particular it can be used in the theses of "Sapienza"
+ university without explicit authorization.
+
+
+
+** Class information ************************************************
+
+ Sapthesis is a LaTeX class to typeset PhD, Master and Bachelor
+ theses that adhere to "Sapienza - University of Rome" 's
+ guidelines for publishing.
+ It is compatible with two compilation methods:
+ pdflatex and xelatex.
+
+ The version number of this class is reported at the top of the
+ class file sapthesis.cls and in the pdf manual
+ sapthesis-doc.pdf.
+
+ The documentation is provided in the file sapthesis-doc.pdf.
+
+
+
+** Installation instruction *****************************************
+
+ The simplest way to install sapthesis is by the package manager
+ of your TeX distribution (TeX Live or MiKTeX).
+
+ Instead, if you want to install sapthesis manually, you have to
+ download the sapthesis.zip archive from CTAN or, better, from
+ the official sapthesis website
+ http://biccari.altervista.org/c/informatica/latex/sapthesis.php
+
+ The sapthesis.zip archive contains:
+
+ 1. sapthesis.cls (main file)
+ 2. sapthesis-doc.pdf (manual of sapthesis.cls)
+ 3. sapthesis-doc.tex (source of the manual)
+ 4. sapthesis-example.pdf (a document example)
+ 5. sapthesis-example.tex (source of the example)
+ 6. README (this file)
+ 7. marchiologo_rosso_positivo.pdf (university logo)
+ 8. marchiologo_nero_positivo.pdf (university logo)
+ 9. sapthesis.bst (an english BibTeX style)
+
+ The following files should end up in your texmf tree
+ (or your localtexmf tree) at these locations:
+
+ <texmf>/tex/latex/sapthesis/sapthesis.cls
+ <texmf>/tex/latex/sapthesis/marchiologo_rosso_positivo.pdf
+ <texmf>/tex/latex/sapthesis/marchiologo_nero_positivo.pdf
+ <texmf>/doc/latex/sapthesis/sapthesis-doc.pdf
+ <texmf>/doc/latex/sapthesis/sapthesis-doc.tex
+ <texmf>/doc/latex/sapthesis/sapthesis-example.pdf
+ <texmf>/doc/latex/sapthesis/sapthesis-example.tex
+ <texmf>/doc/latex/sapthesis/README
+ <texmf>/bibtex/bst/sapthesis/sapthesis.bst
+
+ Then, you need to update the file database.
+
+ Alternatively, you can simply copy sapthesis.cls and sapthesis.bst
+ together with marchiologo_rosso_positivo.pdf and
+ marchiologo_nero_positivo.pdf into your local work directory where
+ your thesis files will live. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf
new file mode 100644
index 00000000000..3fede7fc9c9
--- /dev/null
+++ 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
new file mode 100644
index 00000000000..ef416cff199
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex
@@ -0,0 +1,506 @@
+\documentclass[a5paper,11pt]{article}
+
+\usepackage[scale=0.85, footskip=0.8cm,heightrounded]{geometry}
+\usepackage[T1]{fontenc}
+%txfonts 137 kB
+\usepackage{txfonts}
+%mathptmx 169 kB [warn] in textcomp
+%times 203 kB [warn] in textcomp
+%tgtermes 251 kB
+%lmodern 433 kB
+\usepackage[warn]{textcomp}
+\usepackage{microtype}
+\usepackage{graphicx}
+\usepackage{color}
+\definecolor{gray}{gray}{0.4}
+\definecolor{sfondoblu}{rgb}{0.94,0.97,1}
+\usepackage{listings}
+\lstset{language=[LaTeX]TeX,
+ basicstyle=\footnotesize\ttfamily,
+ keywordstyle=\color{blue}\bfseries,
+ commentstyle=\color{gray},
+ backgroundcolor=\color{sfondoblu},
+ 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},
+ columns=flexible
+}
+
+\usepackage{multicol}
+
+% eliminate dots in the table of contents
+\makeatletter
+\renewcommand{\@dotsep}{10000}
+\makeatother
+
+\usepackage[bookmarks=false,hyperfootnotes=false]{hyperref}
+\hypersetup{
+ colorlinks=true,
+ linkcolor=blue,
+ anchorcolor=blue,
+ citecolor=blue,
+ urlcolor=blue,
+ pdftitle={sapthesis.cls documentation},
+ pdfauthor={Francesco Biccari}
+}
+
+\newcommand{\bs}{\textbackslash}
+\newcommand{\sq}{\textquotesingle}
+
+\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 2.8, 2011-09-13
+}
+\date{}
+
+% degree
+ \providecommand{\degree}{\mbox{\textdegree}}
+ \providecommand{\g}{\degree}
+
+ % gradi Celsius
+ \providecommand{\celsius}{\ensuremath{\textrm{\upshape\textdegree}\kern-\scriptspace\mathrm{C}}}
+ \providecommand{\C}{\celsius}
+
+ % Angstrom
+ \providecommand{\angstrom}{\mbox{\AA}}
+ \providecommand{\A}{\angstrom}
+
+ % micro
+ \providecommand{\micro}{\mbox{\textmu}}
+
+ % Ohm
+ \providecommand{\ohm}{\ensuremath{\mbox{\textohm}}}
+
+ % Napier's number
+ \providecommand{\eu}{\ensuremath{\mathrm{e}}}
+
+ % imaginary unit
+ \providecommand{\iu}{\ensuremath{\mathrm{i}}}
+
+ % roman subscript
+ \providecommand*{\rb}[1]{\ensuremath{_\mathrm{#1}}}
+
+ % roman superscript
+ \providecommand*{\rp}[1]{\ensuremath{^\mathrm{#1}}}
+
+ % differential (only math)
+ \providecommand{\di}{\mathop{}\!d}
+
+ % derivative and partial derivative (only math)
+ \providecommand*{\der}[3][]{\frac{d^{#1}#2}{d #3^{#1}}}
+ \providecommand*{\pder}[3][]{%
+ \frac{\partial^{#1}#2}{\partial #3^{#1}}%
+ }
+
+ % measurement unit
+ \providecommand*{\un}[1]{\ensuremath{\mathrm{\,#1}}}
+
+
+\begin{document}
+\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\\
+{\footnotesize\url{http://biccari.altervista.org/c/informatica/latex/sapthesis.php}}.
+\end{abstract}
+
+\setcounter{tocdepth}{2}
+\renewcommand{\columnseprule}{0.4pt}
+\setlength{\columnsep}{1.5cm}
+
+\addtocontents{toc}{\protect\begin{multicols}{2}}
+{\small
+\tableofcontents}
+
+\clearpage
+
+\section{Introduction}
+
+After several years in my faculty I noticed that usually students spend a lot of time to refine the aesthetic aspect of their \LaTeX\ documents instead of focusing on the content.
+This is against the philosophy of \LaTeX, which was created to relieve the writer from the typesetter's work.
+Apart from the time spent, the resulting documents are obviously all different from each other and good aesthetic results are not always achieved.
+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).
+However some Microsoft Word templates, with a completely different style, are provided.
+To give a look to the new Sapienza style see
+\href{http://www.uniroma1.it/ufficiostampa/identita.php}{Identit\`a visiva}.}
+
+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 see the file
+\texttt{sapthesis-example.pdf}.
+In that file the page layout and the layout choices are explained.
+\textsf{Sapthesis} is released under the terms of the latest version of the
+\href{http://www.latex-project.org/lppl/}{\LaTeX\ Project Public License}.
+
+I would thank the Italian \TeX\ user group (\href{http://www.guitex.org/}{GuIT}) for the help provided, in particular Prof.~Enrico Gregorio.
+I would thank also Dr.~Gabriele Di Segni and Dr.~Matteo Siccardi.
+
+\section[Requirements\\ and installation]{Requirements and 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
+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; \texttt{sapthesis-example.pdf}, an usage example of
+the class and its source code; 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).
+
+
+\textsf{Sapthesis} explicitely loads the packages \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}, \textsf{emptypage}.
+It is highly recommended to not include these packages in the preamble of your document because already loaded by \textsf{sapthesis}.
+
+
+
+
+
+\section{Usage}
+
+A \LaTeX\ document based on \textsf{sapthesis} can be compiled only by the commands
+\texttt{pdflatex} and \texttt{xelatex}. In this manual only \texttt{pdflatex} will be considered.
+
+
+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 correct 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 that it is important to follow a source code structure similar to those of the examples given in Sec.~\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.
+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\}}.
+
+\subsection{Class options}
+\label{class_options}
+These options can be passed in the documentclass command.
+
+\begin{description}
+\item[\texttt{PhD}, \texttt{PhDA}, \texttt{PhDB}] The last two options are respectively for PhD theses in Physics and Mathematics. If your PhD is not in Physics or Mathematics, use the simple \texttt{PhD} option. (``Dottorato di ricerca'')
+\item[\texttt{LaM}] Option to typeset a Laurea Magistrale thesis. (``Laurea Specialistica'')
+\item[\texttt{Lau}] Option to typeset a Laurea thesis. (``Laurea Triennale'')
+\item[\texttt{MasterP}, \texttt{MasterS}] Options to typeset a thesis for a
+First level master (``Master di primo livello'') and a Second level master (``Master di secondo livello'') respectively.
+\item[\texttt{draft}] This is the usual draft option of the \LaTeX\ Standard Classes
+\item[\texttt{oneside}] The usual oneside option of the \LaTeX\ Standard Classes
+\item[\texttt{twoside}] (default) The usual twoside option of the \LaTeX\ Standard Classes
+
+\item[\texttt{bn}] This option typesets the frontispiece in black and white
+(using the b/w logo, \texttt{marchiologo\_nero\_positivo.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 the text column.
+It is useful to take in account the margin for the binding (ask to your bookbinder for information).
+\item[\texttt{noexaminfo}] Remove the final exam informations.
+\item[\texttt{italian} or \texttt{english}] Explicitly declare the language of
+the frontispiece. Useful when you want to write the frontispiece in a language
+and the thesis in a different language.
+\item[\texttt{nodefaultfont}] To be documented.
+\item[\texttt{romandiff}] See App.~\ref{sec:usefulcommands}.
+\end{description}
+
+\subsection[Commands for the\\ titlepage]{Commands for the titlepage}
+\label{commands_titlepage}
+
+As usual, the titlepage is generated by the \texttt{\bs maketitle} command.
+It needs some information that you can supply by the following commands
+in the preamble of the document.
+\begin{description}
+\item[\texttt{\bs title\{\dots\}}] Mandatory.
+
+\item[\texttt{\bs author\{\dots\}}] Mandatory
+
+\item[\texttt{\bs IDnumber\{\dots\}}] Mandatory. Your ID number (\textit{matricola} in italian)
+
+\item[\texttt{\bs course[\dots]\{\dots\}}] Use Italian. Mandatory except for PhDA and PhDB options. The optional argument specifies the course name in another language, which is needed only in the case of PhD's.
+
+\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory except for PhDA and PhDB options.
+
+\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 copyyear\{\dots\}}] Mandatory. Copyright year (usually the
+year of your graduation).
+
+\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\}}] 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 examdate\{\dots\}}] Optional. Date of the final exam.
+Use the form\\ \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 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}
+
+
+
+\subsection[Other commands\\ and environments]{Other commands and environments}
+
+\begin{description}
+
+\item[\texttt{\bs dedication\{\dots\}}] A command to compose the dedication.
+
+\item[\texttt{abstract}] An environment to compose the abstract of your document.
+
+\item[\texttt{acknowledgments}] An environment to compose the acknowledgments of your document. This environment has an optional parameter to choose the title of the acknowledgments section.
+If you use a language for the acknowledgments different from that of the thesis, consider the \texttt{\bs selectlanguage\{\dots\}} command provided by the \texttt{babel} package.
+
+
+\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}
+
+
+\section{Recommendations}
+
+\begin{itemize}
+
+\item Do \textbf{not} change the default layout and do \textbf{not} use packages which can modify the layout of your thesis.
+
+
+\item As you already should know, \LaTeX\ can process only document
+in pure ASCII. If you want to insert \emph{directly} other characters, non 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} or \texttt{inputenx}.
+
+However, if your thesis is in English, I suggest to avoid the use of a particular text encoding for the source code because you will insert non ASCII characters very seldom. For this reason it is better to write these characters by the usage of the \LaTeX\ commands (for example \texttt{\bs\sq e} for the \'e letter), avoiding to load \texttt{inputenc} or \texttt{inputenx} package. This has another advantage, in fact your source file will be very portable.
+
+\item Respect the following thesis structure:
+
+\begin{itemize}
+\item Title page (\texttt{\bs maketitle} command)
+\item Dedication (\texttt{\bs dedication} command)
+\item Abstract (\texttt{abstract} environment)
+\item Acknowledgements (\texttt{acknowledgments} environment)
+\item Table of contents (\texttt{\bs tableofcontens} command)
+\item Chapters
+\item Appendices
+\item Bibliography
+\end{itemize}
+
+\item It is recommended to avoid or limit the acknowledgments in a thesis, it
+is not very professional. The dedication should be enough.
+
+\item Do not put any preface in your thesis. The preface should be written only by an eminent expert in the field to comment exceptionally important results of the student.
+
+\item Usually tables and figures are centered. Remember that, according to the typographic rules, \emph{the table captions should be placed above the table}, whereas the figure caption should be placed 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}).
+
+\item Avoid the use of colors unless really necessary. Remember that the figures should be readable even if they are printed in gray scale!
+
+\item Subscripts and superscripts should be in italic if they represent variable quantities, whereas should be in roman if they are simply labels.
+
+\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 \emph{should not be used in a thesis}.
+
+\item Do not divide the bibliography per chapter unless it is 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.
+
+\end{itemize}
+
+
+
+% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
+\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}, (2011)}
+
+\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}, (2008)}
+
+\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}, (2009)}
+\end{thebibliography}
+
+
+\appendix
+
+\clearpage
+\section{PhD thesis example}
+\label{sec:PhDexample}
+
+\begin{lstlisting}
+\documentclass[binding=0.6cm,PhD]{sapthesis}
+
+\usepackage{microtype}
+\usepackage{hyperref}
+\hypersetup{pdftitle={My thesis},pdfauthor={Francesco Biccari}}
+
+\title{My thesis}
+\author{Francesco Biccari}
+\IDnumber{123456}
+\course[Philology]{Filologia}
+\courseorganizer{Scuola di Dottorato in Scienze Filologiche}
+\cycle{XXII}
+\submitdate{October 2009}
+\copyyear{2009}
+\advisor{Prof. Caio}
+\advisor{Dr. Sempronio}
+\authoremail{pippo@pippo.com}
+
+\begin{document}
+
+\frontmatter
+\maketitle
+\dedication{Dedicated to\\ Donald Knuth}
+
+\begin{abstract}
+This thesis deals with myself.
+\end{abstract}
+
+\tableofcontents
+
+\mainmatter
+\chapter{Introduction}
+...
+
+\backmatter
+\cleardoublepage
+\phantomsection % Give this command only if hyperref is loaded
+\addcontentsline{toc}{chapter}{\bibname}
+% Here put the code for the bibliography. You can use BibTeX or
+% the BibLaTeX package or the simple environment thebibliography.
+
+\end{document}
+\end{lstlisting}
+
+
+\clearpage
+\section[Laurea (Magistrale)\\ thesis example]{Laurea (Magistrale) thesis example}
+\label{sec:LaMexample}
+
+\begin{lstlisting}
+\documentclass[binding=0.6cm,Lau]{sapthesis} % LaM for a Laurea Magistrale
+
+\usepackage{microtype}
+\usepackage[italian]{babel}
+\usepackage[utf8]{inputenx}
+\usepackage{hyperref}
+\hypersetup{pdftitle={La mia tesi},pdfauthor={Francesco Biccari}}
+
+\title{La mia tesi}
+\author{Francesco Biccari}
+\IDnumber{123456}
+\course{Fisica}
+\courseorganizer{Facolt|\`a| di Scienze Matematiche, Fisiche e Naturali}
+\submitdate{2011/2012}
+\copyyear{2012}
+\advisor{Prof. Caio}
+\advisor{Dr. Sempronio}
+\authoremail{pippo@pippo.com}
+
+\begin{document}
+
+\frontmatter
+\maketitle
+\dedication{Dedicato a\\ Donald Knuth}
+
+\begin{abstract}
+Questa tesi parla di me.
+\end{abstract}
+
+\tableofcontents
+
+\mainmatter
+\chapter{Introduzione}
+...
+
+\backmatter
+\cleardoublepage
+\phantomsection % Give this command only if hyperref is loaded
+\addcontentsline{toc}{chapter}{\bibname}
+% Here put the code for the bibliography. You can use BibTeX or
+% the BibLaTeX package or the simple environment thebibliography.
+
+\end{document}
+\end{lstlisting}
+
+\clearpage
+\section{Other useful commands}
+\label{sec:usefulcommands}
+
+\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\}\{\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 pder[\dots]\{\dots\}\{\dots\}}] Partial derivative. Same as above
+
+\item[\texttt{\bs rb\{\dots\}}] Roman suBscript
+
+\item[\texttt{\bs rp\{\dots\}}] Roman suPerscript
+
+\item[\texttt{\bs tb\{\dots\}}] Text suBscript
+
+\item[\texttt{\bs tp\{\dots\}}] Text suPerscript
+
+\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.
+
+\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}).
+
+\item[\texttt{\bs A}] Angstrom. Example: \texttt{10\bs ,\bs A} produces 10\,\A.
+
+\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 give the option \texttt{romandiff} in the document class options.
+
+\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}
+
+\addtocontents{toc}{\protect\end{multicols}}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.pdf b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.pdf
new file mode 100644
index 00000000000..59eec4c4e2c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.tex b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.tex
new file mode 100644
index 00000000000..9195d9a3ded
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sapthesis/sapthesis-example.tex
@@ -0,0 +1,259 @@
+\documentclass[binding=0.6cm,PhD]{sapthesis}
+
+% CLASS OPTIONS:
+% PhD: generic PhD
+% PhDA: PhD in physics
+% PhDB: PhD in mathematics
+% LaM: Laurea Magistrale
+% Lau: Laurea
+% noexaminfo: no information about the final exam
+
+% REQUIRED COMMANDS
+% title
+% author
+% IDnumber
+% course (not mandatory if you use PhDA or PhDB)
+% courseorganizer (not mandatory if you use PhDA or PhDB)
+% cycle (only for PhD, PhDA, PhDB)
+% submitdate (use month and year for PhD whereas use XXXX/YYYY academic year for Laurea)
+% copyyear
+% advisor (at least one)
+% authoremail
+
+
+
+% OPTIONAL COMMANDS
+% coadvisor
+% examdate
+% examiner
+% versiondate
+% website
+% ISBN
+
+
+
+% if pdfLaTeX is used load also:
+\usepackage{microtype}
+% if you write in italian:
+%\usepackage[italian]{babel}
+% \usepackage[utf8]{inputenx}
+
+\usepackage{hyperref}
+\hypersetup{colorlinks=true,
+ linkcolor=blue,
+ anchorcolor=blue,
+ citecolor=blue,
+ urlcolor=blue,
+ pdftitle={Sapthesis class example},
+ pdfauthor={Francesco Biccari}}
+
+% dummy text
+\usepackage{lipsum}
+
+% custom commands
+\newcommand{\bs}{\textbackslash}
+
+\title{How to waste time}
+\author{Francesco Biccari}
+\IDnumber{123456}
+\course[Physics]{Fisica} % only one argument for Laurea and Laurea Magistrale
+\courseorganizer{Scuola di dottorato in Scienze Avanzatissime}
+\cycle{XXII}
+\submitdate{April 2010}
+\copyyear{2010}
+\advisor{Prof. Caio Rossi}
+\advisor{Dr. Sempronio Rossi}
+\coadvisor{Dr. Lampa Dina}
+\authoremail{pippo@pippo.com}
+
+\examdate{16 April 2010}
+\examiner{Prof. Enrico Gregorio}
+\examiner{Dr. Lorenzo Pantieri}
+\versiondate{1 May 2010}
+\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 ragazzi
+del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare,
+verso il Prof. Enrico Gregorio.
+\end{acknowledgments}
+
+\tableofcontents
+
+\chapter{Non numbered chapter}
+
+
+\lipsum[1-10]
+
+\mainmatter
+\chapter{Style features of \textsf{sapthesis} (this is a numbered chapter)}
+
+The page is fixed at the dimensions of an A4 paper. The font dimension is fixed at 11\, pt and 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 heigth and the text width are in golden ratio (\textasciitilde 1.62) as well as the outer and inner margins in a two-side document after binding margin removal.
+The top margin and bottom margin are instead in the ratio $1\colon\sqrt{2}$. Finally the header and the footer style have been modified by the \texttt{fancyhdr} package.
+
+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)
+
+The titlepage is automatically composed when the \texttt{\bs maketitle} command is given.
+The parameters needed for the titlepage, author, title, etc\ldots , are supplied
+by dedicated commands explained in the next section.
+A copy of the logo, in \texttt{pdf} or in \texttt{eps} format, must be present in the root directory of the thesis.
+These files are supplied in the \texttt{sapthesis.zip} archive.
+
+
+%\section{Common problems}
+%
+%\subsection{Compose a system of equation in displaystyle}
+%
+%Using the array environment to typeset a system of equation has the problem that the mathematics is
+%in textstyle. Usually a student wants the displaystyle. Instead of using \texttt{\bs dfrac} and so on\ldots
+%which produce the wrong vertical spacing, I suggest the following environment definition in the
+%preamble of the document:
+%\begin{lstlisting}
+%\usepackage{mathtools}
+%\usepackage{cases}
+%
+%\newenvironment{system*}%
+%{\begin{displaymath}\left\lbrace \begin{lgathered}}%
+%{\end{lgathered} \right. \end{displaymath}\ignorespacesafterend}
+%
+%\newenvironment{system}[1][]%
+%{\begin{equation}#1\left\lbrace \begin{lgathered}}%
+%{\end{lgathered} \right. \end{equation}\ignorespacesafterend}
+%
+%\newenvironment{subsystem}[1][]%
+%{\begin{subnumcases}{#1}}%
+%{\end{subnumcases}\ignorespacesafterend}
+%\end{lstlisting}
+%
+%\texttt{system*} is for unnumbered systems, \texttt{system} for numbered systems with a number
+%for the entire system and \texttt{subsystem} for numbered system with a subnumbered equations
+%(1a, 1b,\ldots). The optional argument is used to attach a label to the system.
+%
+%Example of usage:
+%\begin{lstlisting}
+%\begin{system}[\label{eq:nice_system}]
+% a=b \\
+% c=d
+%\end{system}
+%\end{lstlisting}
+%
+%However if you do not want to load mathtools package you can use the aligned environment
+%of the amsmath package (already loaded in sapthesis). Example:
+%\begin{lstlisting}
+%\begin{equation}
+% \label{eq:nice_system}
+% \left\lbrace
+% \begin{aligned}
+% & a=b \\
+% & c=d
+% \end{aligned}
+% \right.
+%\end{equation}
+%\end{lstlisting}
+%Notice the usage of the ampersand (\&) used to align to the left the content of the system.
+%
+
+
+\section{A section}
+\lipsum[1-10]
+
+\section{Another section}
+\lipsum
+
+\chapter{Some floating objects and some maths}
+
+\begin{figure}
+\centering
+\includegraphics[width=0.8\textwidth]{marchiologo_rosso_positivo}\\[3ex]
+\includegraphics[width=0.8\textwidth]{marchiologo_nero_positivo}
+\caption{Use vector images as much as possible! \LaTeX\ supports the eps vector image format whereas pdf\LaTeX\ supports the pdf format (and the eps by the epstopdf package).}
+\label{fig:largenenough}
+\end{figure}
+
+\lipsum
+
+\begin{table}
+\caption{This is a simple table. Remember to typeset
+always the table caption above the table. Do not use vertical lines.}
+\label{tab:letters}
+\centering
+\begin{tabular}{lcc}
+\toprule
+Letter & Test & Test \\
+\midrule
+A & C & E \\
+B & D & F \\
+\bottomrule
+\end{tabular}
+\end{table}
+
+\lipsum
+
+And now a simple equation. Note the form of the equation number.
+\begin{equation}
+x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
+\end{equation}
+
+\lipsum
+
+\appendix
+\chapter{Some special commands}
+
+Some important numbers (we have used the commands \texttt{\bs eu} and \texttt{\bs iu}):
+\begin{equation}
+\eu^{\iu\pi}+1=0
+\end{equation}
+
+\noindent Derivatives (we have used the commands \texttt{\bs der} and \texttt{\bs pder}):
+\begin{equation}
+\der{f}{x} \qquad \pder[2]{f}{y}
+\end{equation}
+
+\noindent Subscripts and superscripts (we have used the commands \texttt{\bs rb} and \texttt{\bs rs}):
+\[
+a_b \neq a\rb{b}\qquad a^b \neq a\rp{b}
+\]
+
+\noindent Unit of measurements (we have used the command \texttt{\bs un}): $25\un{m}$, $3.5\un{m/s}$
+
+\noindent Other commands: (\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, (\$7 \bs x 10\^{}5\$) $7 \x 10^5$. And finally (\texttt{\bs di})
+\[
+\int x \di x
+\]
+
+\medskip
+\lipsum
+\mnote{This is a fancy margin note!}
+\lipsum
+
+\backmatter
+% bibliography
+%\cleardoublepage
+%\bibliographystyle{sapthesis} % BibTeX style
+%\bibliography{bibliography} % BibTeX database without .bib extension
+
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
new file mode 100644
index 00000000000..ba30bf5aa04
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
@@ -0,0 +1,821 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% sapthesis.cls %%
+%% version 2.8 %%
+%% 2011-09-13 %%
+%% author: Francesco Biccari %%
+%% contact: biccari@gmail.com %%
+%% %%
+%% This file is the LaTeX class for the thesis style %%
+%% of the "Sapienza" -- University of Rome %%
+%% %%
+%% see README for license information and installation %%
+%% see sapthesis-doc.pdf for usage %%
+%% see sapthesis-example.pdf for document examples %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Identification %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{sapthesis}%
+[2011/09/13 Sapienza - University of Rome thesis class]
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage{xkeyval}
+\newlength{\SAP@binding}
+\newif\ifSAP@nodefaultfont \SAP@nodefaultfontfalse
+\newif\ifSAP@romandiff \SAP@romandifffalse
+\newif\ifSAP@customlanguage \SAP@customlanguagefalse
+\newif\ifSAP@bn \SAP@bnfalse
+\newif\ifSAP@PhD \SAP@PhDfalse
+\newif\ifSAP@PhDA \SAP@PhDAfalse
+\newif\ifSAP@PhDB \SAP@PhDBfalse
+\newif\ifSAP@MasterP \SAP@MasterPfalse
+\newif\ifSAP@MasterS \SAP@MasterSfalse
+\newif\ifSAP@LaM \SAP@LaMfalse
+\newif\ifSAP@Lau \SAP@Laufalse
+\newif\ifSAP@noexaminfo \SAP@noexaminfofalse
+\newcommand{\SAP@customlanguage}{}
+
+\define@key[sap]{}{noexaminfo}[]{\SAP@noexaminfotrue}
+\define@key[sap]{}{nodefaultfont}[]{\SAP@nodefaultfonttrue}
+\define@key[sap]{}{romandiff}[]{\SAP@romandifftrue}
+\define@key[sap]{}{italian}[]{\SAP@customlanguagetrue\renewcommand{\SAP@customlanguage}{\SAP@italian}}
+\define@key[sap]{}{english}[]{\SAP@customlanguagetrue\renewcommand{\SAP@customlanguage}{\SAP@english}}
+\define@key[sap]{}{bn}[]{\SAP@bntrue\PassOptionsToPackage{monochrome}{color}\PassOptionsToPackage{monochrome}{xcolor}}
+\define@key[sap]{}{PhD}[]{\SAP@PhDtrue}
+\define@key[sap]{}{LaM}[]{\SAP@LaMtrue}
+\define@key[sap]{}{Lau}[]{\SAP@Lautrue}
+\define@key[sap]{}{PhDA}[]{\SAP@PhDAtrue\SAP@PhDtrue}
+\define@key[sap]{}{PhDB}[]{\SAP@PhDBtrue\SAP@PhDtrue}
+\define@key[sap]{}{MasterP}[]{\SAP@MasterPtrue\SAP@MasterPtrue}
+\define@key[sap]{}{MasterS}[]{\SAP@MasterStrue\SAP@MasterStrue}
+\define@key[sap]{}{binding}[0pt]{\setlength{\SAP@binding}{#1}}
+\define@key[sap]{}{draft}[]{\PassOptionsToClass{draft}{book}}
+\define@key[sap]{}{oneside}[]{\PassOptionsToClass{oneside}{book}}
+\define@key[sap]{}{twoside}[]{}
+\DeclareOptionX*{\ClassError{sapthesis}{Option '\CurrentOption'%
+ \MessageBreak is not valid}{Remove '\CurrentOption' %
+ from class options}}
+\ProcessOptionsX[sap]<>
+\LoadClass[a4paper,11pt]{book}
+
+
+\ifSAP@PhD\relax\else
+ \ifSAP@LaM\relax\else
+ \ifSAP@Lau\relax\else
+ \ifSAP@MasterP\relax\else
+ \ifSAP@MasterS\relax\else
+ \ClassError{sapthesis}{You must specify the PhD, LaM, Lau, %
+ MasterP or MasterS option}{You can use also special options PhDA, PhDB, ...}
+ \fi
+ \fi
+ \fi
+ \fi
+\fi
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Page layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage{geometry}
+\geometry{textwidth=396pt,
+ textheight=650pt,
+ marginparsep=12pt,
+ bindingoffset=\SAP@binding,
+ hmarginratio=61:99,
+ vmarginratio=72:99,
+ heightrounded,
+ marginparwidth=72pt}
+
+\if@twoside
+ \geometry{hmarginratio=61:99}
+\else
+ \geometry{hmarginratio=1:1}
+\fi
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{ifxetex}
+\ifxetex
+ \RequirePackage{xltxtra}
+\else
+ \ifSAP@nodefaultfont\relax\else
+ \RequirePackage[T1]{fontenc}
+ \RequirePackage{textcomp}
+ \RequirePackage{lmodern}
+ \fi
+\fi
+\RequirePackage{caption}
+\captionsetup{indention=\parindent,labelfont={small,bf},labelsep=period,%
+ tableposition=top,textfont={small}}
+\RequirePackage{graphicx}
+\RequirePackage{color}
+\RequirePackage{booktabs}
+\RequirePackage{amsmath}
+\RequirePackage{fancyhdr}
+\RequirePackage{emptypage}
+
+\newcommand{\SAP@twosidestyle}{%
+\pagestyle{fancy}
+\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ ##1}{}}
+\renewcommand{\sectionmark}[1]{\markright{\thesection\ ##1}}
+\fancyhf{}
+\fancyhead[LE,RO]{\small\bfseries\thepage}
+\fancyhead[LO]{\small\bfseries\nouppercase{\rightmark}}
+\fancyhead[RE]{\small\bfseries\nouppercase{\leftmark}}
+\renewcommand{\headrulewidth}{0.4pt}
+\renewcommand{\footrulewidth}{0pt}
+\addtolength{\headheight}{0.4pt} % Riserva spazio per la linea
+}
+
+\newcommand{\SAP@onesidestyle}{%
+\pagestyle{fancy}
+\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ ##1}{}}
+\fancyhf{}
+\fancyhead[R]{\small\bfseries\thepage}
+\fancyhead[L]{\small\bfseries\nouppercase{\leftmark}}
+\renewcommand{\headrulewidth}{0.4pt}
+\renewcommand{\footrulewidth}{0pt}
+\addtolength{\headheight}{0.4pt} % Riserva spazio per la linea
+}
+
+\fancypagestyle{plain}{%
+\renewcommand{\headrulewidth}{0pt}%
+\fancyhf{}\fancyfoot[C]{\small\bfseries\thepage}}
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% numbering objects per chapters (e.g. 1.1, 1.2, ...) %%%%%%%%%%%%%%
+
+\numberwithin{equation}{chapter}
+\numberwithin{figure}{chapter}
+\numberwithin{table}{chapter}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Fancy headers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\g@addto@macro\frontmatter{\pagestyle{plain}}
+\g@addto@macro\mainmatter{%
+ \if@twoside\SAP@twosidestyle\else\SAP@onesidestyle\fi%
+}
+
+% fancy marginnote
+% footnotesize marginpar
+\g@addto@macro\@marginparreset{\footnotesize\itshape}
+% new command for fancy margin note
+\newcommand{\mnote}[1]{\marginpar[\raggedleft #1]{\raggedright #1}}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% redefinition of the \maketitle command to generate the titlepage %
+
+%% GENERAL COMMANDS
+
+\newcommand\@courseorganizerLabel{}
+\newcommand\@courseLabel{}
+\newcommand\@PhDcourseDeclarationLabel{}
+\ifSAP@PhDA
+ \renewcommand\@courseorganizerLabel{Scuola di Dottorato in Scienze Astronomiche,\\
+ Chimiche, Fisiche e Matematiche ``Vito Volterra''}
+ \renewcommand\@courseLabel{Fisica}
+ \renewcommand\@PhDcourseDeclarationLabel{Physics}
+\fi
+\ifSAP@PhDB
+ \renewcommand\@courseorganizerLabel{Scuola di Dottorato in Scienze Astronomiche,\\
+ Chimiche, Fisiche e Matematiche ``Vito Volterra''}
+ \renewcommand\@courseLabel{Matematica}
+ \renewcommand\@PhDcourseDeclarationLabel{Mathematics}
+\fi
+\newcommand{\courseorganizer}[1]{\renewcommand\@courseorganizerLabel{#1}}
+\newcommand{\course}[2][]{%
+ \renewcommand\@courseLabel{#2}
+ \renewcommand\@PhDcourseDeclarationLabel{\if?#1?\@courseLabel\else#1\fi}}
+
+\newcommand\@copyyear{}
+\newcommand{\copyyear}[1]{\renewcommand\@copyyear{#1}}
+
+\newcommand\@cycle{}
+\newcommand{\cycle}[1]{\renewcommand\@cycle{#1}}
+
+\newcommand\@submitdate{}
+\newcommand{\submitdate}[1]{\renewcommand\@submitdate{#1}}
+
+\newcommand\@IDnumber{}
+\newcommand{\IDnumber}[1]{\renewcommand\@IDnumber{#1}}
+
+\newcount\SAP@advisorcount
+\newtoks\SAP@advisortoks
+\newcommand{\advisor}[1]{%
+ \ifnum\SAP@advisorcount=\z@
+ \SAP@advisortoks={#1}%
+ \else
+ \SAP@advisortoks=\expandafter{\the\SAP@advisortoks\\[0.75mm]#1}%
+ \fi
+ \advance\SAP@advisorcount\@ne}
+
+\newcount\SAP@coadvisorcount
+\newtoks\SAP@coadvisortoks
+\newcommand{\coadvisor}[1]{%
+ \ifnum\SAP@coadvisorcount=\z@
+ \SAP@coadvisortoks={#1}%
+ \else
+ \SAP@coadvisortoks=\expandafter{\the\SAP@coadvisortoks\\[0.75mm]#1}%
+ \fi
+ \advance\SAP@coadvisorcount\@ne}
+
+\newcount\SAP@examinercount
+\newtoks\SAP@examinertoks
+\newcommand{\examiner}[1]{%
+ \ifnum\SAP@examinercount=\z@
+ \SAP@examinertoks={#1 (\@chairman)}%
+ \else
+ \SAP@examinertoks=\expandafter{\the\SAP@examinertoks\\[0.75mm]#1}%
+ \fi
+ \advance\SAP@examinercount\@ne}
+
+\newcommand\@examdate{}
+\newcommand{\examdate}[1]{\renewcommand\@examdate{#1}}
+
+\newcommand\@versiondate{}
+\newcommand{\versiondate}[1]{\renewcommand\@versiondate{#1}}
+
+\newcommand\@authoremail{}
+\newcommand{\authoremail}[1]{\renewcommand\@authoremail{#1}}
+
+\newcommand\@website{}
+\newcommand{\website}[1]{\renewcommand\@website{#1}}
+
+\newcommand\@ISBN{}
+\newcommand{\ISBN}[1]{\renewcommand\@ISBN{#1}}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% PhD maketitle
+
+\newcommand{\maketitlePhD}{
+
+% Errors:
+
+\if|\@courseorganizerLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
+ organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi
+\if|\@courseLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
+ course}{Example: \protect\course{Fisica}{Physics}}\fi
+\if|\@cycle|\ClassError{sapthesis}{You must specify the Ph.D. %
+ cycle (cycle)}{The Ph.D. cycle must be in the roman numbers}\fi
+\if|\@submitdate|\ClassError{sapthesis}{You must specify the %
+ thesis submission date}{The date must be in the form Month(name) Year(number)}\fi
+\if|\@copyyear|\ClassError{sapthesis}{You must specify the %
+ copyright year}{Example: \protect\copyyear{2012}}\fi
+\if|\@IDnumber|\ClassError{sapthesis}{You must specify your %
+ ID number (matricola)}{E.g. 123456}\fi
+\if|\@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
+ Example: \protect\authoremail{author@email.com}}\fi
+
+% Titlepage:
+
+ \begin{titlepage}
+
+ \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
+ \parindent=0pt
+ \sffamily
+
+ \vspace*{-10mm}
+ \ifSAP@bn
+ \includegraphics[width=5cm]{marchiologo_nero_positivo}
+ \else
+ \includegraphics[width=5cm]{marchiologo_rosso_positivo}
+ \fi
+
+ \nointerlineskip
+ \vspace{\stretch{1}}
+ \nointerlineskip
+
+ \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
+
+ \vspace{\stretch{1}}
+
+ \SAP@parbox[3cm]{%
+ \textcolor{sapred}{\@courseorganizerLabel\\[2mm]
+ Dottorato di Ricerca in \@courseLabel\ -- \@cycle\ Ciclo}}
+
+ \SAP@parbox[3cm]{%
+ \@CandidateLabel\\[2mm]
+ \@author\\[0.75mm]
+ \@IDnumberLabel\ \@IDnumber}
+
+
+
+
+ \SAP@parbox[4.5cm]{%
+ \makebox[11.9cm][l]{%
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \@ThesisAdvisorLabel\\[2mm]
+ \else
+ \@ThesisAdvisorsLabel\\[2mm]
+ \fi
+ \the\SAP@advisortoks}
+ \hspace{1.5cm}
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \@ThesisCoAdvisorLabel\\[2mm]
+ \else
+ \@ThesisCoAdvisorsLabel\\[2mm]
+ \fi
+ \the\SAP@coadvisortoks}
+ }}
+
+ \SAP@parbox{\@DeclarationLabel\ \@PhDcourseDeclarationLabel\\[2mm]
+ \@submitdate}
+
+ \end{titlepage}
+\clearpage
+\thispagestyle{empty}
+
+\ifSAP@noexaminfo
+\null
+\vfill
+\else
+\vspace*{\stretch{0.1}}
+
+\noindent
+\if?\@examdate?
+ \@ThesisNotDefensedLabel%
+\else
+ \@ThesisDefensedLabelA\ \@examdate\\
+ \@ThesisDefensedLabelB:\\[2mm]
+ \the\SAP@examinertoks%
+\fi
+
+\vspace{\stretch{0.8}}
+
+\fi
+
+\noindent
+\@author. \textit{\def\\{}\def\newline{} \@title.} \\[0.75mm]
+\@PhDthesistype. \@sapienzaname \\[0.75mm]
+\copyright\ \@copyyear\quad%
+\if|\@ISBN|
+ \relax%
+\else
+ ISBN: \@ISBN %
+\fi
+
+\begin{flushright}
+\if|\@versiondate|
+ \relax%
+\else
+ \textsc{\@versionLabel:} \@versiondate \\[2mm]%
+\fi
+\if|\@website|
+ \relax%
+\else
+ \textsc{\@websiteLabel:} \@ifundefined{href}{\@website}{\href{\@website}{\@website}} \\[2mm]%
+\fi
+\textsc{email:} \@ifundefined{href}{\@authoremail}{\href{mailto:\@authoremail}{\@authoremail}}\par
+\end{flushright}
+
+\cleardoublepage
+}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Laurea and Laurea Magistrale maketitle
+
+\newcommand{\maketitleLaurea}{
+
+% Errors:
+
+\if|\@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
+ organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
+\if|\@submitdate|\ClassError{sapthesis}{You must specify the Academic %
+ Year}{Example: \protect\submitdate{2011/2012}}\fi
+\if|\@IDnumber|\ClassError{sapthesis}{You must specify your %
+ ID number (matricola)}{E.g. 123456}\fi
+\if|\@copyyear|\ClassError{sapthesis}{You must specify the %
+ copyright year}{Example: \protect\copyyear{2012}}\fi
+\if|\@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
+ Example: \protect\authoremail{author@email.com}}\fi
+
+% Titlepage:
+
+ \begin{titlepage}
+
+ \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
+ \parindent=0pt
+ \sffamily
+
+ \vspace*{-10mm}
+ \ifSAP@bn
+ \includegraphics[width=5cm]{marchiologo_nero_positivo}
+ \else
+ \includegraphics[width=5cm]{marchiologo_rosso_positivo}
+ \fi
+
+ \nointerlineskip
+ \vspace{\stretch{0.9}}
+ \nointerlineskip
+
+ \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
+
+ \vspace{\stretch{0.9}}
+
+ \SAP@parbox[3cm]{%
+ \textcolor{sapred}{\@courseorganizerLabel\\[2mm]
+ Corso di Laurea \ifSAP@LaM Magistrale \fi in \@courseLabel}}
+
+ \SAP@parbox[3cm]{%
+ \@CandidateLabel\\[2mm]
+ \@author\\[0.75mm]
+ \@IDnumberLabel\ \@IDnumber}
+
+ \SAP@parbox[4.5cm]{%
+ \makebox[11.9cm][l]{%
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \@ThesisAdvisorLabel\\[2mm]
+ \else
+ \@ThesisAdvisorsLabel\\[2mm]
+ \fi
+ \the\SAP@advisortoks}
+ \hspace{1.5cm}
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \@ThesisCoAdvisorLabel\\[2mm]
+ \else
+ \@ThesisCoAdvisorsLabel\\[2mm]
+ \fi
+ \the\SAP@coadvisortoks}
+ }}
+
+ \SAP@parbox{\@AcademicYearLabel\ \@submitdate}
+
+ \end{titlepage}
+\clearpage
+\thispagestyle{empty}
+
+\ifSAP@noexaminfo
+\null
+\vfill
+\else
+\vspace*{\stretch{0.1}}
+
+\noindent
+\if?\@examdate?
+ \@ThesisNotDefensedLabel%
+\else
+ \@ThesisDefensedLabelA\ \@examdate\\
+ \@ThesisDefensedLabelB:\\[2mm]
+ \the\SAP@examinertoks%
+\fi
+
+\vspace{\stretch{0.8}}
+\fi
+
+\noindent
+\@author. \textit{\def\\{}\def\newline{} \@title.} \\[0.75mm]
+\ifSAP@Lau\@Lauthesistype\else\@LaMthesistype\fi. \@sapienzaname \\[0.75mm]
+\copyright\ \@copyyear\quad%
+\if|\@ISBN|
+ \relax%
+\else
+ ISBN: \@ISBN %
+\fi
+
+\begin{flushright}
+\if|\@versiondate|
+ \relax%
+\else
+ \textsc{\@versionLabel:} \@versiondate \\[2mm]%
+\fi
+\if|\@website|
+ \relax%
+\else
+ \textsc{\@websiteLabel:} \@ifundefined{href}{\@website}{\href{\@website}{\@website}} \\[2mm]%
+\fi
+\textsc{email:} \@ifundefined{href}{\@authoremail}{\href{mailto:\@authoremail}{\@authoremail}}\par
+\end{flushright}
+
+\cleardoublepage
+}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Master di primo livello and
+%% Master di secondo livello maketitle
+
+\newcommand{\maketitleMaster}{
+
+% Errors:
+
+\if|\@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
+ organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
+\if|\@submitdate|\ClassError{sapthesis}{You must specify the Academic %
+ Year}{Example: \protect\submitdate{2011/2012}}\fi
+\if|\@IDnumber|\ClassError{sapthesis}{You must specify your %
+ ID number (matricola)}{E.g. 123456}\fi
+\if|\@copyyear|\ClassError{sapthesis}{You must specify the %
+ copyright year}{Example: \protect\copyyear{2012}}\fi
+\if|\@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
+ Example: \protect\authoremail{author@email.com}}\fi
+
+% Titlepage:
+
+ \begin{titlepage}
+
+ \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
+ \parindent=0pt
+ \sffamily
+
+ \vspace*{-10mm}
+ \ifSAP@bn
+ \includegraphics[width=5cm]{marchiologo_nero_positivo}
+ \else
+ \includegraphics[width=5cm]{marchiologo_rosso_positivo}
+ \fi
+
+ \nointerlineskip
+ \vspace{\stretch{0.9}}
+ \nointerlineskip
+
+ \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
+
+ \vspace{\stretch{0.9}}
+
+ \SAP@parbox[3cm]{%
+ \textcolor{sapred}{\@courseorganizerLabel\\[2mm]
+ Master di \ifSAP@MasterP primo \fi \ifSAP@MasterS secondo \fi livello in \@courseLabel}}
+
+ \SAP@parbox[3cm]{%
+ \@CandidateLabel\\[2mm]
+ \@author\\[0.75mm]
+ \@IDnumberLabel\ \@IDnumber}
+
+ \SAP@parbox[4.5cm]{%
+ \makebox[11.9cm][l]{%
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \@ThesisAdvisorLabel\\[2mm]
+ \else
+ \@ThesisAdvisorsLabel\\[2mm]
+ \fi
+ \the\SAP@advisortoks}
+ \hspace{1.5cm}
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \@ThesisCoAdvisorLabel\\[2mm]
+ \else
+ \@ThesisCoAdvisorsLabel\\[2mm]
+ \fi
+ \the\SAP@coadvisortoks}
+ }}
+
+ \SAP@parbox{\@AcademicYearLabel\ \@submitdate}
+
+ \end{titlepage}
+\clearpage
+\thispagestyle{empty}
+
+\ifSAP@noexaminfo
+\null
+\vfill
+\else
+\vspace*{\stretch{0.1}}
+
+\noindent
+\if?\@examdate?
+ \@ThesisNotDefensedLabel%
+\else
+ \@ThesisDefensedLabelA\ \@examdate\\
+ \@ThesisDefensedLabelB:\\[2mm]
+ \the\SAP@examinertoks%
+\fi
+
+\vspace{\stretch{0.8}}
+\fi
+
+\noindent
+\@author. \textit{\def\\{}\def\newline{} \@title.} \\[0.75mm]
+\ifSAP@MasterP\@MasterPthesistype\else\@MasterSthesistype\fi. \@sapienzaname \\[0.75mm]
+\copyright\ \@copyyear\quad%
+\if|\@ISBN|
+ \relax%
+\else
+ ISBN: \@ISBN %
+\fi
+
+\begin{flushright}
+\if|\@versiondate|
+ \relax%
+\else
+ \textsc{\@versionLabel:} \@versiondate \\[2mm]%
+\fi
+\if|\@website|
+ \relax%
+\else
+ \textsc{\@websiteLabel:} \@ifundefined{href}{\@website}{\href{\@website}{\@website}} \\[2mm]%
+\fi
+\textsc{email:} \@ifundefined{href}{\@authoremail}{\href{mailto:\@authoremail}{\@authoremail}}\par
+\end{flushright}
+
+\cleardoublepage
+}
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Choosing the right \maketitle according to the
+%% type of the thesis
+
+\renewcommand{\maketitle}{%
+ \ifSAP@PhD\maketitlePhD\fi
+ \ifSAP@LaM\maketitleLaurea\fi
+ \ifSAP@Lau\maketitleLaurea\fi
+ \ifSAP@MasterS\maketitleMaster\fi
+ \ifSAP@MasterP\maketitleMaster\fi}
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% DEDICATION COMMAND %%
+\providecommand*{\dedication}[1]{%
+\cleardoublepage
+\thispagestyle{empty}
+\null\vspace{\stretch{0.26}}
+\begin{flushright}
+\textit{#1}
+\end{flushright}
+\vspace{\stretch{0.74}}\null}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% ABSTRACT ENVIRONMENT %%
+\newenvironment{abstract}[1][\@AbstractLabel]%
+{\cleardoublepage%
+ \null\begin{center}{\large \bfseries #1}\end{center}%
+}%
+{\null}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% ACKNOWLEDGMENTS ENVIRONMENT %%
+\newenvironment{acknowledgments}[1][\@AcknowledgmentsLabel]%
+{\cleardoublepage
+\null\begin{center}{\large \bfseries #1}\end{center}\itshape}%
+{\null}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% LANGUAGE COMMANDS %%
+
+\newcommand{\SAP@english}{%
+ \newcommand{\@CandidateLabel}{Candidate}
+ \newcommand{\@IDnumberLabel}{ID number}
+ \newcommand{\@ThesisAdvisorLabel}{Thesis Advisor}
+ \newcommand{\@ThesisAdvisorsLabel}{Thesis Advisors}
+ \newcommand{\@ThesisCoAdvisorLabel}{Co-Advisor}
+ \newcommand{\@ThesisCoAdvisorsLabel}{Co-Advisors}
+ \newcommand{\@DeclarationLabel}{A thesis
+ submitted in partial fulfillment of the requirements\\
+ for the degree of Doctor of Philosophy in}
+ \newcommand{\@ThesisNotDefensedLabel}{Thesis not yet defended}
+ \newcommand{\@ThesisDefensedLabelA}{Thesis defended on}
+ \newcommand{\@ThesisDefensedLabelB}{in front of a Board of Examiners composed by}
+ \newcommand{\@chairman}{chairman}
+ \newcommand{\@PhDthesistype}{Ph.D. thesis}
+ \newcommand{\@LaMthesistype}{Master thesis}
+ \newcommand{\@Lauthesistype}{Bachelor thesis}
+ \newcommand{\@MasterPthesistype}{First level master thesis}
+ \newcommand{\@MasterSthesistype}{Second level master thesis}
+ \newcommand{\@sapienzaname}{Sapienza -- University of Rome}
+ \newcommand{\@versionLabel}{version}
+ \newcommand{\@websiteLabel}{website}
+ \newcommand{\@AcknowledgmentsLabel}{Acknowledgments}
+ \newcommand{\@AbstractLabel}{Abstract}
+ \newcommand{\@AcademicYearLabel}{Academic Year}}
+
+\newcommand{\SAP@italian}{%
+ \newcommand{\@CandidateLabel}{Candidato}
+ \newcommand{\@IDnumberLabel}{Matricola}
+ \newcommand{\@ThesisAdvisorLabel}{Relatore}
+ \newcommand{\@ThesisAdvisorsLabel}{Relatori}
+ \newcommand{\@ThesisCoAdvisorLabel}{Correlatore}
+ \newcommand{\@ThesisCoAdvisorsLabel}{Correlatori}
+ \newcommand{\@DeclarationLabel}{Tesi presentata
+ in parziale adempimento dei requisiti necessari\\
+ per conseguire il titolo di Dottore di Ricerca in}
+ \newcommand{\@ThesisNotDefensedLabel}{Tesi non ancora discussa}
+ \newcommand{\@ThesisDefensedLabelA}{Tesi discussa il}
+ \newcommand{\@ThesisDefensedLabelB}{di fronte a una commissione esaminatrice composta da}
+ \newcommand{\@chairman}{presidente}
+ \newcommand{\@PhDthesistype}{Tesi di dottorato}
+ \newcommand{\@LaMthesistype}{Tesi di Laurea Magistrale}
+ \newcommand{\@Lauthesistype}{Tesi di Laurea}
+ \newcommand{\@MasterPthesistype}{Tesi di Master di primo livello}
+ \newcommand{\@MasterSthesistype}{Tesi di Master di secondo livello}
+ \newcommand{\@sapienzaname}{Sapienza -- Universit\`a di Roma}
+ \newcommand{\@versionLabel}{versione}
+ \newcommand{\@websiteLabel}{sito web}
+ \newcommand{\@AcknowledgmentsLabel}{Ringraziamenti}
+ \newcommand{\@AbstractLabel}{Sommario}
+ \newcommand{\@AcademicYearLabel}{Anno Accademico}}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% USEFUL COMMANDS %%
+
+\newcommand*{\SAP@upbox}[1]{\textrm{\upshape#1}}
+\AtBeginDocument{
+
+ \definecolor{sapred}{rgb}{0.5098039,0.1411765,0.2}
+
+ % scritte in funzione della lingua del documento. Default inglese.
+ \ifSAP@customlanguage
+ \SAP@customlanguage
+ \else
+ \@ifpackageloaded{babel}{\csname SAP@\languagename\endcsname}{%
+ \@ifpackageloaded{polyglossia}{\csname SAP@\languagename\endcsname}{\SAP@english}}
+ \fi
+
+ % degree
+ \providecommand{\degree}{\SAP@upbox{\textdegree}}
+ \providecommand{\g}{\degree}
+
+ % gradi Celsius
+ \providecommand{\celsius}{\ensuremath{\SAP@upbox{\textdegree}\kern-\scriptspace\mathrm{C}}}
+ \ifxetex
+ \ProvideTextCommandDefault{\C}{\celsius}
+ \else
+ \providecommand{\C}{\celsius}
+ \fi
+
+ % Angstrom
+ \providecommand{\angstrom}{\SAP@upbox{\AA}}
+ \providecommand{\A}{\angstrom}
+
+ % micro
+ \providecommand{\micro}{\SAP@upbox{\textmu}}
+
+ % Ohm
+ \providecommand{\ohm}{\SAP@upbox{\textohm}}
+
+ % times (only math)
+ \providecommand{\x}{\times}
+
+ % measurement unit
+ \providecommand*{\un}[1]{\ensuremath{\mathrm{\,#1}}}
+
+ % Napier's number
+ \providecommand{\eu}{\ensuremath{\mathrm{e}}}
+
+ % imaginary unit
+ \providecommand{\iu}{\ensuremath{\mathrm{i}}}
+
+ % roman subscript
+ \providecommand*{\rb}[1]{\ensuremath{_\mathrm{#1}}}
+
+ % roman superscript
+ \providecommand*{\rp}[1]{\ensuremath{^\mathrm{#1}}}
+
+ % differential (only math)
+ \ifSAP@romandiff
+ \providecommand{\di}{\mathop{}\!\mathrm{d}}
+ \else
+ \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}%
+ }
+
+ % subscript and superscript in text mode
+ \DeclareRobustCommand*\textsubscript[1]{\@textsubscript{\selectfont#1}}
+ \def\@textsubscript#1{{\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
+ \providecommand*{\tb}[1]{\textsubscript{#1}}
+ \providecommand*{\tp}[1]{\textsuperscript{#1}}
+} \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index eb13ca2883c..74813358198 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -324,7 +324,8 @@ my @TLP_working = qw(
rotfloat rotpages
roundbox rsc rsfs rsfso
rtkinenc rtklage russ rviewport rvwrite ryethesis
- sageep sansmath sauerj sauterfonts savefnmark savesym savetrees scale
+ sageep sansmath sapthesis sauerj sauterfonts
+ savefnmark savesym savetrees scale
scalebar schemabloc schwalbe-chess scientificpaper sciposter screenplay
sdrt
secdot section sectionbox sectsty selectp semantic semaphor
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 53b441b5ab7..71fbc11a6d6 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -751,6 +751,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'sae', "die 'skipping, nosell license'",
'saferef', "die 'skipping, nonfree license'",
'sagetex', "die 'skipping, omitted at author request (25 Jan 2010 19:50:16)'",
+ 'sapthesis', "&MAKEflatten", # so README.TEXLIVE ends up in doc dir
'schedule', "die 'skipping, noinfo license, too old to matter'",
'script', "die 'skipping, noinfo license, too old to matter'",
'scripttex', "die 'skipping, nosell license'",
@@ -2098,6 +2099,7 @@ $standardclean = '\.head|\.tmp|\.dvi|\.log|\.out|\.aux|\.toc|\.lof|\.lot'
'numericplots' => '.*\.m', # matlab
'piechartmp' => 'piechartmp.pdf', # no source
'ptptex' => '(overcite|cite|wrapfig).sty', # duplicated
+ 'sapthesis' => 'marchiologo.*\.pdf', # univ logos
'stix' => 'STIX_Font_Release_Documentation_2010.pdf', # no source
'stubs' => 'stubs.pdf', # no source
'susy' => 'susy.pdf', # no source
@@ -2818,7 +2820,6 @@ sub runjob
# remove all files matching something in $KILLPATT.
# also remove .ps files for which we have a .pdf.
-#
# if MORE is true, remove additional files matching something in
# $moreclean and create a README.TEXLIVE which lists the removed files.
#
diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
index 1f6492197a6..12df0a5b9dd 100644
--- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
@@ -65,6 +65,7 @@ depend revtex
depend revtex4
depend ryethesis
depend sageep
+depend sapthesis
depend seuthesis
depend soton
depend spie
diff --git a/Master/tlpkg/tlpsrc/sapthesis.tlpsrc b/Master/tlpkg/tlpsrc/sapthesis.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/sapthesis.tlpsrc