Advertisement
Guest User

Untitled

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