Phd_1.cls 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Emmanuela Orsini 21/V/2007
  2. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  3. \ProvidesClass{Phd_1}
  4. \RequirePackage{amsmath}
  5. \RequirePackage{amssymb}
  6. \RequirePackage{amsthm}
  7. \RequirePackage{fancyhdr}
  8. \bibliographystyle{amsalpha}
  9. \newcommand\@ptsize{}
  10. \newif\if@restonecol
  11. \newif\if@titlepage
  12. \@titlepagetrue
  13. \newif\if@openright
  14. \newif\if@mainmatter \@mainmattertrue
  15. \if@compatibility\else
  16. \DeclareOption{a4paper}
  17. {\setlength\paperheight {297mm}%
  18. \setlength\paperwidth {210mm}}
  19. \DeclareOption{a5paper}
  20. {\setlength\paperheight {210mm}%
  21. \setlength\paperwidth {148mm}}
  22. \DeclareOption{b5paper}
  23. {\setlength\paperheight {250mm}%
  24. \setlength\paperwidth {176mm}}
  25. \DeclareOption{letterpaper}
  26. {\setlength\paperheight {11in}%
  27. \setlength\paperwidth {8.5in}}
  28. \DeclareOption{legalpaper}
  29. {\setlength\paperheight {14in}%
  30. \setlength\paperwidth {8.5in}}
  31. \DeclareOption{executivepaper}
  32. {\setlength\paperheight {10.5in}%
  33. \setlength\paperwidth {7.25in}}
  34. \DeclareOption{landscape}
  35. {\setlength\@tempdima {\paperheight}%
  36. \setlength\paperheight {\paperwidth}%
  37. \setlength\paperwidth {\@tempdima}}
  38. \fi
  39. \if@compatibility
  40. \renewcommand\@ptsize{0}
  41. \else
  42. \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
  43. \fi
  44. \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
  45. \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
  46. \if@compatibility\else
  47. \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
  48. \fi
  49. \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
  50. \DeclareOption{draft}{\setlength\overfullrule{5pt}}
  51. \if@compatibility\else
  52. \DeclareOption{final}{\setlength\overfullrule{0pt}}
  53. \fi
  54. \DeclareOption{titlepage}{\@titlepagetrue}
  55. \if@compatibility\else
  56. \DeclareOption{notitlepage}{\@titlepagefalse}
  57. \fi
  58. \if@compatibility
  59. \@openrighttrue
  60. \else
  61. \DeclareOption{openright}{\@openrighttrue}
  62. \DeclareOption{openany}{\@openrightfalse}
  63. \fi
  64. \if@compatibility\else
  65. \DeclareOption{onecolumn}{\@twocolumnfalse}
  66. \fi
  67. \DeclareOption{twocolumn}{\@twocolumntrue}
  68. \DeclareOption{leqno}{\input{leqno.clo}}
  69. \DeclareOption{fleqn}{\input{fleqn.clo}}
  70. \DeclareOption{openbib}{%
  71. \AtEndOfPackage{%
  72. \renewcommand\@openbib@code{%
  73. \advance\leftmargin\bibindent
  74. \itemindent -\bibindent
  75. \listparindent \itemindent
  76. \parsep \z@
  77. }%
  78. \renewcommand\newblock{\par}}%
  79. }
  80. \ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
  81. \ProcessOptions
  82. \input{bk1\@ptsize.clo}
  83. \setlength\lineskip{1\p@}
  84. \setlength\normallineskip{1\p@}
  85. \renewcommand\baselinestretch{}
  86. \setlength\parskip{0\p@ \@plus \p@}
  87. \@lowpenalty 51
  88. \@medpenalty 151
  89. \@highpenalty 301
  90. \setcounter{topnumber}{2}
  91. \renewcommand\topfraction{.7}
  92. \setcounter{bottomnumber}{1}
  93. \renewcommand\bottomfraction{.3}
  94. \setcounter{totalnumber}{3}
  95. \renewcommand\textfraction{.2}
  96. \renewcommand\floatpagefraction{.5}
  97. \setcounter{dbltopnumber}{2}
  98. \renewcommand\dbltopfraction{.7}
  99. \renewcommand\dblfloatpagefraction{.5}
  100. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  101. \long\def\comment#1{}
  102. \oddsidemargin 0.5in \evensidemargin 0in \marginparwidth 20pt
  103. \marginparsep 8pt \topmargin 0pt \headsep .3in
  104. %\textheight 8.1in
  105. \textheight 9in
  106. \textwidth 6in
  107. % Disallow page breaks at hyphens (this will give some underfull vbox's,
  108. % so an alternative is to use \brokenpenalty=100 and manually search
  109. % for and fix such page breaks)
  110. \brokenpenalty=10000
  111. % Use 1.37 times the normal baseline-to-baseline skip
  112. \renewcommand{\baselinestretch}{1.17}
  113. % Redefine the macro used for footnotes to use single spacing
  114. \long\def\@footnotetext#1{\insert\footins{\def\baselinestretch{1}\footnotesize
  115. \interlinepenalty\interfootnotelinepenalty
  116. \splittopskip\footnotesep
  117. \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
  118. \hsize\columnwidth \@parboxrestore
  119. \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
  120. {\rule{\z@}{\footnotesep}\ignorespaces
  121. #1\strut}}}
  122. \def\Logo#1{\gdef\@Logo{#1}}
  123. \def\university#1{\gdef\@university{#1}}
  124. \def\address#1{\gdef\@address{#1}}
  125. \def\dept#1{\gdef\@dept{#1}}
  126. \def\phdtitle#1{\gdef\@phdtitle{#1}}
  127. \def\faculty#1{\gdef\@faculty{#1}}
  128. \def\dedica#1{\gdef\@dedica{#1}}
  129. \def\accademico#1{\gdef\@accademico{#1}}
  130. \def\supervisor#1{\gdef\@supervisor{#1}}
  131. \def\superviser#1{\gdef\@supervisor{#1}}
  132. \def\firstreader#1{\gdef\@firstreader{#1}}
  133. \def\secondreader#1{\gdef\@secondreader{#1}}
  134. \def\thirdreader#1{\gdef\@thirdreader{#1}\third@readertrue}
  135. \def\fourthreader#1{\gdef\@fourthreader{#1}\fourth@readertrue}
  136. \def\fifthreader#1{\gdef\@fifthreader{#1}\fifth@readertrue}
  137. \def\examiner#1{\gdef\@examiner{#1}}
  138. \def\twosupervisors{\two@supervisorstrue}
  139. \def\submitdate#1{\gdef\@submitdate{#1}}
  140. \def\copyrightyear#1{\gdef\@copyrightyear{#1}} % \author, \title in report
  141. \def\degree#1{\gdef\@degree{#1}}
  142. \def\degreeinitial#1{\gdef\@degreeinitial{#1}}
  143. \def\msc{\degree{Master of Science}\degreeinitial{M.Sc.}}
  144. \msc % default degree
  145. \def\phd{\degree{Doctor of Philosophy}\degreeinitial{Ph.D.}\ph@dtrue}
  146. \def\ma{\degree{Master of Arts}\degreeinitial{M.A.}}
  147. \def\@title{}
  148. \def\@author{}
  149. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%usati%%%%%%%%%
  150. \def\@university{\university}
  151. \def\@faculty{\faculty}
  152. \def\@Logo{\Logo}
  153. \def\@phdtitle{\phdtitle}
  154. \def\@dedica{\dedica}
  155. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  156. \def\@address{Halifax, Nova Scotia}
  157. \def\@dept{Dipartimento di Matematica}
  158. \def\@supervisor{}\def\@firstreader{}\def\@secondreader{}
  159. \def\@thirdreader{}\def\@fourthreader{}\def\@fifthreader{}
  160. \def\@examiner{}
  161. \def\@submitdate{\ifcase\the\month\or
  162. January\or February\or March\or April\or May\or June\or
  163. July\or August\or September\or October\or November\or December\fi
  164. \space \number\the\year}
  165. \def\@copyrightyear{\number\the\year}
  166. \def\@accademico{}
  167. \def\convocation#1#2{\gdef\@convocationmonth{#1}\gdef\@convocationyear{#2}}
  168. \def\@convwarn{\typeout{Warning! Convocation date may be incorrect!}}
  169. \ifnum\month<5
  170. \def\@convocationmonth{May}
  171. \def\@convocationyear{\number\the\year\@convwarn}
  172. \else\ifnum\month<10
  173. \def\@convocationmonth{October}
  174. \def\@convocationyear{\number\the\year\@convwarn}
  175. \else
  176. \def\@convocationmonth{February}
  177. \@tempcnta=\year \advance\@tempcnta by 1
  178. \def\@convocationyear{\number\the\@tempcnta\@convwarn}
  179. \fi\fi
  180. \def\dedicate#1{\dedic@tiontrue\gdef\dedication@text{#1}}
  181. \def\nobib{\print@bibfalse}
  182. \def\nofront{\front@pagesfalse\permissionfalse\figurespagefalse\tablespagefalse}
  183. % New if constructs: Default conditions:
  184. \newif\ifpermission \permissiontrue
  185. \newif\iftablespage \tablespagetrue
  186. \newif\iffront@pages \front@pagestrue
  187. \newif\ifthird@reader \third@readerfalse
  188. \newif\iffourth@reader \fourth@readerfalse
  189. \newif\iffifth@reader \fifth@readerfalse
  190. \newif\ifph@d \ph@dfalse
  191. \newif\iftwo@supervisors \two@supervisorsfalse
  192. \newif\ifdraft@mode \draft@modefalse
  193. \newif\ifprint@bib \print@bibtrue
  194. \newif\ifdedic@tion \dedic@tionfalse
  195. \def\no@breaks#1{{\def\\{ \ignorespaces}#1}} % disallow explicit line breaks
  196. \def\signature#1#2{\parbox[b]{1in}{\smash{#1}\vskip12pt}
  197. \hfill \parbox[t]{3in}{\shortstack{\vrule width 3in height 0.4pt\\\small#2}}}
  198. %%%%%%%%%%%%%%%%%%%%%%%%%%%%FRONTESPIZIO%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  199. %%%%%%%%%%%%%%%%%%%%%%%%%%%%FRONTESPIZIO%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  200. \def\frontespizio{%
  201. \pagestyle{empty}%
  202. \begin{quotation}
  203. \begin{center}
  204. \expandafter{\large{\@university}} \\
  205. \vskip0.3in plus 1fill minus 0.1in
  206. \expandafter{\@faculty}\\
  207. \vskip0.1in plus 1fill minus 0.1in
  208. \expandafter{\@dept}\\
  209. \vskip0.2in plus 1fill minus 0.1in
  210. \begin{figure}[h!]
  211. \centering
  212. \includegraphics[width=2.4cm]{\@Logo}
  213. \end{figure}
  214. \ifph@d
  215. \expandafter{\@phdtitle} \\
  216. \fi
  217. %\end{center}
  218. \vskip 0.80in plus 0.4in minus 0.1in
  219. \hyphenpenalty=10000
  220. %\parindent=36pt
  221. %``{\bf \no@breaks{\large{\@title}}}''
  222. {\bf \no@breaks{\Large{\@title}}}
  223. \end{center}
  224. \begin{center}
  225. \vskip0.2in plus 1fill minus 0.1in
  226. \expandafter{\large{\@author}}\\
  227. \end{center}
  228. % \vskip0.2in plus 1fill minus 0.1in
  229. % \begin{flushright}
  230. % Dated: \underbar{\ \@submitdate\ }
  231. % \end{flushright}
  232. \vskip 0.5in plus 0.4in minus 0.1in %se il titolo sta in una riga \vskip 0.8in plus...
  233. \iffourth@reader
  234. \def\sigskip{\vskip0.15in plus 0.2in minus 0.1in}
  235. \def\beginskip{\vskip0.3875in plus 0.2in minus 0.1in}
  236. \else
  237. \def\sigskip{\vskip0.3in plus 0.1in}
  238. \def\beginskip{\vskip0.5875in plus 0.1in}
  239. \fi
  240. \ifph@d
  241. \beginskip
  242. \iftwo@supervisors
  243. \sigskip {Supervisors: } {\hspace{1.42cm} \@supervisor}
  244. \hspace{4.15cm}{\@firstreader} \\ %senza spazio sopra 2.6
  245. \sigskip {Head of PhD School: } {\@secondreader} \\
  246. %\sigskip \signature{Examining Committee:}{\@secondreader} \\
  247. \else
  248. \sigskip {Supervisor: } {\hspace{1.6cm} \@supervisor}
  249. \sigskip
  250. \sigskip {Head of PhD School: } {\@secondreader} \\
  251. \fi
  252. \else % not Ph.D. degree:
  253. \beginskip
  254. \iftwo@supervisors
  255. \sigskip {Relatori: } {\hspace{1.1cm} \@supervisor}
  256. \hspace{3.2cm}{\@firstreader} \\ %senza spazio sopra 2.6
  257. \sigskip {Controrelatore:} {\, \@secondreader} \\
  258. \else
  259. \sigskip {Relatore: } \hspace{0.7cm} {\@supervisor} \\
  260. \sigskip
  261. \sigskip {Controrelatore:} {\@secondreader} \\
  262. \fi
  263. \fi
  264. \ifthird@reader
  265. \sigskip \signature{}{\@thirdreader} \\
  266. \fi
  267. \iffourth@reader
  268. \sigskip \signature{}{\@fourthreader} \\
  269. \fi
  270. \iffifth@reader
  271. \sigskip \signature{}{\@fifthreader} \\
  272. \fi
  273. \end{quotation}
  274. %\ifph@d
  275. \vskip 1.6in plus 0.4in minus 0.1in
  276. %\else % not Ph.D. degree:
  277. %\iftwo@supervisors
  278. % \vskip 1in plus 0.1in minus 0.6in
  279. %\else
  280. % \vskip 1.6in plus 0.4in minus 0.1in
  281. %\fi
  282. %\fi
  283. \begin{center}
  284. %\@submitdate \\
  285. \@accademico
  286. \end{center}
  287. \vfill }
  288. %%%%%%%%%%%%%%%%%%%%%%%%%PAGINE DELLE FIRME%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  289. \def\signaturepage{%
  290. \pagestyle{empty}%
  291. \begin{quotation}
  292. \begin{center}
  293. \expandafter{\large{\@university}}
  294. \vskip0.3in plus 1fill minus 0.1in
  295. \expandafter{\@faculty}
  296. \vskip0.1in plus 1fill minus 0.1in
  297. \expandafter{\@dept}\\
  298. \vskip0.1in plus 1fill minus 0.1in
  299. \begin{figure}[h!]
  300. \centering
  301. \includegraphics[width=2.4cm]{\@Logo}
  302. \end{figure}
  303. \ifph@d
  304. \expandafter{\@phdtitle}\\
  305. \else
  306. \vskip0.1in
  307. \fi
  308. %\end{center}
  309. \ifph@d
  310. \vskip 0.60in plus 0.4in minus 0.1in
  311. \hyphenpenalty=10000
  312. \else % not Ph.D. degree:
  313. \iftwo@supervisors
  314. \vskip 0.00162in plus 0.4in minus 0.1in
  315. \hyphenpenalty=10000
  316. \else
  317. \vskip 0.60in plus 0.4in minus 0.1in
  318. \hyphenpenalty=10000
  319. \fi
  320. \fi
  321. %\vskip 0.60in plus 0.4in minus 0.1in
  322. %\hyphenpenalty=10000
  323. %\parindent=36pt
  324. %``{\bf \no@breaks{\large{\@title}}}''
  325. {\bf \no@breaks{\Large{\@title}}}
  326. \end{center}
  327. % \begin{center}
  328. % \expandafter{\large{\@author}}\\
  329. % \end{center}
  330. % \vskip0.2in plus 1fill minus 0.1in
  331. % \begin{flushright}
  332. % Dated: \underbar{\ \@submitdate\ }
  333. % \end{flushright}
  334. \vskip 0.5in plus 0.4in minus 0.1in %se il titolo sta in una riga \vskip 0.7in plus...
  335. \iffourth@reader
  336. \def\sigskip{\vskip0.15in plus 0.2in minus 0.1in}
  337. \def\beginskip{\vskip0.3875in plus 0.2in minus 0.1in}
  338. \else
  339. \def\sigskip{\vskip0.30in plus 0.1in}
  340. \def\beginskip{\vskip0.5875in plus 0.1in}
  341. \fi
  342. \ifph@d %tesi di dottorato
  343. \beginskip
  344. \sigskip \signature{\@degreeinitial Thesis of:} {\@author}\\
  345. \iftwo@supervisors
  346. \sigskip \signature{Supervisors:}{\@supervisor} \\
  347. \sigskip \signature{}{\@firstreader} \\
  348. \sigskip \signature{Head of PhD School:}{\@secondreader} \\
  349. %\sigskip \signature{Examining Committee:}{\@secondreader} \\
  350. \else
  351. \sigskip \signature{Supervisors:}{\@supervisor} \\
  352. \sigskip
  353. \sigskip \signature{Head of PhD School:}{\@secondreader} \\
  354. \fi
  355. \else % not Ph.D. degree:
  356. \beginskip
  357. \sigskip
  358. \sigskip \signature{Tesi di:} {\@author}\\
  359. \sigskip
  360. \iftwo@supervisors
  361. \sigskip \signature{Relatori:}{\@supervisor} \\
  362. \sigskip \signature{}{\@firstreader} \\
  363. \sigskip \signature{Controrelatore:}{\@secondreader} \\
  364. \else
  365. \sigskip \signature{Relatore:}{\@supervisor} \\
  366. \sigskip \signature{Controrelatore:}{\@secondreader} \\
  367. \fi
  368. \fi
  369. \ifthird@reader
  370. \sigskip \signature{}{\@thirdreader} \\
  371. \fi
  372. \iffourth@reader
  373. \sigskip \signature{}{\@fourthreader} \\
  374. \fi
  375. \iffifth@reader
  376. \sigskip \signature{}{\@fifthreader} \\
  377. \fi
  378. \end{quotation}
  379. \vskip 1.1in plus 0.4in minus 0.1in
  380. \begin{center}
  381. %\@submitdate \\
  382. \@accademico
  383. \end{center}
  384. \vfill
  385. %\newpage\setcounter{page}{3}
  386. }
  387. %%%%%%%%%%%%%%%%%%PAGINA DELLA DEDICA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  388. \def\dedicapage{%
  389. \pagestyle{empty}
  390. \begin{center}\Large\em\null\vskip1in
  391. \@dedica
  392. \vfill
  393. \end{center}
  394. }
  395. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  396. \def\beforepreface{
  397. \typeout{Manu}
  398. \typeout{Errori colpa di Manu. I'm sorry!!!}
  399. \pagenumbering{roman}
  400. \pagestyle{plain}
  401. \titlep
  402. \iffront@pages\signaturepage\else\addtocounter{page}{1}\fi
  403. \ifpermission\permissionpage\else\addtocounter{page}{1}\fi
  404. \iffront@pages\ifdedic@tion
  405. \newpage\begin{center}\Large\em\null\vskip1in
  406. \dedication@text
  407. \vfill\end{center}
  408. \fi\fi
  409. \iffront@pages\tableofcontents\else\addtocounter{page}{1}\fi
  410. }
  411. \def\nonumchapter#1{%
  412. \chapter*{#1}
  413. \addcontentsline{toc}{chapter}{#1}}
  414. \def\prefacesection#1{%
  415. \chapter*{#1}
  416. \addcontentsline{toc}{chapter}{#1}}
  417. \newenvironment{dedication}{\newpage\begin{center}\Large\em\null\vskip1in}%
  418. {\vfill\end{center}}
  419. \def\afterpreface{\newpage
  420. \pagenumbering{arabic}
  421. \typeout{Manuthesis preface pages completed.}
  422. %\properpagestyle
  423. }
  424. % Start out normal
  425. %\properpagestyle
  426. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  427. %nuove impostazioni fancy
  428. \let\fancy@def\gdef
  429. \def\lhead{\@ifnextchar[{\@xlhead}{\@ylhead}}
  430. \def\@xlhead[#1]#2{\fancy@def\@elhead{#1}\fancy@def\@olhead{#2}}
  431. \def\@ylhead#1{\fancy@def\@elhead{#1}\fancy@def\@olhead{#1}}
  432. \def\chead{\@ifnextchar[{\@xchead}{\@ychead}}
  433. \def\@xchead[#1]#2{\fancy@def\@echead{#1}\fancy@def\@ochead{#2}}
  434. \def\@ychead#1{\fancy@def\@echead{#1}\fancy@def\@ochead{#1}}
  435. \def\rhead{\@ifnextchar[{\@xrhead}{\@yrhead}}
  436. \def\@xrhead[#1]#2{\fancy@def\@erhead{#1}\fancy@def\@orhead{#2}}
  437. \def\@yrhead#1{\fancy@def\@erhead{#1}\fancy@def\@orhead{#1}}
  438. \def\lfoot{\@ifnextchar[{\@xlfoot}{\@ylfoot}}
  439. \def\@xlfoot[#1]#2{\fancy@def\@elfoot{#1}\fancy@def\@olfoot{#2}}
  440. \def\@ylfoot#1{\fancy@def\@elfoot{#1}\fancy@def\@olfoot{#1}}
  441. \def\cfoot{\@ifnextchar[{\@xcfoot}{\@ycfoot}}
  442. \def\@xcfoot[#1]#2{\fancy@def\@ecfoot{#1}\fancy@def\@ocfoot{#2}}
  443. \def\@ycfoot#1{\fancy@def\@ecfoot{#1}\fancy@def\@ocfoot{#1}}
  444. \def\rfoot{\@ifnextchar[{\@xrfoot}{\@yrfoot}}
  445. \def\@xrfoot[#1]#2{\fancy@def\@erfoot{#1}\fancy@def\@orfoot{#2}}
  446. \def\@yrfoot#1{\fancy@def\@erfoot{#1}\fancy@def\@orfoot{#1}}
  447. \newif\if@fancyplain \@fancyplainfalse
  448. \def\fancyplain#1#2{\if@fancyplain#1\else#2\fi}
  449. \def\fancy@reset{\restorecr
  450. \def\baselinestretch{1}%
  451. \def\nouppercase##1{{\let\uppercase\relax\let\MakeUppercase\relax##1}}%
  452. \ifx\undefined\@newbaseline% NFSS not present; 2.09 or 2e
  453. \ifx\@normalsize\undefined \normalsize
  454. \else \@normalsize \fi
  455. \else% NFSS (2.09) present
  456. \@newbaseline%
  457. \fi}
  458. \def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset\vbox{\hbox
  459. {\rlap{\parbox[b]{\headwidth}{\raggedright#2\strut}}\hfill
  460. \parbox[b]{\headwidth}{\centering#3\strut}\hfill
  461. \llap{\parbox[b]{\headwidth}{\raggedleft#4\strut}}}\headrule}}#5}
  462. \def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset\vbox{\footrule
  463. \hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2\strut}}\hfill
  464. \parbox[b]{\headwidth}{\centering#3\strut}\hfill
  465. \llap{\parbox[b]{\headwidth}{\raggedleft#4\strut}}}}}#5}
  466. \def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi
  467. \hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}}
  468. \def\ps@fancyplain{\ps@fancy \let\ps@plain\ps@plain@fancy}
  469. \def\ps@plain@fancy{\@fancyplaintrue\ps@@fancy}
  470. \def\ps@@fancy{%
  471. \ps@empty %
  472. \def\@mkboth{\protect\markboth}%
  473. \def\@oddhead{\@fancyhead\@lodd\@olhead\@ochead\@orhead\@rodd}%
  474. \def\@evenhead{\@fancyhead\@rodd\@elhead\@echead\@erhead\@lodd}%
  475. \def\@oddfoot{\@fancyfoot\@lodd\@olfoot\@ocfoot\@orfoot\@rodd}%
  476. \def\@evenfoot{\@fancyfoot\@rodd\@elfoot\@ocfoot\@erfoot\@lodd}%
  477. \def\chaptermark##1{
  478. \markboth {%
  479. \ifnum \c@secnumdepth >\m@ne
  480. \if@mainmatter
  481. \slshape{\@chapapp\ \thechapter.} \ %
  482. \fi
  483. \fi
  484. ##1}{}}%
  485. \def\sectionmark##1{%
  486. \markright {%
  487. \ifnum \c@secnumdepth >\z@
  488. \slshape{\thesection.} \ %
  489. \fi
  490. ##1}}
  491. }
  492. \lhead[\fancyplain{}]{\fancyplain{}{{{\nouppercase\rightmark}}}}
  493. \chead{}
  494. \rhead[\fancyplain{}{{{\nouppercase\leftmark}}}]{\fancyplain{}}
  495. \cfoot[\fancyplain{}]{{\fancyplain{}{\thepage} }}
  496. \lfoot{}%
  497. \rfoot{}%
  498. \def\@lodd{\if@reversemargin\hss\else\relax\fi}
  499. \def\@rodd{\if@reversemargin\relax\else\hss\fi}
  500. %%%%%%%%%%%%%%%%%%%%%%%
  501. \def\ps@copyright{\let\@mkboth\@gobbletwo
  502. \def\today{\number\day\slash\ifcase\month\or
  503. I\or II\or III\or IV\or V\or VI\or
  504. VII\or VIII\or IX\or X\or XI\or XII\fi\slash\number\year}
  505. \def\@oddhead{}%
  506. \let\@evenhead\@oddhead
  507. \def\@oddfoot{\small\slshape
  508. \today
  509. \def\@tempa{0}
  510. \ifx\@volume\@tempa
  511. \@Logo
  512. \fi
  513. }%
  514. \let\@evenfoot\@oddfoot
  515. %\def\@evenfoot{\date}
  516. %\let\@evenfoot
  517. %\let\@oddfoot
  518. }
  519. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  520. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  521. \if@twoside
  522. \def\ps@headings{%
  523. \let\@oddfoot\@empty\let\@evenfoot\@empty
  524. \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  525. \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  526. \let\@mkboth\markboth
  527. \def\chaptermark##1{%
  528. \markboth {\MakeUppercase{%
  529. \ifnum \c@secnumdepth >\m@ne
  530. \if@mainmatter
  531. \@chapapp\ \thechapter. \ %
  532. \fi
  533. \fi
  534. ##1}}{}}%
  535. \def\sectionmark##1{%
  536. \markright {\MakeUppercase{%
  537. \ifnum \c@secnumdepth >\z@
  538. \thesection. \ %
  539. \fi
  540. ##1}}}}
  541. \else
  542. \def\ps@headings{%
  543. \let\@oddfoot\@empty
  544. \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  545. \let\@mkboth\markboth
  546. \def\chaptermark##1{%
  547. \markright {\MakeUppercase{%
  548. \ifnum \c@secnumdepth >\m@ne
  549. \if@mainmatter
  550. \@chapapp\ \thechapter. \ %
  551. \fi
  552. \fi
  553. ##1}}}}
  554. \fi
  555. \def\ps@myheadings{%
  556. %\def\@oddfoot{{\small{{\tt{CGC}}}}\hfil\thepage\hfil\ }
  557. \let\@evenfoot\@empty
  558. %\def\@cfoot{\thepage}
  559. \let\@evenhead\@empty
  560. \let\@oddhead\@empty
  561. \let\@mkboth\@gobbletwo
  562. %\let\chaptermark\@gobble
  563. %\let\sectionmark\@gobble
  564. }
  565. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  566. \if@titlepage
  567. \newcommand\maketitle{\begin{titlepage}%
  568. \let\footnotesize\small
  569. \let\footnoterule\relax
  570. \let \footnote \thanks
  571. \null\vfil
  572. \vskip 60\p@
  573. \begin{center}%
  574. {\LARGE \@title \par}%
  575. \vskip 3em%
  576. {\large
  577. \lineskip .75em%
  578. \begin{tabular}[t]{c}%
  579. \@author
  580. \end{tabular}\par}%
  581. \vskip 1.5em%
  582. {\large \@date \par}% % Set date in \large size.
  583. \end{center}\par
  584. \@thanks
  585. \vfil\null
  586. \end{titlepage}%
  587. \setcounter{footnote}{0}%
  588. \global\let\thanks\relax
  589. \global\let\maketitle\relax
  590. \global\let\@thanks\@empty
  591. \global\let\@author\@empty
  592. \global\let\@date\@empty
  593. \global\let\@title\@empty
  594. \global\let\title\relax
  595. \global\let\author\relax
  596. \global\let\date\relax
  597. \global\let\and\relax
  598. }
  599. \else
  600. \newcommand\maketitle{\par
  601. \begingroup
  602. \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
  603. \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
  604. \long\def\@makefntext##1{\parindent 1em\noindent
  605. \hb@xt@1.8em{%
  606. \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
  607. \if@twocolumn
  608. \ifnum \col@number=\@ne
  609. \@maketitle
  610. \else
  611. \twocolumn[\@maketitle]%
  612. \fi
  613. \else
  614. \newpage
  615. \global\@topnum\z@ % Prevents figures from going at top of page.
  616. \@maketitle
  617. \fi
  618. \thispagestyle{plain}\@thanks
  619. \endgroup
  620. \setcounter{footnote}{0}%
  621. \global\let\thanks\relax
  622. \global\let\maketitle\relax
  623. \global\let\@maketitle\relax
  624. \global\let\@thanks\@empty
  625. \global\let\@author\@empty
  626. \global\let\@date\@empty
  627. \global\let\@title\@empty
  628. \global\let\title\relax
  629. \global\let\author\relax
  630. \global\let\date\relax
  631. \global\let\and\relax
  632. }
  633. \def\@maketitle{%
  634. \newpage
  635. \null
  636. \vskip 2em%
  637. \begin{center}%
  638. \let \footnote \thanks
  639. {\LARGE \@title \par}%
  640. \vskip 1.5em%
  641. {\large
  642. \lineskip .5em%
  643. \begin{tabular}[t]{c}%
  644. \@author
  645. \end{tabular}\par}%
  646. \vskip 1em%
  647. {\large \@date}%
  648. \end{center}%
  649. \par
  650. \vskip 1.5em}
  651. \fi
  652. %\newcommand*\chaptermark[1]{}
  653. \setcounter{secnumdepth}{2}
  654. \newcounter {part}
  655. \newcounter {chapter}
  656. \newcounter {section}[chapter]
  657. \newcounter {subsection}[section]
  658. \newcounter {subsubsection}[subsection]
  659. \newcounter {paragraph}[subsubsection]
  660. \newcounter {subparagraph}[paragraph]
  661. \renewcommand \thepart {\@Roman\c@part}
  662. \renewcommand \thechapter {\@arabic\c@chapter}
  663. \renewcommand \thesection {\thechapter.\@arabic\c@section}
  664. \renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
  665. \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
  666. \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
  667. \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
  668. \newcommand\@chapapp{\chaptername}
  669. \newcommand\frontmatter{%
  670. \cleardoublepage
  671. \@mainmatterfalse
  672. \pagenumbering{roman}}
  673. \newcommand\mainmatter{%
  674. \cleardoublepage
  675. \@mainmattertrue
  676. \pagenumbering{arabic}}
  677. \newcommand\backmatter{%
  678. \if@openright
  679. \cleardoublepage
  680. \else
  681. \clearpage
  682. \fi
  683. \@mainmatterfalse}
  684. \newcommand\part{%
  685. \if@openright
  686. \cleardoublepage
  687. \else
  688. \clearpage
  689. \fi
  690. \thispagestyle{plain}%
  691. \if@twocolumn
  692. \onecolumn
  693. \@tempswatrue
  694. \else
  695. \@tempswafalse
  696. \fi
  697. \null\vfil
  698. \secdef\@part\@spart}
  699. \def\@part[#1]#2{%
  700. \ifnum \c@secnumdepth >-2\relax
  701. \refstepcounter{part}%
  702. \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
  703. \else
  704. \addcontentsline{toc}{part}{#1}%
  705. \fi
  706. \markboth{}{}%
  707. {\centering
  708. \interlinepenalty \@M
  709. \normalfont
  710. \ifnum \c@secnumdepth >-2\relax
  711. \Large\bfseries \partname\nobreakspace\thepart
  712. \par
  713. \vskip 20\p@
  714. \fi
  715. \huge \bfseries #2\par}%
  716. \@endpart}
  717. \def\@spart#1{%
  718. {\centering
  719. \interlinepenalty \@M
  720. \normalfont
  721. \Huge \bfseries #1\par}%
  722. \@endpart}
  723. \def\@endpart{\vfil\newpage
  724. \if@twoside
  725. \if@openright
  726. \null
  727. \thispagestyle{empty}%
  728. \newpage
  729. \fi
  730. \fi
  731. \if@tempswa
  732. \twocolumn
  733. \fi}
  734. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%CAPITOLO%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  735. \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
  736. \thispagestyle{myheadings}%
  737. \global\@topnum\z@
  738. \@afterindentfalse
  739. \secdef\@chapter\@schapter}
  740. \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  741. \if@mainmatter
  742. \refstepcounter{chapter}%
  743. \typeout{\@chapapp\space\thechapter.}%
  744. \addcontentsline{toc}{chapter}%
  745. {\protect\numberline{\thechapter}#1}%
  746. \else
  747. \addcontentsline{toc}{chapter}{#1}%
  748. \fi
  749. \else
  750. \addcontentsline{toc}{chapter}{#1}%
  751. \fi
  752. \chaptermark{#1}%
  753. \addtocontents{lof}{\protect\addvspace{10\p@}}%
  754. \addtocontents{lot}{\protect\addvspace{10\p@}}%
  755. \if@twocolumn
  756. \@topnewpage[\@makechapterhead{#2}]%
  757. \else
  758. \@makechapterhead{#2}%
  759. \@afterheading
  760. \fi}
  761. \def\@makechapterhead#1{%
  762. \vspace*{40\p@}%
  763. {\parindent \z@ \raggedright \normalfont
  764. \ifnum \c@secnumdepth >\m@ne
  765. \if@mainmatter
  766. \Large\bfseries \space \space #1 %se vuoi mettere il numer scrivi \thechapter prima di \space
  767. \par\nobreak
  768. \vskip 40\p@
  769. \fi
  770. \fi
  771. }}
  772. \def\@schapter#1{\if@twocolumn
  773. \@topnewpage[\@makeschapterhead{#1}]%
  774. \else
  775. \@makeschapterhead{#1}%
  776. \@afterheading
  777. \fi}
  778. \def\@makeschapterhead#1{%
  779. \vspace*{40\p@}%
  780. {\parindent \z@ \raggedright
  781. \normalfont
  782. \interlinepenalty\@M
  783. \Large \bfseries #1\par\nobreak
  784. \vskip 40\p@
  785. }}
  786. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%SEZIONE%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  787. \newcommand\section{\@startsection {section}{1}{\z@}%
  788. {-3.5ex \@plus -1ex \@minus -.2ex}%
  789. {2.3ex \@plus.2ex}%
  790. {\normalfont\large\bfseries}}
  791. \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
  792. {-3.25ex\@plus -1ex \@minus -.2ex}%
  793. {1.5ex \@plus .2ex}%
  794. {\normalfont\itshape}}
  795. \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  796. {-3.25ex\@plus -1ex \@minus -.2ex}%
  797. {1.5ex \@plus .2ex}%
  798. {\normalfont\normalsize\bfseries}}
  799. \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  800. {3.25ex \@plus1ex \@minus.2ex}%
  801. {-1em}%
  802. {\normalfont\normalsize\bfseries}}
  803. \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
  804. {3.25ex \@plus1ex \@minus .2ex}%
  805. {-1em}%
  806. {\normalfont\normalsize\bfseries}}
  807. \if@twocolumn
  808. \setlength\leftmargini {2em}
  809. \else
  810. \setlength\leftmargini {2.5em}
  811. \fi
  812. \leftmargin \leftmargini
  813. \setlength\leftmarginii {2.2em}
  814. \setlength\leftmarginiii {1.87em}
  815. \setlength\leftmarginiv {1.7em}
  816. \if@twocolumn
  817. \setlength\leftmarginv {.5em}
  818. \setlength\leftmarginvi {.5em}
  819. \else
  820. \setlength\leftmarginv {1em}
  821. \setlength\leftmarginvi {1em}
  822. \fi
  823. \setlength \labelsep {.5em}
  824. \setlength \labelwidth{\leftmargini}
  825. \addtolength\labelwidth{-\labelsep}
  826. \@beginparpenalty -\@lowpenalty
  827. \@endparpenalty -\@lowpenalty
  828. \@itempenalty -\@lowpenalty
  829. \renewcommand\theenumi{\@arabic\c@enumi}
  830. \renewcommand\theenumii{\@alph\c@enumii}
  831. \renewcommand\theenumiii{\@roman\c@enumiii}
  832. \renewcommand\theenumiv{\@Alph\c@enumiv}
  833. \newcommand\labelenumi{\theenumi.}
  834. \newcommand\labelenumii{(\theenumii)}
  835. \newcommand\labelenumiii{\theenumiii.}
  836. \newcommand\labelenumiv{\theenumiv.}
  837. \renewcommand\p@enumii{\theenumi}
  838. \renewcommand\p@enumiii{\theenumi(\theenumii)}
  839. \renewcommand\p@enumiv{\p@enumiii\theenumiii}
  840. \newcommand\labelitemi{\textbullet}
  841. \newcommand\labelitemii{\normalfont\bfseries \textendash}
  842. \newcommand\labelitemiii{\textasteriskcentered}
  843. \newcommand\labelitemiv{\textperiodcentered}
  844. \newenvironment{description}
  845. {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  846. \let\makelabel\descriptionlabel}}
  847. {\endlist}
  848. \newcommand*\descriptionlabel[1]{\hspace\labelsep
  849. \normalfont\bfseries #1}
  850. \newenvironment{verse}
  851. {\let\\\@centercr
  852. \list{}{\itemsep \z@
  853. \itemindent -1.5em%
  854. \listparindent\itemindent
  855. \rightmargin \leftmargin
  856. \advance\leftmargin 1.5em}%
  857. \item\relax}
  858. {\endlist}
  859. \newenvironment{quotation}
  860. {\list{}{\listparindent 1.5em%
  861. \itemindent \listparindent
  862. \rightmargin \leftmargin
  863. \parsep \z@ \@plus\p@}%
  864. \item\relax}
  865. {\endlist}
  866. \newenvironment{quote}
  867. {\list{}{\rightmargin\leftmargin}%
  868. \item\relax}
  869. {\endlist}
  870. \if@compatibility
  871. \newenvironment{titlepage}
  872. {%
  873. \cleardoublepage
  874. \if@twocolumn
  875. \@restonecoltrue\onecolumn
  876. \else
  877. \@restonecolfalse\newpage
  878. \fi
  879. \thispagestyle{empty}%
  880. \setcounter{page}\z@
  881. }%
  882. {\if@restonecol\twocolumn \else \newpage \fi
  883. }
  884. \else
  885. \newenvironment{titlepage}
  886. {%
  887. \cleardoublepage
  888. \if@twocolumn
  889. \@restonecoltrue\onecolumn
  890. \else
  891. \@restonecolfalse\newpage
  892. \fi
  893. \thispagestyle{empty}%
  894. \setcounter{page}\@ne
  895. }%
  896. {\if@restonecol\twocolumn \else \newpage \fi
  897. \if@twoside\else
  898. \setcounter{page}\@ne
  899. \fi
  900. }
  901. \fi
  902. \newcommand\appendix{\par
  903. \setcounter{chapter}{0}%
  904. \setcounter{section}{0}%
  905. \gdef\@chapapp{\appendixname}%
  906. \gdef\thechapter{\@Alph\c@chapter}}
  907. \setlength\arraycolsep{5\p@}
  908. \setlength\tabcolsep{6\p@}
  909. \setlength\arrayrulewidth{.4\p@}
  910. \setlength\doublerulesep{2\p@}
  911. \setlength\tabbingsep{\labelsep}
  912. \skip\@mpfootins = \skip\footins
  913. \setlength\fboxsep{3\p@}
  914. \setlength\fboxrule{.4\p@}
  915. \@addtoreset {equation}{chapter}
  916. \renewcommand\theequation
  917. {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
  918. \newcounter{figure}[chapter]
  919. \renewcommand \thefigure
  920. {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
  921. \def\fps@figure{tbp}
  922. \def\ftype@figure{1}
  923. \def\ext@figure{lof}
  924. \def\fnum@figure{\figurename\nobreakspace\thefigure}
  925. \newenvironment{figure}
  926. {\@float{figure}}
  927. {\end@float}
  928. \newenvironment{figure*}
  929. {\@dblfloat{figure}}
  930. {\end@dblfloat}
  931. \newcounter{table}[chapter]
  932. \renewcommand \thetable
  933. {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
  934. \def\fps@table{tbp}
  935. \def\ftype@table{2}
  936. \def\ext@table{lot}
  937. \def\fnum@table{\tablename\nobreakspace\thetable}
  938. \newenvironment{table}
  939. {\@float{table}}
  940. {\end@float}
  941. \newenvironment{table*}
  942. {\@dblfloat{table}}
  943. {\end@dblfloat}
  944. \newlength\abovecaptionskip
  945. \newlength\belowcaptionskip
  946. \setlength\abovecaptionskip{10\p@}
  947. \setlength\belowcaptionskip{0\p@}
  948. \long\def\@makecaption#1#2{%
  949. \vskip\abovecaptionskip
  950. \sbox\@tempboxa{#1: #2}%
  951. \ifdim \wd\@tempboxa >\hsize
  952. #1: #2\par
  953. \else
  954. \global \@minipagefalse
  955. \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  956. \fi
  957. \vskip\belowcaptionskip}
  958. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  959. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  960. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  961. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  962. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  963. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  964. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  965. \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
  966. \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
  967. \newcommand\@pnumwidth{1.55em}
  968. \newcommand\@tocrmarg{2.55em}
  969. \newcommand\@dotsep{4.5}
  970. \setcounter{tocdepth}{2}
  971. \newcommand\tableofcontents{%
  972. \if@twocolumn
  973. \@restonecoltrue\onecolumn
  974. \else
  975. \@restonecolfalse
  976. \fi
  977. \chapter*{\contentsname
  978. \@mkboth{%
  979. \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
  980. \@starttoc{toc}%
  981. \if@restonecol\twocolumn\fi
  982. }
  983. \newcommand*\l@part[2]{%
  984. \ifnum \c@tocdepth >-2\relax
  985. \addpenalty{-\@highpenalty}%
  986. \addvspace{2.25em \@plus\p@}%
  987. \setlength\@tempdima{3em}%
  988. \begingroup
  989. \parindent \z@ \rightskip \@pnumwidth
  990. \parfillskip -\@pnumwidth
  991. {\leavevmode
  992. \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
  993. \nobreak
  994. \global\@nobreaktrue
  995. \everypar{\global\@nobreakfalse\everypar{}}%
  996. \endgroup
  997. \fi}
  998. \newcommand*\l@chapter[2]{%
  999. \ifnum \c@tocdepth >\m@ne
  1000. \addpenalty{-\@highpenalty}%
  1001. \vskip 1.0em \@plus\p@
  1002. \setlength\@tempdima{1.5em}%
  1003. \begingroup
  1004. \parindent \z@ \rightskip \@pnumwidth
  1005. \parfillskip -\@pnumwidth
  1006. \leavevmode \bfseries
  1007. \advance\leftskip\@tempdima
  1008. \hskip -\leftskip
  1009. #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
  1010. \penalty\@highpenalty
  1011. \endgroup
  1012. \fi}
  1013. \newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
  1014. \newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
  1015. \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
  1016. \newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
  1017. \newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
  1018. \newcommand\listoffigures{%
  1019. \if@twocolumn
  1020. \@restonecoltrue\onecolumn
  1021. \else
  1022. \@restonecolfalse
  1023. \fi
  1024. \chapter*{\listfigurename}%
  1025. \@mkboth{\MakeUppercase\listfigurename}%
  1026. {\MakeUppercase\listfigurename}%
  1027. \@starttoc{lof}%
  1028. \if@restonecol\twocolumn\fi
  1029. }
  1030. \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
  1031. \newcommand\listoftables{%
  1032. \if@twocolumn
  1033. \@restonecoltrue\onecolumn
  1034. \else
  1035. \@restonecolfalse
  1036. \fi
  1037. \chapter*{\listtablename}%
  1038. \@mkboth{%
  1039. \MakeUppercase\listtablename}%
  1040. {\MakeUppercase\listtablename}%
  1041. \@starttoc{lot}%
  1042. \if@restonecol\twocolumn\fi
  1043. }
  1044. \let\l@table\l@figure
  1045. \newdimen\bibindent
  1046. \setlength\bibindent{1.5em}
  1047. \newenvironment{thebibliography}[1]
  1048. {\chapter*{\bibname}%
  1049. \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
  1050. \list{\@biblabel{\@arabic\c@enumiv}}%
  1051. {\settowidth\labelwidth{\@biblabel{#1}}%
  1052. \leftmargin\labelwidth
  1053. \advance\leftmargin\labelsep
  1054. \@openbib@code
  1055. \usecounter{enumiv}%
  1056. \let\p@enumiv\@empty
  1057. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  1058. \sloppy
  1059. \clubpenalty4000
  1060. \@clubpenalty \clubpenalty
  1061. \widowpenalty4000%
  1062. \sfcode`\.\@m}
  1063. {\def\@noitemerr
  1064. {\@latex@warning{Empty `thebibliography' environment}}%
  1065. \endlist}
  1066. \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
  1067. \let\@openbib@code\@empty
  1068. \newenvironment{theindex}
  1069. {\if@twocolumn
  1070. \@restonecolfalse
  1071. \else
  1072. \@restonecoltrue
  1073. \fi
  1074. \twocolumn[\@makeschapterhead{\indexname}]%
  1075. \@mkboth{\MakeUppercase\indexname}%
  1076. {\MakeUppercase\indexname}%
  1077. \thispagestyle{plain}\parindent\z@
  1078. \parskip\z@ \@plus .3\p@\relax
  1079. \columnseprule \z@
  1080. \columnsep 35\p@
  1081. \let\item\@idxitem}
  1082. {\if@restonecol\onecolumn\else\clearpage\fi}
  1083. \newcommand\@idxitem{\par\hangindent 40\p@}
  1084. \newcommand\subitem{\@idxitem \hspace*{20\p@}}
  1085. \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
  1086. \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
  1087. \renewcommand\footnoterule{%
  1088. \kern-3\p@
  1089. \hrule\@width.4\columnwidth
  1090. \kern2.6\p@}
  1091. \@addtoreset{footnote}{chapter}
  1092. \newcommand\@makefntext[1]{%
  1093. \parindent 1em%
  1094. \noindent
  1095. \hb@xt@1.8em{\hss\@makefnmark}#1}
  1096. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1097. %%%%%%%%%%%% ENVIRONMENTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1098. \theoremstyle{plain}
  1099. \newtheorem{thm}{Theorem}[section]
  1100. \newtheorem{theorem}[thm]{Theorem}
  1101. \newtheorem{corollary}[thm]{Corollary}
  1102. \newtheorem{lemma}[thm]{Lemma}
  1103. \newtheorem{claim}[thm]{Claim}
  1104. \newtheorem{axiom}[thm]{Axiom}
  1105. \newtheorem{conjecture}[thm]{Conjecture}
  1106. \newtheorem{fact}[thm]{Fact}
  1107. \newtheorem{hypothesis}[thm]{Hypothesis}
  1108. \newtheorem{assumption}[thm]{Assumption}
  1109. \newtheorem{proposition}[thm]{Proposition}
  1110. \newtheorem{criterion}[thm]{Criterion}
  1111. \newtheorem{definition}[thm]{Definition}
  1112. \newtheorem{algorithm}{Algorithm}
  1113. \theoremstyle{definition}
  1114. \newtheorem{example}[thm]{Example}
  1115. \theoremstyle{remark}
  1116. \newtheorem{remark}[thm]{Remark}
  1117. \newtheorem{problem}[thm]{Problem}
  1118. \newtheorem{principle}[thm]{Principle}
  1119. %%%%%%%%%%%%%%%% Abbreviations %%%%%%%%%%%%%%%%%%%%%%%
  1120. \newcommand{\NN}{{\mathbb N}}
  1121. \newcommand{\RR}{{\mathbb R}}
  1122. \newcommand{\ZZ}{{\mathbb Z}}
  1123. \newcommand{\QQ}{{\mathbb Q}}
  1124. \newcommand{\CC}{{\mathbb C}}
  1125. \newcommand{\FF}{{\mathbb F}}
  1126. \newcommand{\FFF}{\overline{{\mathbb F}}}
  1127. \newcommand{\KK}{{\mathbb K}}
  1128. \newcommand{\KKK}{\overline{{\mathbb K}}}
  1129. \newcommand{\GR}{Gr\"{o}bner}
  1130. \newcommand{\Gr}{Gr\"{o}bner}
  1131. \newcommand{\lp}{\mathrm{Lp}}
  1132. \newcommand{\tp}{\mathrm{Tp}}
  1133. \newfont{\gotico}{eufm10 scaled \magstep1}
  1134. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1135. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1136. %% roba da Mora
  1137. %\def\card{\mathop{\rm card}\nolimits}
  1138. %\def\mappa#1{\smash{\mathop{\longrightarrow}\limits^{#1}}}
  1139. %\def\squareforqed{\hbox{\rlap{$\sqcap$}$\sqcup$}}
  1140. %\def\qed{\quad
  1141. %\ifmmode\squareforqed\else{\squareforqed \medskip}\fi}
  1142. %\def\then{\Longrightarrow}
  1143. %\def\text#1{\rm #1}
  1144. %\def\emph#1{\em #1}
  1145. %\def\Lou{Loustaunau}
  1146. %%\def\lc{\mathop{\rm lc}\nolimits}
  1147. %\def\chart{\mathop{\rm char}\nolimits}
  1148. %\newcommand{\Gr}{Gr\"ob\-ner}
  1149. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1150. \newcommand\contentsname{Contents}
  1151. \newcommand\listfigurename{List of Figures}
  1152. \newcommand\listtablename{List of Tables}
  1153. \newcommand\bibname{Bibliography}
  1154. \newcommand\indexname{Index}
  1155. \newcommand\figurename{Figure}
  1156. \newcommand\tablename{Table}
  1157. \newcommand\partname{Part}
  1158. \newcommand\chaptername{Chapter}
  1159. \newcommand\appendixname{Appendix}
  1160. \def\today{\ifcase\month\or
  1161. January\or February\or March\or April\or May\or June\or
  1162. July\or August\or September\or October\or November\or December\fi
  1163. \space\number\day, \number\year}
  1164. \setlength\columnsep{10\p@}
  1165. \setlength\columnseprule{0\p@}
  1166. \pagestyle{headings}
  1167. \pagenumbering{arabic}
  1168. \if@twoside
  1169. \else
  1170. \raggedbottom
  1171. \fi
  1172. \if@twocolumn
  1173. \twocolumn
  1174. \sloppy
  1175. \flushbottom
  1176. \else
  1177. \onecolumn
  1178. \fi
  1179. \endinput
  1180. %%
  1181. %% End of file `book.cls'.