Advertisement
Guest User

Untitled

a guest
Mar 17th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 20.76 KB | None | 0 0
  1. \ProvidesClass{uebung}
  2.  
  3. % ARTICLE.cls
  4. \newcommand\@ptsize{}
  5. \newif\if@restonecol
  6. \newif\if@titlepage
  7. \@titlepagefalse
  8. % \if@compatibility\else
  9. % \DeclareOption{a4paper}
  10. %    {\setlength\paperheight {297mm}%
  11. %     \setlength\paperwidth  {210mm}}
  12. % \DeclareOption{a5paper}
  13. %    {\setlength\paperheight {210mm}%
  14. %     \setlength\paperwidth  {148mm}}
  15. % \DeclareOption{b5paper}
  16. %    {\setlength\paperheight {250mm}%
  17. %     \setlength\paperwidth  {176mm}}
  18. % \DeclareOption{letterpaper}
  19. %    {\setlength\paperheight {11in}%
  20. %     \setlength\paperwidth  {8.5in}}
  21. % \DeclareOption{legalpaper}
  22. %    {\setlength\paperheight {14in}%
  23. %     \setlength\paperwidth  {8.5in}}
  24. % \DeclareOption{executivepaper}
  25. %    {\setlength\paperheight {10.5in}%
  26. %     \setlength\paperwidth  {7.25in}}
  27. % \DeclareOption{landscape}
  28. %    {\setlength\@tempdima   {\paperheight}%
  29. %     \setlength\paperheight {\paperwidth}%
  30. %     \setlength\paperwidth  {\@tempdima}}
  31. %     \fi
  32. \setlength\paperheight {297mm}
  33. \setlength\paperwidth  {210mm}
  34. \if@compatibility
  35.  \renewcommand\@ptsize{0}
  36. \else
  37. \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
  38. \fi
  39. \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
  40. \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
  41. \if@compatibility\else
  42. \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
  43. \fi
  44. \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
  45. \DeclareOption{draft}{\setlength\overfullrule{5pt}}
  46. \if@compatibility\else
  47. \DeclareOption{final}{\setlength\overfullrule{0pt}}
  48. \fi
  49. \DeclareOption{titlepage}{\@titlepagetrue}
  50. \if@compatibility\else
  51. \DeclareOption{notitlepage}{\@titlepagefalse}
  52. \fi
  53. \if@compatibility\else
  54. \DeclareOption{onecolumn}{\@twocolumnfalse}
  55. \fi
  56. \DeclareOption{twocolumn}{\@twocolumntrue}
  57. \DeclareOption{leqno}{\input{leqno.clo}}
  58. \DeclareOption{fleqn}{\input{fleqn.clo}}
  59. \DeclareOption{openbib}{%
  60.   \AtEndOfPackage{%
  61.    \renewcommand\@openbib@code{%
  62.       \advance\leftmargin\bibindent
  63.       \itemindent -\bibindent
  64.       \listparindent \itemindent
  65.       \parsep \z@
  66.       }%
  67.    \renewcommand\newblock{\par}}%
  68. }
  69. \ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
  70. \ProcessOptions
  71. \input{size1\@ptsize.clo}
  72. \setlength\lineskip{1\p@}
  73. \setlength\normallineskip{1\p@}
  74. \renewcommand\baselinestretch{}
  75. \setlength\parskip{0\p@ \@plus \p@}
  76. \@lowpenalty   51
  77. \@medpenalty  151
  78. \@highpenalty 301
  79. \setcounter{topnumber}{2}
  80. \renewcommand\topfraction{.7}
  81. \setcounter{bottomnumber}{1}
  82. \renewcommand\bottomfraction{.3}
  83. \setcounter{totalnumber}{3}
  84. \renewcommand\textfraction{.2}
  85. \renewcommand\floatpagefraction{.5}
  86. \setcounter{dbltopnumber}{2}
  87. \renewcommand\dbltopfraction{.7}
  88. \renewcommand\dblfloatpagefraction{.5}
  89. \if@twoside
  90.   \def\ps@headings{%
  91.       \let\@oddfoot\@empty\let\@evenfoot\@empty
  92.       \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  93.       \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  94.       \let\@mkboth\markboth
  95.     \def\sectionmark##1{%
  96.       \markboth {\MakeUppercase{%
  97.         \ifnum \c@secnumdepth >\z@
  98.           \thesection\quad
  99.         \fi
  100.         ##1}}{}}%
  101.     \def\subsectionmark##1{%
  102.       \markright {%
  103.         \ifnum \c@secnumdepth >\@ne
  104.           \thesubsection\quad
  105.         \fi
  106.         ##1}}}
  107. \else
  108.   \def\ps@headings{%
  109.     \let\@oddfoot\@empty
  110.     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  111.     \let\@mkboth\markboth
  112.     \def\sectionmark##1{%
  113.       \markright {\MakeUppercase{%
  114.         \ifnum \c@secnumdepth >\m@ne
  115.           \thesection\quad
  116.         \fi
  117.         ##1}}}}
  118. \fi
  119. \def\ps@myheadings{%
  120.     \let\@oddfoot\@empty\let\@evenfoot\@empty
  121.     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  122.     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  123.     \let\@mkboth\@gobbletwo
  124.     \let\sectionmark\@gobble
  125.     \let\subsectionmark\@gobble
  126.     }
  127.   \if@titlepage
  128.   \newcommand\maketitle{\begin{titlepage}%
  129.   \let\footnotesize\small
  130.   \let\footnoterule\relax
  131.   \let \footnote \thanks
  132.   \null\vfil
  133.   \vskip 60\p@
  134.   \begin{center}%
  135.     {\LARGE \@title \par}%
  136.     \vskip 3em%
  137.     {\large
  138.      \lineskip .75em%
  139.       \begin{tabular}[t]{c}%
  140.         \@author
  141.       \end{tabular}\par}%
  142.       \vskip 1.5em%
  143.     {\large \@date \par}%       % Set date in \large size.
  144.   \end{center}\par
  145.  \@thanks
  146.  \vfil\null
  147.  \end{titlepage}%
  148.   \setcounter{footnote}{0}%
  149.   \global\let\thanks\relax
  150.   \global\let\maketitle\relax
  151.   \global\let\@thanks\@empty
  152.   \global\let\@author\@empty
  153.   \global\let\@date\@empty
  154.   \global\let\@title\@empty
  155.   \global\let\title\relax
  156.   \global\let\author\relax
  157.   \global\let\date\relax
  158.   \global\let\and\relax
  159. }
  160. \else
  161. \newcommand\maketitle{\par
  162.  \begingroup
  163.    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
  164.     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
  165.     \long\def\@makefntext##1{\parindent 1em\noindent
  166.             \hb@xt@1.8em{%
  167.                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
  168.     \if@twocolumn
  169.       \ifnum \col@number=\@ne
  170.         \@maketitle
  171.       \else
  172.         \twocolumn[\@maketitle]%
  173.       \fi
  174.     \else
  175.       \newpage
  176.       \global\@topnum\z@   % Prevents figures from going at top of page.
  177.       \@maketitle
  178.     \fi
  179.     \thispagestyle{plain}\@thanks
  180.  \endgroup
  181.  \setcounter{footnote}{0}%
  182.   \global\let\thanks\relax
  183.   \global\let\maketitle\relax
  184.   \global\let\@maketitle\relax
  185.   \global\let\@thanks\@empty
  186.   \global\let\@author\@empty
  187.   \global\let\@date\@empty
  188.   \global\let\@title\@empty
  189.   \global\let\title\relax
  190.   \global\let\author\relax
  191.   \global\let\date\relax
  192.   \global\let\and\relax
  193. }
  194. \def\@maketitle{%
  195.   \newpage
  196.   \null
  197.   \vskip 2em%
  198.   \begin{center}%
  199.   \let \footnote \thanks
  200.     {\LARGE \@title \par}%
  201.     \vskip 1.5em%
  202.     {\large
  203.       \lineskip .5em%
  204.       \begin{tabular}[t]{c}%
  205.         \@author
  206.       \end{tabular}\par}%
  207.     \vskip 1em%
  208.     {\large \@date}%
  209.   \end{center}%
  210.   \par
  211.   \vskip 1.5em}
  212. \fi
  213. \setcounter{secnumdepth}{3}
  214. \newcounter {part}
  215. \newcounter {section}
  216. \newcounter {subsection}[section]
  217. \newcounter {subsubsection}[subsection]
  218. \newcounter {paragraph}[subsubsection]
  219. \newcounter {subparagraph}[paragraph]
  220. \renewcommand \thepart {\@Roman\c@part}
  221. \renewcommand \thesection {\@arabic\c@section}
  222. \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
  223. \renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
  224. \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
  225. \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
  226. \newcommand\part{%
  227.    \if@noskipsec \leavevmode \fi
  228.    \par
  229.    \addvspace{4ex}%
  230.    \@afterindentfalse
  231.    \secdef\@part\@spart}
  232.  
  233. \def\@part[#1]#2{%
  234.     \ifnum \c@secnumdepth >\m@ne
  235.       \refstepcounter{part}%
  236.       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
  237.     \else
  238.       \addcontentsline{toc}{part}{#1}%
  239.     \fi
  240.     {\parindent \z@ \raggedright
  241.      \interlinepenalty \@M
  242.      \normalfont
  243.      \ifnum \c@secnumdepth >\m@ne
  244.        \Large\bfseries \partname\nobreakspace\thepart
  245.        \par\nobreak
  246.      \fi
  247.      \huge \bfseries #2%
  248.      \markboth{}{}\par}%
  249.     \nobreak
  250.     \vskip 3ex
  251.     \@afterheading}
  252. \def\@spart#1{%
  253.     {\parindent \z@ \raggedright
  254.     \interlinepenalty \@M
  255.     \normalfont
  256.     \huge \bfseries #1\par}%
  257.      \nobreak
  258.      \vskip 3ex
  259.      \@afterheading}
  260. \newcommand\section{\@startsection {section}{1}{\z@}%
  261.                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
  262.                                    {2.3ex \@plus.2ex}%
  263.                                    {\normalfont\Large\bfseries}}
  264. \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
  265.                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
  266.                                      {1.5ex \@plus .2ex}%
  267.                                      {\normalfont\large\bfseries}}
  268. \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  269.                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
  270.                                      {1.5ex \@plus .2ex}%
  271.                                      {\normalfont\normalsize\bfseries}}
  272. \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  273.                                     {3.25ex \@plus1ex \@minus.2ex}%
  274.                                     {-1em}%
  275.                                     {\normalfont\normalsize\bfseries}}
  276. \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
  277.                                        {3.25ex \@plus1ex \@minus .2ex}%
  278.                                        {-1em}%
  279.                                       {\normalfont\normalsize\bfseries}}
  280. \if@twocolumn
  281.  \setlength\leftmargini  {2em}
  282. \else
  283.  \setlength\leftmargini  {2.5em}
  284. \fi
  285. \leftmargin  \leftmargini
  286. \setlength\leftmarginii  {2.2em}
  287. \setlength\leftmarginiii {1.87em}
  288. \setlength\leftmarginiv  {1.7em}
  289. \if@twocolumn
  290.  \setlength\leftmarginv  {.5em}
  291.  \setlength\leftmarginvi {.5em}
  292. \else
  293.  \setlength\leftmarginv  {1em}
  294.  \setlength\leftmarginvi {1em}
  295. \fi
  296. \setlength  \labelsep  {.5em}
  297. \setlength  \labelwidth{\leftmargini}
  298. \addtolength\labelwidth{-\labelsep}
  299. \@beginparpenalty -\@lowpenalty
  300. \@endparpenalty   -\@lowpenalty
  301. \@itempenalty     -\@lowpenalty
  302. \renewcommand\theenumi{\@arabic\c@enumi}
  303. \renewcommand\theenumii{\@alph\c@enumii}
  304. \renewcommand\theenumiii{\@roman\c@enumiii}
  305. \renewcommand\theenumiv{\@Alph\c@enumiv}
  306. \newcommand\labelenumi{\theenumi.}
  307. \newcommand\labelenumii{(\theenumii)}
  308. \newcommand\labelenumiii{\theenumiii.}
  309. \newcommand\labelenumiv{\theenumiv.}
  310. \renewcommand\p@enumii{\theenumi}
  311. \renewcommand\p@enumiii{\theenumi(\theenumii)}
  312. \renewcommand\p@enumiv{\p@enumiii\theenumiii}
  313. \newcommand\labelitemi{\textbullet}
  314. \newcommand\labelitemii{\normalfont\bfseries \textendash}
  315. \newcommand\labelitemiii{\textasteriskcentered}
  316. \newcommand\labelitemiv{\textperiodcentered}
  317. \newenvironment{description}
  318.               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  319.                        \let\makelabel\descriptionlabel}}
  320.               {\endlist}
  321. \newcommand*\descriptionlabel[1]{\hspace\labelsep
  322.                                \normalfont\bfseries #1}
  323. \if@titlepage
  324.  \newenvironment{abstract}{%
  325.       \titlepage
  326.       \null\vfil
  327.       \@beginparpenalty\@lowpenalty
  328.       \begin{center}%
  329.         \bfseries \abstractname
  330.         \@endparpenalty\@M
  331.       \end{center}}%
  332.      {\par\vfil\null\endtitlepage}
  333. \else
  334.  \newenvironment{abstract}{%
  335.       \if@twocolumn
  336.         \section*{\abstractname}%
  337.       \else
  338.         \small
  339.         \begin{center}%
  340.           {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
  341.         \end{center}%
  342.         \quotation
  343.       \fi}
  344.       {\if@twocolumn\else\endquotation\fi}
  345. \fi
  346. \newenvironment{verse}
  347.               {\let\\\@centercr
  348.                \list{}{\itemsep      \z@
  349.                         \itemindent   -1.5em%
  350.                         \listparindent\itemindent
  351.                         \rightmargin  \leftmargin
  352.                         \advance\leftmargin 1.5em}%
  353.                 \item\relax}
  354.                {\endlist}
  355. \newenvironment{quotation}
  356.               {\list{}{\listparindent 1.5em%
  357.                         \itemindent    \listparindent
  358.                         \rightmargin   \leftmargin
  359.                         \parsep        \z@ \@plus\p@}%
  360.                 \item\relax}
  361.                {\endlist}
  362. \newenvironment{quote}
  363.               {\list{}{\rightmargin\leftmargin}%
  364.                 \item\relax}
  365.                {\endlist}
  366. \if@compatibility
  367. \newenvironment{titlepage}
  368.     {%
  369.       \if@twocolumn
  370.         \@restonecoltrue\onecolumn
  371.       \else
  372.         \@restonecolfalse\newpage
  373.       \fi
  374.       \thispagestyle{empty}%
  375.       \setcounter{page}\z@
  376.    }%
  377.     {\if@restonecol\twocolumn \else \newpage \fi
  378.    }
  379. \else
  380. \newenvironment{titlepage}
  381.     {%
  382.       \if@twocolumn
  383.         \@restonecoltrue\onecolumn
  384.       \else
  385.         \@restonecolfalse\newpage
  386.       \fi
  387.       \thispagestyle{empty}%
  388.       \setcounter{page}\@ne
  389.    }%
  390.     {\if@restonecol\twocolumn \else \newpage \fi
  391.     \if@twoside\else
  392.        \setcounter{page}\@ne
  393.     \fi
  394.    }
  395. \fi
  396. \newcommand\appendix{\par
  397.  \setcounter{section}{0}%
  398.   \setcounter{subsection}{0}%
  399.   \gdef\thesection{\@Alph\c@section}}
  400. \setlength\arraycolsep{5\p@}
  401. \setlength\tabcolsep{6\p@}
  402. \setlength\arrayrulewidth{.4\p@}
  403. \setlength\doublerulesep{2\p@}
  404. \setlength\tabbingsep{\labelsep}
  405. \skip\@mpfootins = \skip\footins
  406. \setlength\fboxsep{3\p@}
  407. \setlength\fboxrule{.4\p@}
  408. \renewcommand \theequation {\@arabic\c@equation}
  409. \newcounter{figure}
  410. \renewcommand \thefigure {\@arabic\c@figure}
  411. \def\fps@figure{tbp}
  412. \def\ftype@figure{1}
  413. \def\ext@figure{lof}
  414. \def\fnum@figure{\figurename\nobreakspace\thefigure}
  415. \newenvironment{figure}
  416.               {\@float{figure}}
  417.               {\end@float}
  418. \newenvironment{figure*}
  419.               {\@dblfloat{figure}}
  420.               {\end@dblfloat}
  421. \newcounter{table}
  422. \renewcommand\thetable{\@arabic\c@table}
  423. \def\fps@table{tbp}
  424. \def\ftype@table{2}
  425. \def\ext@table{lot}
  426. \def\fnum@table{\tablename\nobreakspace\thetable}
  427. \newenvironment{table}
  428.               {\@float{table}}
  429.               {\end@float}
  430. \newenvironment{table*}
  431.               {\@dblfloat{table}}
  432.               {\end@dblfloat}
  433. \newlength\abovecaptionskip
  434. \newlength\belowcaptionskip
  435. \setlength\abovecaptionskip{10\p@}
  436. \setlength\belowcaptionskip{0\p@}
  437. \long\def\@makecaption#1#2{%
  438.   \vskip\abovecaptionskip
  439.   \sbox\@tempboxa{#1: #2}%
  440.   \ifdim \wd\@tempboxa >\hsize
  441.     #1: #2\par
  442.   \else
  443.     \global \@minipagefalse
  444.     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  445.   \fi
  446.   \vskip\belowcaptionskip}
  447. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  448. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  449. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  450. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  451. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  452. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  453. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  454. \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
  455. \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
  456. \newcommand\@pnumwidth{1.55em}
  457. \newcommand\@tocrmarg{2.55em}
  458. \newcommand\@dotsep{4.5}
  459. \setcounter{tocdepth}{3}
  460. \newcommand\tableofcontents{%
  461.     \section*{\contentsname
  462.         \@mkboth{%
  463.            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
  464.     \@starttoc{toc}%
  465.     }
  466. \newcommand*\l@part[2]{%
  467.   \ifnum \c@tocdepth >-2\relax
  468.     \addpenalty\@secpenalty
  469.     \addvspace{2.25em \@plus\p@}%
  470.     \setlength\@tempdima{3em}%
  471.     \begingroup
  472.       \parindent \z@ \rightskip \@pnumwidth
  473.       \parfillskip -\@pnumwidth
  474.       {\leavevmode
  475.       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
  476.       \nobreak
  477.       \if@compatibility
  478.         \global\@nobreaktrue
  479.         \everypar{\global\@nobreakfalse\everypar{}}%
  480.       \fi
  481.     \endgroup
  482.   \fi}
  483. \newcommand*\l@section[2]{%
  484.   \ifnum \c@tocdepth >\z@
  485.     \addpenalty\@secpenalty
  486.     \addvspace{1.0em \@plus\p@}%
  487.     \setlength\@tempdima{1.5em}%
  488.     \begingroup
  489.       \parindent \z@ \rightskip \@pnumwidth
  490.       \parfillskip -\@pnumwidth
  491.       \leavevmode \bfseries
  492.       \advance\leftskip\@tempdima
  493.       \hskip -\leftskip
  494.       #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
  495.    \endgroup
  496.  \fi}
  497. \newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
  498. \newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
  499. \newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
  500. \newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
  501. \newcommand\listoffigures{%
  502.     \section*{\listfigurename}%
  503.       \@mkboth{\MakeUppercase\listfigurename}%
  504.               {\MakeUppercase\listfigurename}%
  505.     \@starttoc{lof}%
  506.     }
  507. \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
  508. \newcommand\listoftables{%
  509.     \section*{\listtablename}%
  510.       \@mkboth{%
  511.           \MakeUppercase\listtablename}%
  512.          {\MakeUppercase\listtablename}%
  513.     \@starttoc{lot}%
  514.     }
  515. \let\l@table\l@figure
  516. \newdimen\bibindent
  517. \setlength\bibindent{1.5em}
  518. \newenvironment{thebibliography}[1]
  519.     {\section*{\refname}%
  520.       \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
  521.       \list{\@biblabel{\@arabic\c@enumiv}}%
  522.            {\settowidth\labelwidth{\@biblabel{#1}}%
  523.             \leftmargin\labelwidth
  524.             \advance\leftmargin\labelsep
  525.             \@openbib@code
  526.             \usecounter{enumiv}%
  527.             \let\p@enumiv\@empty
  528.             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  529.       \sloppy
  530.       \clubpenalty4000
  531.       \@clubpenalty \clubpenalty
  532.       \widowpenalty4000%
  533.       \sfcode`\.\@m}
  534.      {\def\@noitemerr
  535.       {\@latex@warning{Empty `thebibliography' environment}}%
  536.       \endlist}
  537. \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
  538. \let\@openbib@code\@empty
  539. \newenvironment{theindex}
  540.               {\if@twocolumn
  541.                  \@restonecolfalse
  542.                \else
  543.                  \@restonecoltrue
  544.                \fi
  545.                \twocolumn[\section*{\indexname}]%
  546.                 \@mkboth{\MakeUppercase\indexname}%
  547.                         {\MakeUppercase\indexname}%
  548.                 \thispagestyle{plain}\parindent\z@
  549.                \parskip\z@ \@plus .3\p@\relax
  550.                \columnseprule \z@
  551.                \columnsep 35\p@
  552.                \let\item\@idxitem}
  553.               {\if@restonecol\onecolumn\else\clearpage\fi}
  554. \newcommand\@idxitem{\par\hangindent 40\p@}
  555. \newcommand\subitem{\@idxitem \hspace*{20\p@}}
  556. \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
  557. \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
  558. \renewcommand\footnoterule{%
  559.   \kern-3\p@
  560.   \hrule\@width.4\columnwidth
  561.   \kern2.6\p@}
  562. \newcommand\@makefntext[1]{%
  563.     \parindent 1em%
  564.     \noindent
  565.     \hb@xt@1.8em{\hss\@makefnmark}#1}
  566. \newcommand\contentsname{Contents}
  567. \newcommand\listfigurename{List of Figures}
  568. \newcommand\listtablename{List of Tables}
  569. \newcommand\refname{References}
  570. \newcommand\indexname{Index}
  571. \newcommand\figurename{Figure}
  572. \newcommand\tablename{Table}
  573. \newcommand\partname{Part}
  574. \newcommand\appendixname{Appendix}
  575. \newcommand\abstractname{Abstract}
  576. \def\today{\ifcase\month\or
  577.  January\or February\or March\or April\or May\or June\or
  578.  July\or August\or September\or October\or November\or December\fi
  579.  \space\number\day, \number\year}
  580. \setlength\columnsep{10\p@}
  581. \setlength\columnseprule{0\p@}
  582. \pagestyle{plain}
  583. \pagenumbering{arabic}
  584. \if@twoside
  585. \else
  586.   \raggedbottom
  587. \fi
  588. \if@twocolumn
  589.   \twocolumn
  590.   \sloppy
  591.   \flushbottom
  592. \else
  593.   \onecolumn
  594.   \fi
  595.  
  596. % END OF ARTICLE.CLS  
  597.  
  598. \usepackage[ngerman]{babel}        
  599. \usepackage[T1]{fontenc}            
  600. \usepackage{lmodern}                
  601.  
  602. \usepackage[intlimits]{amsmath}    
  603. \usepackage{amssymb}                
  604. \usepackage{fancyhdr}              
  605. \usepackage{lastpage}              
  606. \usepackage{moreverb}
  607. \usepackage[utf8]{inputenc}
  608.  
  609. % define document layout
  610. \setlength\textwidth{165mm}          
  611. \setlength\textheight{235mm}          
  612. \setlength\headheight{41pt}          
  613. \setlength\topmargin{-12mm}          
  614. \setlength\oddsidemargin{0mm}        
  615. \setlength\parindent{0pt}            
  616. \setlength\parskip{1.7\medskipamount}
  617. \sloppy\pagestyle{fancy}
  618.  
  619. % tikz dependencies
  620. \usepackage{pgf}
  621. \usepackage{tikz}
  622. \usepackage{graphicx}
  623. \usepackage{tikz-er2}
  624. \usepackage[siunitx]{circuitikz}
  625. \usepackage{ifthen}
  626. \usepackage{xstring}
  627. \usepackage{calc}
  628. \usepackage{pgfopts}
  629. \usepackage{tikz-uml}
  630.  
  631. % tikz intern libraries
  632. \usetikzlibrary{trees}
  633. \usetikzlibrary{arrows,automata}
  634.  
  635. \renewcommand{\headrulewidth}{0.4pt}    %obere Trennlinie
  636. % \fancyfoot[C]{Seite:~\thepage~von~\pageref{LastPage}} %Seitennummer
  637. % \renewcommand{\footrulewidth}{0.4pt}  %untere Trennlinie
  638.  
  639. \def\vblatt{~}
  640. \def\vtermin{~}
  641. \def\vbriefkasten{~}
  642. \def\vaufgabe{~}
  643. \def\vcourse{~}
  644.  
  645. % \newcommand{\name}[2]{\fancyhead[L]{#1 (#2)}}
  646. % \fancyhead[C]{\large{\bf{Blatt \vblatt \\Seite ~\thepage/\pageref{LastPage}}}}
  647. % \fancyhead[R]{\vcourse \\ \"Ubungsgruppe: \vtermin
  648. % }
  649.  
  650. \newcommand{\name}[2]{\fancyhead[R]{Seite:~\thepage/\pageref{LastPage} \\ #1 (#2)}} %Kopfzeile rechts
  651. \fancyhead[C]{\large{\bf{Blatt \vblatt }}}
  652. \fancyhead[L]{\vcourse \\ \"Ubungsgruppe: \vtermin %\\Briefkasten: \vbriefkasten
  653. }
  654.  
  655. \newcommand{\blatt}[1]{\def\vblatt{#1}}
  656. \newcommand{\termin}[1]{\def\vtermin{#1}}
  657. \newcommand{\briefkasten}[1]{\def\vbriefkasten{#1}}
  658. \newcommand{\setaufgabe}[1]{\def\vaufgabe{#1}}
  659. \newcommand{\setcourse}[1]{\def\vcourse{#1}}
  660.  
  661.  
  662. % Define those variables
  663. \name{Joschka Tillmanns}{2263801}
  664. \setcourse{COURSE}
  665. \termin{DAY FROM-TO, ROOM}
  666. \setaufgabe{0} % optional, if exercises do not begin with 1
  667. \blatt{1}
  668.  
  669. \newcounter{aufgabe}
  670. \setcounter{aufgabe}{\vaufgabe}
  671.  
  672. \newcommand{\BlattAufgabe}{\noindent\newline\addtocounter{aufgabe}{1}\textbf{Aufgabe \vblatt.\theaufgabe}\\}
  673. \newcommand{\Aufgabe}{\noindent\newline\addtocounter{aufgabe}{1}\textbf{Aufgabe \theaufgabe}\\}
  674.  
  675. \def\labelenumi{(\arabic{enumi})}
  676. \parindent0mm
  677. \endinput
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement