thesis.cls 37 KB

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