summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-11-09 00:08:59 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-11-09 00:08:59 +0100
commit21ee89afb4198e4d0e580cbf07e046e7e8350382 (patch)
treee0b9d5b9b58e74917461cfa84341ebf3aa5196c6
parent1fa99b207b8fd65a14142e8ddd4279f8da717459 (diff)
downloadgpcfhw-21ee89afb4198e4d0e580cbf07e046e7e8350382.tar.gz
gpcfhw-21ee89afb4198e4d0e580cbf07e046e7e8350382.tar.bz2
gpcfhw-21ee89afb4198e4d0e580cbf07e046e7e8350382.zip
Added command to make table for grading.
-rw-r--r--gpcfhw.cls39
1 files changed, 34 insertions, 5 deletions
diff --git a/gpcfhw.cls b/gpcfhw.cls
index cc41f1b..4a5d36b 100644
--- a/gpcfhw.cls
+++ b/gpcfhw.cls
@@ -16,13 +16,16 @@
\RequirePackage{amssymb}
%\title{1. Hausaufgabe}
\RequirePackage{fancyhdr}
+\RequirePackage{totcount}
+\RequirePackage{tikz}
+\RequirePackage{calc}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.1pt}
\date{}
\newtheorem{thm}{Satz}
\newtheorem{lem}{Lemma}
-\newcounter{exc} % Counter that is incremented with every solution.
+\newtotcounter{exc} % Counter that is incremented with every solution.
\newcommand{\thehanr}{}
\newcommand{\authori}{}
\newcommand{\authork}{}
@@ -42,8 +45,9 @@
\newcommand{\authors}[2]{\renewcommand{\authori}{#1}\renewcommand{\authork}{#2}}
\newcommand{\mats}[2]{\renewcommand{\mati}{#1}\renewcommand{\matk}{#2}}
\newcommand{\tutorium}[1]{\renewcommand{\thetutorium}{#1}}
-
-
+\newcommand{\inv}{^{-1}}
+\newcommand{\Id}{\text{Id}}
+\newcounter{k}
\let\implies\Rightarrow
\let\iff\Leftrightarrow
\newtheorem{bem}{Bemerkung}
@@ -63,7 +67,7 @@
\renewcommand\vec[1]{\setbox0=\hbox{$#1$}\lower2ex\hbox to 0pt{\hbox to \wd0{\hss$\arr\;$\hss}\hss}\box0}
\renewcommand*\descriptionlabel[1]{\hspace\labelsep
\normalfont\it #1}
-
+\newcommand{\bigline}{\mbox{\vline height 0.4cm depth 1cm}}
\renewcommand{\bfseries}{\rm}
\renewcommand{\maketitle}{
\newpage
@@ -73,4 +77,29 @@
\noindent\authori \hfill \mati \\
\noindent\authork \hfill \matk \\
\noindent Tutorium: \hfill \thetutorium
- \vspace{1cm}} \ No newline at end of file
+ \vspace{1cm}}
+\newcommand{\exctable}{
+ \par\noindent\vspace{0.5cm}\bigline\foreach \n in {1, ..., \totvalue{exc}} {%
+ \hfill\n\hfill\bigline%
+} \hfill$\Sigma$\mbox{}\hfill\mbox{}\bigline\\%
+\vspace{-2.4cm}\\\mbox{}\hrulefill\\\vspace{1cm}
+\vspace{-1.3cm}\\\mbox{}\hrulefill\\
+\vspace{-0.1cm}\\\mbox{}\hrulefill\\\vspace{1cm}
+}
+% \newcommand{\exctable}{
+% \begin{tabular}{c | c | c | c | c | c | c | c | c | c | c | c | c |
+% c | c}
+
+% \pgfplotsforeachungrouped \i in {1..\totvalue{exc}} e{\i&}
+% \end{tabular}}
+% \newcommand{\samp}{&}
+% % % \begin{tikzpicture}
+% % % \foreach \n in {1,...,\totvalue{exc}}{
+% % % \draw (\n,0) -- (\n,-2);
+% % % \draw (\n+0.5,0) label above \n}
+% % % \end{tikzpicture}
+% \valign{\hrule\vskip 2pt plus 1fil\hbox{\strut\quad ##\quad}\vfill&
+% \hrule\vskip 2pt plus 1 fil \hbox{\strut\quad ##\quad}
+% \vskip 1pt plus 1fil\hrule\cr
+% \foreach \n in {1, ..., \totvalue{exc}} {\n& \cr\noalign{\vrule}}}
+% } \ No newline at end of file