summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/hwexam/hwexam.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/hwexam/hwexam.sty')
-rw-r--r--Master/texmf-dist/tex/latex/stex/hwexam/hwexam.sty30
1 files changed, 20 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/hwexam/hwexam.sty b/Master/texmf-dist/tex/latex/stex/hwexam/hwexam.sty
index 2d2d29157a6..5c0e175cf0a 100644
--- a/Master/texmf-dist/tex/latex/stex/hwexam/hwexam.sty
+++ b/Master/texmf-dist/tex/latex/stex/hwexam/hwexam.sty
@@ -7,7 +7,7 @@
%% hwexam.dtx (with options: `package')
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{hwexam}[2016/04/06 v1.1 homework assignments and exams]
+\ProvidesPackage{hwexam}[2019/03/20 v1.1 homework assignments and exams]
\newif\if@hwexam@mh@\@hwexam@mh@false
\DeclareOption{mh}{\@hwexam@mh@true}
\newif\iftest\testfalse
@@ -20,9 +20,18 @@
\if@hwexam@mh@\RequirePackage{hwexam-mh}\fi
\RequirePackage{problem}
\AfterBabelLanguage{ngerman}{\input{hwexam-ngerman.ldf}}
+\AfterBabelLanguage{arabic}{\input{hwexam-arabic.ldf}}
\newcommand\hwexam@assignment@kw{Assignment}
\newcommand\hwexam@given@kw{Given}
\newcommand\hwexam@due@kw{Due}
+\newcommand\hwexam@testemptypage@kw{This page was intentionally left blank for extra
+ space}%
+\newcommand\correction@probs@kw{prob.}%
+\newcommand\correction@pts@kw{total}%
+\newcommand\correction@reached@kw{reached}%
+\newcommand\correction@sum@kw{Sum}%
+\newcommand\correction@grade@kw{grade}%
+\newcommand\correction@forgrading@kw{To be used for grading, do not write here}
\newcounter{assignment}
\numberproblemsin{assignment}
\renewcommand\prob@label[1]{\arabic{assignment}.#1}
@@ -147,7 +156,7 @@
{\noindent\large{}Name: \hfill Matriculation Number:\hspace*{2cm}\strut\\[1ex]
\begin{center}\Large\textbf{\@title}\\[1ex]\large\@date\\[3ex]\end{center}
{\textbf{You have
-\ifx\test@heading@duration\@empty\testheading@min minutes\else\testheading@duration\fi
+\ifx\testheading@duration\@empty\testheading@min minutes\else\testheading@duration\fi
(sharp) for the test}};\\ Write the solutions to the sheet.}\par\noindent
\newcount\check@time\check@time=\testheading@min
@@ -168,8 +177,7 @@ bonus points. \vfill
{\newpage}
\newcommand\testspace[1]{\iftest\vspace*{#1}\fi}
\newcommand\testnewpage{\iftest\newpage\fi}
-\newcommand\testemptypage[1][]{\iftest\begin{center}This page was intentionally left
- blank for extra space\end{center}\vfill\eject\else\fi}
+\newcommand\testemptypage[1][]{\iftest\begin{center}\hwexam@testemptypage@kw\end{center}\vfill\eject\else\fi}
\renewcommand\@problem[3]{\stepcounter{assignment@probs}
\def\@@pts{#2}\ifx\@@pts\@empty\else\addtocounter{assignment@totalpts}{#2}\fi
\def\@@min{#3}\ifx\@@min\@empty\else\addtocounter{assignment@totalmin}{#3}\fi
@@ -179,17 +187,19 @@ bonus points. \vfill
\newcounter{assignment@probs}
\newcounter{assignment@totalpts}
\newcounter{assignment@totalmin}
-\newcommand\correction@probs{prob.}%
-\newcommand\correction@pts{total}%
-\newcommand\correction@reached{reached}%
+\def\correction@probs{\correction@probs@kw}%
+\def\correction@pts{\correction@pts@kw}%
+\def\correction@reached{\correction@reached@kw}%
+\def\after@correction@table{}%
\stepcounter{assignment@probs}
\newcommand\correction@table{\begin{tabular}{|l|*{\theassignment@probs}{c|}|l|}\hline%
&\multicolumn{\theassignment@probs}{c||}%|
-{\footnotesize To be used for grading, do not write here} &\\\hline
-\correction@probs & Sum & grade\\\hline
+{\footnotesize\correction@forgrading@kw} &\\\hline
+\correction@probs & \correction@sum@kw & \correction@grade@kw\\\hline
\correction@pts &\theassignment@totalpts & \\\hline
\correction@reached & & \\[.7cm]\hline
-\end{tabular}}
+\end{tabular}
+\ifx\after@correction@table\@empty\else\strut\par\noindent\after@correction@table\fi}
\endinput
%%
%% End of file `hwexam.sty'.