Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.63 KB | None | 0 0
  1. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  2. \ProvidesClass{imuwbth}[2012/02/26 v2.5 LaTeX document class (MZ)]
  3.  
  4. \newif\if@marginnotes \@marginnotesfalse
  5.  
  6. \let\@mkboth\markboth
  7. \let\@mkright\markright
  8. \let\@xunderrule\relax
  9. \let\@xoverrule\relax
  10.  
  11. \newif\if@showproofs
  12. \newif\if@showmarginals \@showmarginalstrue
  13. \newif\if@final \@finalfalse
  14.  
  15. \newif\if@thankstop
  16.  
  17. \DeclareOption{dyplom}{\def\@thesiskind{dyplomowa}}
  18. \DeclareOption{dyplomowa}{\def\@thesiskind{dyplomowa}}
  19. \DeclareOption{magisterium}{\def\@thesiskind{magisterska}}
  20. \DeclareOption{magisterska}{\def\@thesiskind{magisterska}}
  21.  
  22. \DeclareOption{marginnotes}{\@marginnotestrue}
  23. \DeclareOption{upcasehead}{%
  24. \def\@mkboth#1#2{\markboth{\MakeUppercase{#1}}{\MakeUppercase{#2}}}
  25. \def\@mkright#1{\markright{\MakeUppercase{#1}}}}
  26. \DeclareOption{underruledhead}{\def\@xunderrule{\@underrule}}
  27. \DeclareOption{overruledfoot}{\def\@xoverrule{\@overrule}}
  28.  
  29. \DeclareOption{showproofs}{\@showproofstrue}
  30. \DeclareOption{hideproofs}{\@showproofsfalse}
  31. \DeclareOption{showmarginals}{\@showmarginalstrue\@marginnotestrue}
  32. \DeclareOption{hidemarginals}{\@showmarginalsfalse}
  33. \DeclareOption{abstract}{%
  34. \@showproofsfalse
  35. \@showmarginalsfalse}
  36. \DeclareOption{final}{%
  37. \@showproofstrue
  38. \@showmarginalsfalse
  39. \@finaltrue}
  40. \DeclareOption{aleft}{%
  41. \def\@ragged{\raggedright}
  42. \def\@alignment{l}}
  43. \DeclareOption{aright}{%
  44. \def\@ragged{\raggedleft}
  45. \def\@alignment{r}}
  46.  
  47. \DeclareOption{thankstop}{\@thankstoptrue}
  48. \DeclareOption{thanksbottom}{\@thankstopfalse}
  49.  
  50. \DeclareOption{iso}{%
  51. \typeout{\space\space\space Selected input encoding `iso8859-2'.}
  52. \PassOptionsToPackage{latin2}{inputenc}}
  53. \DeclareOption{iso8859-2}{%
  54. \typeout{\space\space\space Selected input encoding `iso8859-2'.}
  55. \PassOptionsToPackage{latin2}{inputenc}}
  56. \DeclareOption{dos}{%
  57. \typeout{\space\space\space Selected input encoding `DOS 852CP'.}
  58. \PassOptionsToPackage{cp852}{inputenc}}
  59. \DeclareOption{cp1250}{%
  60. \typeout{\space\space\space Selected input encoding `DOS 852CP'.}
  61. \PassOptionsToPackage{cp1250}{inputenc}}
  62. \DeclareOption{windows}{%
  63. \typeout{\space\space\space Selected input encoding `DOS 852CP'.}
  64. \PassOptionsToPackage{cp1250}{inputenc}}
  65. \DeclareOption{utf8}{%
  66. \typeout{\space\space\space Selected input encoding `UTF-8'.}
  67. \PassOptionsToPackage{utf8}{inputenc}}
  68. \DeclareOption{maz}{%
  69. \typeout{\space\space\space Selected input encoding `Mazovia'.}
  70. \PassOptionsToPackage{mazovia}{polski}}
  71. \DeclareOption{mazovia}{%
  72. \typeout{\space\space\space Selected input encoding `Mazovia'.}
  73. \PassOptionsToPackage{mazovia}{polski}}
  74. \DeclareOption{mazowia}{%
  75. \typeout{\space\space\space Selected input encoding `Mazovia'.}
  76. \PassOptionsToPackage{mazovia}{polski}}
  77.  
  78. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
  79.  
  80. \ExecuteOptions{underruledhead,showproofs,showmarginals,aleft,thanksbottom,iso,magisterska}
  81. \ProcessOptions\relax
  82. \LoadClass[a4paper,12pt,oneside]{book}
  83.  
  84. \RequirePackage{polski}[1998/04/20]
  85. \RequirePackage{inputenc}[1999/09/17]
  86.  
  87. %%%% monogrph.cls
  88.  
  89. \setlength\headsep {25\p@}
  90. \if@compatibility
  91. \else
  92. \setlength\@tempdima{\paperwidth}
  93. \addtolength\@tempdima{-2in}
  94. \setlength\@tempdimb{396\p@}
  95. \if@twocolumn
  96. \ifdim\@tempdima>2\@tempdimb\relax
  97. \setlength\textwidth{2\@tempdimb}
  98. \else
  99. \setlength\textwidth{\@tempdima}
  100. \fi
  101. \else
  102. \ifdim\@tempdima>\@tempdimb\relax
  103. \setlength\textwidth{\@tempdimb}
  104. \else
  105. \setlength\textwidth{\@tempdima}
  106. \fi
  107. \fi
  108. \@settopoint\textwidth
  109.  
  110. \setlength\@tempdima{\paperheight}
  111. \addtolength\@tempdima{-2in}
  112. \addtolength\@tempdima{-\headheight}
  113. \addtolength\@tempdima{-\headsep}
  114. \addtolength\@tempdima{-\footskip}
  115. \divide\@tempdima\baselineskip
  116. \@tempcnta=\@tempdima
  117. \setlength\textheight{\@tempcnta\baselineskip}
  118. \addtolength\textheight{\topskip}
  119.  
  120. \if@marginnotes %Exchanged with \if@twoside for better layout control.
  121. \setlength\@tempdima {\paperwidth}
  122. \addtolength\@tempdima {-\textwidth}
  123. \setlength\oddsidemargin {.4\@tempdima}
  124. \addtolength\oddsidemargin {-1in}
  125. \setlength\marginparwidth {.6\@tempdima}
  126. \addtolength\marginparwidth {-\marginparsep}
  127. \addtolength\marginparwidth {-0.4in}
  128. \else
  129. \setlength\@tempdima {\paperwidth}
  130. \addtolength\@tempdima {-\textwidth}
  131. \setlength\oddsidemargin {.5\@tempdima}
  132. \addtolength\oddsidemargin {-1in}
  133. \setlength\marginparwidth {.5\@tempdima}
  134. \addtolength\marginparwidth {-\marginparsep}
  135. \addtolength\marginparwidth {-0.4in}
  136. \addtolength\marginparwidth {-.4in}
  137. \fi
  138. \ifdim \marginparwidth >2in
  139. \setlength\marginparwidth{2in}
  140. \fi
  141. \@settopoint\oddsidemargin
  142. \@settopoint\marginparwidth
  143. \setlength\evensidemargin {\paperwidth}
  144. \addtolength\evensidemargin{-2in}
  145. \addtolength\evensidemargin{-\textwidth}
  146. \addtolength\evensidemargin{-\oddsidemargin}
  147. \@settopoint\evensidemargin
  148.  
  149. \setlength\topmargin{\paperheight}
  150. \addtolength\topmargin{-2in}
  151. \addtolength\topmargin{-\headheight}
  152. \addtolength\topmargin{-\headsep}
  153. \addtolength\topmargin{-\textheight}
  154. \addtolength\topmargin{-\footskip} % this might be wrong!
  155. \addtolength\topmargin{-.5\topmargin}
  156. \@settopoint\topmargin
  157. \fi
  158.  
  159. \DeclareFontShape{OT1}{cmr}{bx}{sc}
  160. {
  161. <5><6><7>cmbxsc7%
  162. <8>cmbxsc8%
  163. <9>cmbxsc9%
  164. <10><10.95>cmbxsc10%
  165. <12><14.4><17.28><20.74><24.88>cmbxsc12%
  166. }{}
  167.  
  168. \def\title{\@dblarg\@xtitle}
  169. \def\@xtitle[#1]#2{\gdef\@title{#2}\gdef\@brieftitle{#1}}
  170. \let\@brieftitle\@empty
  171.  
  172. \def\stroke#1#2{%
  173. \setbox\@tempboxa=\hbox{#2}%
  174. \rule[#1]{\wd\@tempboxa}{0.4pt}\llap{\usebox\@tempboxa}}
  175. \def\@underrule#1{%
  176. \stroke{-1.3ex}{\hbox to\textwidth{#1}}}
  177. \def\@overrule#1{%
  178. \stroke{2.6ex}{\hbox to\textwidth{#1}}}
  179.  
  180. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  181. \markboth{}{}\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
  182.  
  183. \def\oddfoot{\reset@font\hfil\thepage\hfil}
  184. \let\evenfoot\oddfoot
  185. \def\oddhead{{\scshape\rightmark}\hfil\thepage}%
  186. \def\evenhead{\thepage\hfil\scshape\leftmark}%
  187. \let\chapapp\@chapapp
  188. \def\chaptermarker{\chapapp\ \thechapter. \ }
  189. \def\chaptertitle#1{#1}
  190. \def\sectionmarker{\thesection. \ }
  191. \def\sectiontitle#1{#1}
  192.  
  193. \def\ps@plain{\let\@mkboth\@gobbletwo
  194. \let\@oddhead\@empty
  195. \def\@oddfoot{\@xoverrule\oddfoot}
  196. \let\@evenhead\@empty
  197. \def\@evenfoot{\@xoverrule\evenfoot}}
  198.  
  199. \if@twoside
  200. \def\ps@headings{%
  201. \let\@oddfoot\@empty
  202. \let\@evenfoot\@empty
  203. \def\@evenhead{\@xunderrule\evenhead}
  204. \def\@oddhead{\@xunderrule\oddhead}
  205. \def\chaptermark##1{%
  206. \@mkboth {%
  207. \ifnum \c@secnumdepth >\m@ne
  208. \chaptermarker
  209. \fi
  210. \chaptertitle{##1}}{}}%
  211. \def\sectionmark##1{%
  212. \@mkright {%
  213. \ifnum \c@secnumdepth >\z@
  214. \if@mainmatter
  215. \sectionmarker
  216. \fi
  217. \fi
  218. \sectiontitle{##1}}}}
  219. \else
  220. \def\ps@headings{%
  221. \let\@oddfoot\@empty
  222. \def\@oddhead{\@xunderrule\oddhead}
  223. \def\chaptermark##1{%
  224. \@mkright {%
  225. \ifnum \c@secnumdepth >\m@ne
  226. \chaptermarker
  227. \fi
  228. \chaptertitle{##1}}}}
  229. \fi
  230.  
  231. \def\ps@simplehead{%
  232. \let\chaptertitle\@gobble
  233. \def\chaptermarker{\@chapapp\ \thechapter}
  234. \ps@headings}
  235.  
  236. \def\ps@centeredhead{%
  237. \let\chaptermarker\@empty
  238. \let\sectionmarker\@empty
  239. \def\oddhead{\hfil{\scshape\rightmark}\hfil\thepage}%
  240. \def\evenhead{\thepage\hfil{\scshape\leftmark}\hfil}%
  241. \ps@headings}
  242.  
  243. \def\ps@rawheadandfoot{%
  244. \ps@headings
  245. \def\@oddfoot{\@xoverrule\oddfoot}
  246. \def\@evenfoot{\@xoverrule\evenfoot}}
  247.  
  248. \def\ps@headandfoot{%
  249. \def\oddfoot{\reset@font\hfil\thepage}
  250. \def\evenfoot{\reset@font\thepage\hfil}
  251. \def\oddhead{\hfil{\scshape\rightmark}}%
  252. \def\evenhead{\scshape\leftmark\hfil}%
  253. \ps@rawheadandfoot}
  254.  
  255. \def\ps@simpleheadandfoot{%
  256. \let\chaptertitle\@gobble
  257. \def\chaptermarker{\@chapapp\ \thechapter}
  258. \ps@headandfoot}
  259.  
  260. \def\ps@centeredheadandfoot{%
  261. \let\chaptermarker\@empty
  262. \let\sectionmarker\@empty
  263. \def\oddhead{\hfil{\scshape\rightmark}\hfil}%
  264. \def\evenhead{\hfil{\scshape\leftmark}\hfil}%
  265. \def\oddfoot{\reset@font\hfil\thepage\hfil}
  266. \let\evenfoot\oddfoot
  267. \ps@rawheadandfoot}
  268.  
  269. \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  270. \if@mainmatter
  271. \refstepcounter{chapter}%
  272. \typeout{\@chapapp\space\thechapter.}%
  273. \addcontentsline{toc}{chapter}%
  274. {\protect\numberline{\thechapter}#2}%
  275. \else
  276. \typeout{#1}%
  277. \addcontentsline{toc}{chapter}{#2}%
  278. \fi
  279. \else
  280. \addcontentsline{toc}{chapter}{#2}%
  281. \fi
  282. \if@mainmatter
  283. \chaptermark{#1}%
  284. \addtocontents{lof}{\protect\addvspace{10\p@}}%
  285. \addtocontents{lot}{\protect\addvspace{10\p@}}%
  286. \if@twocolumn
  287. \@topnewpage[\@makechapterhead{#2}]%
  288. \else
  289. \@makechapterhead{#2}%
  290. \@afterheading
  291. \fi
  292. \else
  293. \@pchapter{#2}
  294. \fi}
  295. \def\@schapter#1{%
  296. \if@mainmatter
  297. \typeout{#1}%
  298. \addcontentsline{toc}{chapter}{#1}%
  299. \fi
  300. \@pchapter{#1}}
  301. \def\@pchapter#1{%
  302. \@mkboth{#1}{#1}
  303. \if@twocolumn
  304. \@topnewpage[\@makeschapterhead{#1}]%
  305. \else
  306. \@makeschapterhead{#1}%
  307. \@afterheading
  308. \fi}
  309.  
  310. \renewcommand\appendix{\par
  311. \setcounter{chapter}{0}%
  312. \setcounter{section}{0}%
  313. \renewcommand\@chapapp{\appendixname}%
  314. \let\chapapp\@chapapp
  315. \renewcommand\thechapter{\@Alph\c@chapter}}
  316. \renewcommand\tableofcontents{%
  317. \if@twocolumn
  318. \@restonecoltrue\onecolumn
  319. \else
  320. \@restonecolfalse
  321. \fi
  322. \chapter*{\contentsname}%
  323. \@starttoc{toc}%
  324. \if@restonecol\twocolumn\fi
  325. }
  326. \renewcommand\listoffigures{%
  327. \if@twocolumn
  328. \@restonecoltrue\onecolumn
  329. \else
  330. \@restonecolfalse
  331. \fi
  332. \chapter{\listfigurename}%
  333. \@starttoc{lof}%
  334. \if@restonecol\twocolumn\fi
  335. }
  336. \renewcommand\listoftables{%
  337. \if@twocolumn
  338. \@restonecoltrue\onecolumn
  339. \else
  340. \@restonecolfalse
  341. \fi
  342. \chapter{\listtablename}%
  343. \@starttoc{lot}%
  344. \if@restonecol\twocolumn\fi
  345. }
  346. \let\biblabel\@biblabel
  347. \renewenvironment{thebibliography}[1]{%
  348. \chapter{\bibname}
  349. \list{\biblabel{\@arabic\c@enumiv}}%
  350. {\settowidth\labelwidth{\biblabel{#1}}%
  351. \leftmargin\labelwidth
  352. \advance\leftmargin\labelsep
  353. \@openbib@code
  354. \usecounter{enumiv}%
  355. \let\p@enumiv\@empty
  356. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  357. \sloppy\clubpenalty4000\widowpenalty4000%
  358. \sfcode`\.\@m%
  359. }{%
  360. \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
  361. \endlist}
  362. \renewenvironment{theindex}{%
  363. \if@twocolumn
  364. \@restonecolfalse
  365. \else
  366. \@restonecoltrue
  367. \fi
  368. \columnseprule \z@
  369. \columnsep 35\p@
  370. \twocolumn[\@makeschapterhead{\indexname}]%
  371. \typeout{\indexname}
  372. \addcontentsline{toc}{chapter}{\indexname}%
  373. \@mkboth{\indexname}{\indexname}%
  374. \thispagestyle{plain}\parindent\z@
  375. \parskip\z@ \@plus .3\p@\relax
  376. \let\item\@idxitem%
  377. }{%
  378. \if@restonecol\onecolumn\else\clearpage\fi}
  379. \newcommand{\marginnotes}[1]{%
  380. \hskip 1sp \marginpar{\small\raggedright #1}}
  381.  
  382. %%%% end of monogrph.cls
  383.  
  384.  
  385. %%%% datetime.sty
  386.  
  387. \newcount\count@a
  388. \newcount\count@b
  389.  
  390. \count@a\time
  391. \divide\count@a 60
  392. \count@b=-\count@a
  393. \multiply\count@b 60
  394. \advance\count@b \time
  395. \edef\curhour{\number\count@a}
  396. \edef\curminute{\number\count@b}
  397. \edef\curHour{\two@digits{\curhour}}
  398. \edef\curMinute{\two@digits{\curminute}}
  399.  
  400. \edef\curtime{\curHour:\curMinute}
  401.  
  402. \edef\curday{\number\day}
  403. \edef\curDay{\two@digits{\curday}}
  404.  
  405. \edef\curmonth{\number\month}
  406. \edef\curMonth{\two@digits{\curmonth}}
  407.  
  408. \edef\curmonthname{\ifcase\month\or
  409. January\or February\or March\or April\or May\or June\or
  410. July\or August\or September\or October\or November\or December\fi}
  411. \def\curmonthsname{\expandafter\first@three\curmonthname\@stop}
  412.  
  413. \edef\curyear{\number\year}
  414. \def\curyears{\expandafter\last@two\curyear\@stop}
  415.  
  416. \def\curdate{\curyear.\curMonth.\curDay}
  417. \def\curdatetime{\curdate\space\curtime}
  418.  
  419. \def\now{\curmonthsname\space\curday\space\curtime\space\curyear}
  420.  
  421. \def\first@three#1#2#3#4\@stop{#1#2#3}
  422. \def\last@two#1#2#3#4{#3#4}
  423. \def\@stop{\relax}
  424.  
  425. %%%% end of datetime.sty
  426.  
  427.  
  428. %%%% wsheet.cls
  429.  
  430. %% Standard class error handlers
  431. \newcommand{\wsheet@err}{\ClassError{WSheet}}
  432. \newcommand{\wsheet@warn}{\ClassWarning{WSheet}}
  433.  
  434. %% Footer information declaration
  435. \def\created#1{\gdef\@created{#1}}
  436. \let\@created\@empty
  437. \def\modified#1{\gdef\@modified{#1}}
  438. \gdef\@modified{\curdate}
  439. \gdef\@typeset{\curdatetime}
  440.  
  441. \def\@statusbar{\hbox to\textwidth{%
  442. \reset@font\ttfamily\fontsize{9pt}{10pt}\selectfont%
  443. File\@colon\jobname\hfil%
  444. Created\@colon\@created\hfil%
  445. Modified\@colon\@modified\hfil%
  446. Typeset\@colon\@typeset}}
  447.  
  448. \def\supportauthor#1{%
  449. \ifx\@supportauthor\@empty
  450. \else
  451. \redef@warn{supportauthor}
  452. \fi
  453. \gdef\@supportauthor{#1}}
  454. \let\@supportauthor\@empty
  455.  
  456. \def\@authorbar{%
  457. \ifx\@supportauthor\@empty
  458. \else
  459. \parbox{\textwidth}{%
  460. \reset@font\ttfamily\tiny%
  461. Work sheet prepared with kind support of \@supportauthor.\hss}
  462. \fi}
  463.  
  464. \def\info#1{\gdef\@info{#1}}
  465. \let\@info\@empty
  466. \def\@infobar{\parbox{\textwidth}{%
  467. \reset@font\ttfamily\tiny%
  468. \@info\hss}}
  469. \def\@colon{:\kern3\p@}
  470.  
  471. %% Page style definitions
  472. %% Style (default): headandfoot
  473. \def\ps@headandfoot{%
  474. \if@final
  475. \def\oddfoot{%
  476. \ifnum\c@page=\@ne%
  477. \leavevmode%
  478. \hfil\thepage\hfil
  479. \else
  480. \let\oddfoot\relax
  481. \fi}
  482. \def\oddhead{\hbox to\textwidth{%
  483. \reset@font\scshape\@brieftitle\hfil\thepage}}
  484. \else
  485. \def\oddfoot{%
  486. \ifnum\c@page=\@ne%
  487. \leavevmode%
  488. \vtop{\baselineskip\z@skip \lineskip1.5ex%
  489. \@statusbar
  490. \@authorbar \lineskip1ex%
  491. \@infobar}%
  492. \else
  493. \@statusbar%
  494. \fi}
  495. \def\oddhead{\hbox to\textwidth{%
  496. \reset@font\ttfamily\footnotesize\@brieftitle\hfil\thepage}}
  497. \fi
  498. \let\evenfoot\oddfoot
  499. \let\evenhead\oddhead
  500. \ps@rawheadandfoot}
  501.  
  502. %% Page layout settings
  503. \if@marginnotes
  504. \setlength\marginparsep {.8\marginparsep}
  505. \setlength\@tempdima {\paperwidth}
  506. \addtolength\@tempdima {-\textwidth}
  507. \setlength\marginparwidth {.34\@tempdima}
  508. \setlength\oddsidemargin {\marginparwidth}
  509. \addtolength\oddsidemargin {\marginparsep}
  510. \addtolength\oddsidemargin {16\p@}
  511. \addtolength\oddsidemargin {-1in}
  512. \reversemarginpar
  513. \fi
  514. \if@showmarginals
  515. \ifdim \marginparwidth <.5in
  516. \wsheet@warn{\protect\marginparwidth\space too little to put labels}
  517. \fi
  518. \fi
  519. \ifdim \marginparwidth >2in
  520. \setlength\marginparwidth{2in}
  521. \fi
  522. \@settopoint\oddsidemargin
  523. \@settopoint\marginparwidth
  524. \setlength\evensidemargin {\paperwidth}
  525. \addtolength\evensidemargin{-2in}
  526. \addtolength\evensidemargin{-\textwidth}
  527. \addtolength\evensidemargin{-\oddsidemargin}
  528. \@settopoint\evensidemargin
  529.  
  530. %% Writing to margin
  531. \renewcommand\marginnotes[1]{%
  532. \ifinner
  533. \wsheet@warn{Inner mode, suppressing marginal notes}
  534. \else
  535. \hskip 1sp \marginpar{\normalfont\ttfamily\tiny\@ragged\ignorespaces #1}
  536. \fi}
  537.  
  538. \newcommand\marginbox[2][\@alignment]{%
  539. \hbox to\marginparwidth{%
  540. \expandafter\expandafter\expandafter\ifx #1l\relax
  541. #2\hss%
  542. \else
  543. \hss#2%
  544. \fi}}
  545.  
  546. \newcommand\putonmargin[2][\alignment]{%
  547. \marginnotes{%
  548. \marginbox[#1]{#2}}}
  549.  
  550. %% Main
  551. \let\label@org\label
  552. \def\showlabel#1{%
  553. \marginnotes{%
  554. \marginbox{[\ref{#1}]}
  555. \marginbox{#1}}}
  556. \def\label@new#1{%
  557. \label@org{#1}%
  558. \if@showmarginals
  559. \showlabel{#1}%
  560. \fi}
  561. \let\label\label@new
  562. \let\bibitem@org\bibitem
  563. \def\bibitem@new#1{%
  564. \bibitem@org{#1}%
  565. \if@showmarginals%
  566. \marginnotes{%
  567. \marginbox{#1}}
  568. \fi}
  569. \let\bibitem\bibitem@new
  570.  
  571. \def\showmarginals{\@showmarginalstrue}
  572. \def\hidemarginals{\@showmarginalsfalse}
  573.  
  574. \let\proof@org\proof
  575. \let\endproof@org\endproof
  576. \def\showproofs{\global\let\proof\proof@org\global\let\endproof\endproof@org}
  577. \def\hideproofs{\gdef\proof{\@commentout}\global\let\endproof\relax}
  578. \if@showproofs%
  579. \showproofs
  580. \else
  581. \hideproofs
  582. \fi
  583.  
  584. \def\warningname{Warning!}
  585. \newcounter{warning}
  586. \newcommand\warningmark{\ensuremath{\bigstar^{\thewarning}}}
  587. \def\avoidmark{%
  588. \ensuremath{[\ldots\mkern-.2mu]%
  589. \if@showmarginals
  590. ^{\thewarning}
  591. \fi}}
  592. \newcommand\warningmarginlabel{\warningname\space[\thewarning]}
  593.  
  594. \newcommand{\warning}[1][]{%
  595. \if@showmarginals
  596. \stepcounter{warning}%
  597. \warningmark
  598. \marginnotes{%
  599. \marginbox{\warningmarginlabel}
  600. #1}
  601. \fi}
  602. \let\problem\warning
  603.  
  604. \newenvironment{hypothesis}{%
  605. \if@showmarginals
  606. \stepcounter{warning}%
  607. \warningmark
  608. \marginnotes{%
  609. \marginbox{\warningmarginlabel}
  610. Czy to prawda?}
  611. \fi
  612. }{%
  613. \if@showmarginals
  614. \ignorespaces
  615. $\blacksquare$\space
  616. \fi}
  617.  
  618. \def\why{{\Large\bfseries ???}}
  619.  
  620. %% Commenting environment
  621. \def\@makeinnocent#1{\catcode`#1=12 }
  622.  
  623. \begingroup
  624. \@makeinnocent\^^M%
  625. \endlinechar=-1%
  626. \gdef\@startcommentout#1^^M{%
  627. \expandafter\@commentoutline}
  628. \gdef\@commentoutline#1^^M{%
  629. \def\@tmpline{#1}%
  630. \ifx\@commentstopmark\@tmpline
  631. \edef\@next{\endgroup\noexpand\end{\@currenvir}}%
  632. \else
  633. \let\@next\@commentoutline
  634. \fi %
  635. \@next}
  636. \endgroup
  637.  
  638. \def\@commentout{%
  639. \begingroup
  640. \escapechar=-1\relax
  641. \xdef\@commentstopmark{\string\\end\string\{\@currenvir\string\}}
  642. \endgroup
  643. \begingroup
  644. \let\do\@makeinnocent \dospecials
  645. \@makeinnocent\^^L%
  646. \endlinechar`\^^M \catcode`\^^M=12 \@startcommentout}
  647.  
  648. \newenvironment{commentout}{%
  649. \@commentout
  650. }{}
  651.  
  652. \newenvironment{avoid}{%
  653. \if@showmarginals
  654. \stepcounter{warning}%
  655. \marginnotes{%
  656. \marginbox{\warningmarginlabel}
  657. Text avoided}
  658. \fi
  659. \avoidmark
  660. \@commentout
  661. }{}
  662.  
  663. %% Equation
  664. \AtBeginDocument{%
  665. \let\equation@org\equation
  666. \let\endequation@org\endequation
  667. \def\equation{%
  668. \equation@org%
  669. \global\let\@labeltext\@empty
  670. \def\label##1{\gdef\@labeltext{##1}\label@org{##1}}}
  671. \def\endequation{%
  672. \endequation@org%
  673. \ifx\@labeltext\@empty
  674. \else
  675. \if@showmarginals%
  676. \showlabel{\@labeltext}
  677. \fi
  678. \fi}
  679. }
  680.  
  681. %% Table
  682. \let\table@org\table
  683. \let\endtable@org\endtable
  684. \def\table{%
  685. \let\label\label@org%
  686. \table@org}
  687. \def\endtable{%
  688. \endtable@org%
  689. \let\label\label@new}
  690.  
  691. %% Figure
  692. \let\figure@org\figure
  693. \let\endfigure@org\endfigure
  694. \def\figure{%
  695. \let\label\label@org%
  696. \figure@org}
  697. \def\endfigure{%
  698. \endfigure@org%
  699. \let\label\label@new}
  700.  
  701. \if@final\else
  702. %% References format
  703. \let\thebibliography@org\thebibliography
  704. \def\thebibliography{\footnotesize\thebibliography@org}
  705.  
  706. %% Index format
  707. \let\theindex@org\theindex
  708. \def\theindex{\footnotesize\theindex@org}
  709. \fi
  710.  
  711. %% Specific class error handlers
  712. \def\redef@warn#1{\wsheet@warn{%
  713. \protect#1\space is already defined.}}
  714.  
  715. %%%% end of wsheet.cls
  716.  
  717.  
  718. %%%% masterth.sty
  719.  
  720. \newcommand{\@masterth@err}{\PackageError{MasterTh}}
  721.  
  722. \def\university#1{\gdef\@university{#1}}
  723. \def\faculty#1{\gdef\@faculty{#1}}
  724. \def\institute#1{\gdef\@institute{#1}}
  725. \def\author#1{\gdef\@author{#1}}
  726. \def\title#1{\gdef\@title{#1}}
  727. \def\placeandyear#1{\gdef\@placeandyear{#1}}
  728. \def\supervisor#1{\gdef\@supervisor{#1}}
  729.  
  730. \newcommand\undersupervision{%
  731. \slshape Praca zosta\PLSlash la napisana\\
  732. \slshape pod kierunkiem\\
  733. \upshape \@supervisor}%
  734. \newcommand\thanksname{Podzi\PLSlash ekowania}
  735.  
  736. \def\@undef@err#1{\@masterth@err{%
  737. Undefined \protect#1.
  738. }{%
  739. Terminate and complete description of the title page.
  740. }}%
  741.  
  742. \def\@university{\@undef@err{\university}}
  743. \let\@division\@empty
  744. \def\@institute{\@undef@err{\institute}}
  745. \def\@author{\@undef@err{\author}}
  746. \def\@title{\@undef@err{\title}}
  747. \def\@placeandyear{\@undef@err{\placeandyear}}
  748. \let\@supervisor\@empty
  749.  
  750. \renewenvironment{titlepage}{%
  751. \cleardoublepage
  752. \if@twocolumn
  753. \@restonecoltrue\onecolumn
  754. \else
  755. \@restonecolfalse\newpage
  756. \fi
  757. \thispagestyle{empty}%
  758. }%
  759. {\if@restonecol\twocolumn \else \newpage \fi}
  760.  
  761. \renewcommand\maketitle{%
  762. \begin{titlepage}
  763. \begin{center}
  764. {\Huge\scshape\@university \par}
  765. \vskip 20\p@
  766. {\LARGE\scshape\@faculty \par}
  767. \vskip 20\p@
  768. {\Large\scshape\@institute \par}
  769. %\vskip 120\p@
  770. \vfil\vfil\vfil\vfil
  771. {\large\@author}
  772. %\vskip 54\p@
  773. \vfil
  774. {\Huge\scshape%
  775. \def\arraystretch{1.2}
  776. \begin{center}
  777. \@title
  778. \end{center}%
  779. \def\arraystretch{1}}
  780. \end{center}\par
  781. \vfil\vfil\vfil
  782. \vbox{\hfill
  783. \begin{tabular}{l}
  784. \undersupervision
  785. \end{tabular}\par}
  786. %\vskip 1in
  787. \vfil\vfil
  788. \begin{center}
  789. \Large\@placeandyear \par
  790. \end{center}
  791. \end{titlepage}
  792. \if@twoside\else\setcounter{page}\@ne\fi}
  793.  
  794. \if@thankstop
  795. \renewenvironment{thanks}{%
  796. \begin{titlepage}
  797. \thispagestyle{empty}%
  798. \null\vskip 50\p@
  799. \begin{center}
  800. \Large\scshape
  801. \MakeUppercase{\thanksname} \par
  802. \end{center}
  803. \vskip 40\p@
  804. \@afterindentfalse
  805. }%
  806. {\null\vskip 26\p@
  807. \hfill\@author
  808. \end{titlepage}}
  809. \else
  810. \renewenvironment{thanks}{%
  811. \begin{titlepage}
  812. \thispagestyle{empty}%
  813. \null\vfill
  814. \hfill
  815. \begin{tabular}{l}
  816. }%
  817. {\end{tabular}\par
  818. \vskip 16\p@
  819. \hfill\@author\par
  820. \rule{0pt}{48pt}
  821. \end{titlepage}}
  822. \fi
  823.  
  824. %%%% end of masterth.sty
  825.  
  826.  
  827. %%%% math.sty
  828.  
  829. \RequirePackage{latexsym}[1995/12/01 v2.2e]
  830. \RequirePackage{amsmath}[1997/03/20 v1.2d]
  831. \RequirePackage{amsthm}[1996/10/24 v1.2d]
  832. \RequirePackage{amssymb}[1996/11/03 v2.2b]
  833. \RequirePackage{amsfonts}[1997/09/17 v2.2e]
  834.  
  835. \DeclareFontShape{OT1}{cmr}{bx}{sc}
  836. {
  837. <5><6><7>cmbxsc7%
  838. <8>cmbxsc8%
  839. <9>cmbxsc9%
  840. <10><10.95>cmbxsc10%
  841. <12><14.4><17.28><20.74><24.88>cmbxsc12%
  842. }{}
  843.  
  844. \let\theequation@org\theequation
  845. \newenvironment{displaystatement}[1][]{%
  846. \def\theequation{#1}
  847. \equation
  848. }{%
  849. \endequation
  850. \let\theequation\theequation@org}
  851.  
  852. \AtBeginDocument{%
  853. \newcommand\theoremname{Twierdzenie}
  854. \newcommand\lemmaname{Lemat}
  855. \newcommand\corollaryname{Wniosek}
  856. \newcommand\propositionname{Stwierdzenie}
  857. \newcommand\conjecturename{Przypuszczenie}
  858. \newcommand\criterionname{Kryterium}
  859. \newcommand\algorithname{Algorytm}
  860. \newcommand\factname{Fakt}
  861. \newcommand\hypothesisname{Hipoteza}
  862. \newcommand\definitionname{Definicja}
  863. \newcommand\conditionname{Warunek}
  864. \newcommand\problemname{Problem}
  865. \newcommand\examplename{Przyk\PLSlash lad}
  866. \newcommand\exercisename{Zadanie}
  867. \newcommand\remarkname{Uwaga}
  868. \newcommand\notename{Adnotacja}
  869. \newcommand\notationname{Notacja}
  870. \newcommand\claimname{Stwierdzenie}
  871. \newcommand\summaryname{Streszczenie}
  872. \newcommand\acknowledgmentname{Podzi\PLSlash ekowania}
  873. \newcommand\casename{Przypadek}
  874. \newcommand\conclusionname{Konkluzja}
  875.  
  876. \newcommand\hintname{Wskaz\'owka}
  877. }
  878.  
  879. \newcommand*{\ltor}{\mbox{$\Rightarrow\colon$}}
  880. \newcommand*{\rtol}{\mbox{$\Leftarrow\colon$}}
  881. \newcommand*{\lincr}{\mbox{$\subseteq\colon$}}
  882. \newcommand*{\rincl}{\mbox{$\supseteq\colon$}}
  883.  
  884. \renewenvironment{proof}[1][\proofname]{\par
  885. \normalfont
  886. \topsep6\p@\@plus6\p@ \trivlist
  887. \item[\hskip\labelsep\scshape
  888. #1\@addpunct{.}]\ignorespaces
  889. }{%
  890. \qed\endtrivlist
  891. }
  892.  
  893. \newenvironment{hint}[1][\hintname]{\par
  894. \normalfont
  895. \topsep6\p@\@plus6\p@ \trivlist
  896. \item[\hskip\labelsep\indent\scshape
  897. #1\@addpunct{.}]\ignorespaces
  898. }{%
  899. \endtrivlist
  900. }
  901.  
  902. \newcount\@conddepth \@conddepth = 0
  903. \@definecounter{condition}
  904. \def\thecondition{\@arabic\c@condition}
  905. \def\labelcondition{\upshape(\thecondition)}
  906.  
  907. \newenvironment{conditions}{%
  908. \ifnum \@conddepth >0 \@toodeep\else
  909. \advance\@conddepth\@ne
  910. \list{\labelcondition}
  911. {\usecounter{condition}\def\makelabel##1{\hss\llap{##1}}
  912. \topsep3\p@\leftmargin50\p@\labelsep8\p@}%
  913. \fi
  914. }{%
  915. \endlist}
  916.  
  917. \newcount\@sentdepth \@sentdepth = 0
  918. \@definecounter{sentence}
  919. \def\thesentence{\@roman\c@sentence}
  920. \def\labelsentence{\upshape(\thesentence)}
  921.  
  922. \newenvironment{sentences}{%
  923. \ifnum \@sentdepth >0 \@toodeep\else
  924. \advance\@sentdepth\@ne
  925. \list{\labelsentence}
  926. {\usecounter{sentence}\def\makelabel##1{\hss\llap{##1}}
  927. \topsep3\p@\leftmargin0\p@\itemindent40\p@\labelsep8\p@}%
  928. \fi
  929. }{%
  930. \endlist}
  931.  
  932. \def\mathstyle#1{%
  933. \@ifundefined{ms@#1}{%
  934. \PackageWarning{Math}{Unknown mathstyle `#1'}%
  935. \gdef\m@thstyle{plain}
  936. \ms@plain
  937. }{%
  938. \gdef\m@thstyle{#1}
  939. \@nameuse{ms@#1}}}
  940. \@onlypreamble\mathstyle
  941.  
  942. \def\ms@plain{%
  943. \def\th@plaintheorem{%
  944. \th@plain}
  945. \def\th@plaindefinition{%
  946. \th@definition}
  947. \def\th@plainremark{%
  948. \th@remark}}
  949.  
  950. \def\ms@heads{%
  951. \def\th@headstheorem{%
  952. \th@plain
  953. \thm@headfont{\bfseries}}
  954. \def\th@headsdefinition{%
  955. \th@definition
  956. \thm@headfont{\bfseries}}
  957. \def\th@headsremark{%
  958. \th@remark
  959. \thm@headfont{\bfseries}}}
  960.  
  961. \def\ms@simple{%
  962. \def\th@simpletheorem{%
  963. \th@plain
  964. \normalfont
  965. \thm@headfont{\bfseries}}
  966. \def\th@simpledefinition{%
  967. \th@definition
  968. \thm@headfont{\bfseries}}
  969. \def\th@simpleremark{%
  970. \th@remark
  971. \thm@headfont{\bfseries\itshape}}}
  972.  
  973. \mathstyle{heads}
  974.  
  975. \def\settheoremstyle{\theoremstyle{\m@thstyle theorem}}
  976. \def\setdefinitionstyle{\theoremstyle{\m@thstyle definition}}
  977. \def\setremarkstyle{\theoremstyle{\m@thstyle remark}}
  978.  
  979. \def\thmsupcounter#1{%
  980. \gdef\@thmsupcounter{#1}}
  981.  
  982. \let\@thmsupcounter\@empty
  983.  
  984. \AtBeginDocument{%
  985. \settheoremstyle
  986. \ifx\@thmsupcounter\@empty
  987. \let\@notdefinable@org\@notdefinable
  988. \let\@notdefinable\relax
  989. \def\@newprithm{\newtheorem{thm}{\theoremname}[chapter]}
  990. \@ifdefinable\c@chapter{%
  991. \gdef\@newprithm{\newtheorem{thm}{\theoremname}[section]}}
  992. \@ifdefinable\c@section{%
  993. \gdef\@newprithm{\newtheorem{thm}{\theoremname}}}
  994. \let\@notdefinable\@notdefinable@org
  995. \@newprithm
  996. \let\@newprithm\@empty
  997. \else
  998. \newtheorem{thm}{\theoremname}[\@thmsupcounter]
  999. \fi
  1000. \newtheorem{lem}[thm]{\lemmaname}
  1001. \newtheorem{cor}[thm]{\corollaryname}
  1002. \newtheorem{prop}[thm]{\propositionname}
  1003. \newtheorem{conj}[thm]{\conjecturename}
  1004. \newtheorem{crit}[thm]{\criterionname}
  1005. \newtheorem{alg}[thm]{\algorithmname}
  1006. \newtheorem{fact}[thm]{\factname}
  1007. \newtheorem{hypo}[thm]{\hypothesisname}
  1008.  
  1009. \newtheorem*{thm*}{\theoremname}
  1010. \newtheorem*{lem*}{\lemmaname}
  1011. \newtheorem*{cor*}{\corollaryname}
  1012. \newtheorem*{prop*}{\propositionname}
  1013. \newtheorem*{conj*}{\conjecturename}
  1014. \newtheorem*{crit*}{\criterionname}
  1015. \newtheorem*{alg*}{\algorithmname}
  1016. \newtheorem*{fact*}{\factname}
  1017. \newtheorem*{hypo*}{\hypothesisname}
  1018.  
  1019. \setdefinitionstyle
  1020. \newtheorem{dfn}[thm]{\definitionname}
  1021. \newtheorem{cond}[thm]{\conditionname}
  1022. \newtheorem{prob}[thm]{\problemname}
  1023. \newtheorem{exm}[thm]{\examplename}
  1024. \newtheorem{exr}[thm]{\exercisename}
  1025.  
  1026. \newtheorem*{dfn*}{\definitionname}
  1027. \newtheorem*{cond*}{\conditionname}
  1028. \newtheorem*{prob*}{\problemname}
  1029. \newtheorem*{exm*}{\examplename}
  1030. \newtheorem*{exr*}{\exercisename}
  1031.  
  1032. \setremarkstyle
  1033. \newtheorem*{rem}{\remarkname}
  1034. \newtheorem*{note}{\notename}
  1035. \newtheorem*{nota}{\notationname}
  1036. \newtheorem*{clm}{\claimname}
  1037. \newtheorem*{summ}{\summaryname}
  1038. \newtheorem*{ack}{\acknowledgmentname}
  1039. \newtheorem*{case}{\casename}
  1040. \newtheorem*{conc}{\conclusionname}}
  1041.  
  1042. \newcommand*{\math@err}{\PackageError{Math}}
  1043.  
  1044. %%%% end of
  1045.  
  1046.  
  1047.  
  1048. %%%% polext.sty
  1049.  
  1050. \DeclareFontShape{\encodingdefault}{cmr}{bx}{sc}
  1051. {
  1052. <-10> sub* cmr/bx/sc
  1053. <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> plbxsc10
  1054. }{}
  1055.  
  1056. \def\OrgNew@Command#1{
  1057. \let\@ifdefinable\@rc@ifdefinable
  1058. \new@command#1}
  1059.  
  1060. \def\RenewCommand#1{%
  1061. {\escapechar\m@ne\xdef\@gtempa{{\string#1}}}%
  1062. \expandafter\@ifundefined\@gtempa
  1063. {\let\New@Command\@gobbletwo}%
  1064. {\let\New@Command\OrgNew@Command}%
  1065. \New@Command#1
  1066. }
  1067.  
  1068. \RenewCommand\headtoname{}
  1069.  
  1070. \RenewCommand\proofname{Dow\'od}
  1071. \RenewCommand\indexnoname{Nr albumu}
  1072. \RenewCommand\dateending{\space r.}
  1073.  
  1074. %%%% end of polext.sty
  1075.  
  1076.  
  1077.  
  1078. %%%% imuwbth.cls proper settings
  1079.  
  1080. \if@final
  1081. \pagestyle{headings}
  1082. \def\oddhead{\hbox to\textwidth{\reset@font\scshape\@brieftitle\hfil\thepage}}
  1083. \let\evenhead\oddhead
  1084. \else
  1085. \pagestyle{headandfoot}
  1086. \def\@xoverrule{\@overrule}
  1087. \fi
  1088.  
  1089. \renewcommand\undersupervision{%
  1090. \slshape Praca \@thesiskind\ napisana\\
  1091. \slshape pod kierunkiem\\
  1092. \upshape \@supervisor}%
  1093.  
  1094. \university{Uniwersytet w Bia{\l}ymstoku}
  1095. \faculty{Wydzia{\l} Matematyki i Informatyki}
  1096. \institute{Instytut Informatyki}
  1097. \def\thesisyear#1{\gdef\@thesisyear{#1}}
  1098. \def\@thesisyear{\number\year}
  1099. \placeandyear{Bia{\l}ystok \@thesisyear}
  1100.  
  1101. \def\title{\@dblarg\@xtitle}
  1102. \def\@xtitle[#1]#2{\gdef\@title{#2}\gdef\@brieftitle{#1}}
  1103. \let\@brieftitle\@empty
  1104.  
  1105. \endinput
  1106. %%
  1107. %% End of file `imuwbth.cls'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement