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