diff options
author | Karl Berry <karl@freefriends.org> | 2019-03-20 22:31:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-03-20 22:31:24 +0000 |
commit | 2b006ec0e0cafe12255f874f9c44786ab6f38901 (patch) | |
tree | c40f5796e1b34e3f051abd84d049e092e4ffd0ab /Master/texmf-dist/source/latex/stex/hwexam | |
parent | 8e508e8b0218f17eb318645073096f2cf645cc78 (diff) |
stex (20mar19)
git-svn-id: svn://tug.org/texlive/trunk@50489 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/hwexam')
-rw-r--r-- | Master/texmf-dist/source/latex/stex/hwexam/hwexam.dtx | 52 |
1 files changed, 33 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/stex/hwexam/hwexam.dtx b/Master/texmf-dist/source/latex/stex/hwexam/hwexam.dtx index 4a53b2b1c94..e1ef472a24a 100644 --- a/Master/texmf-dist/source/latex/stex/hwexam/hwexam.dtx +++ b/Master/texmf-dist/source/latex/stex/hwexam/hwexam.dtx @@ -9,11 +9,12 @@ % % \iffalse %<package|cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01] -%<package>\ProvidesPackage{hwexam}[2016/04/07 v1.1 homework assignments and exams] -%<cls>\ProvidesClass{hwexam}[2016/04/07 v1.1 assignment and exam documents] +%<package>\ProvidesPackage{hwexam}[2019/03/20 v1.1 homework assignments and exams] +%<cls>\ProvidesClass{hwexam}[2019/03/20 v1.1 assignment and exam documents] % %<*driver> \documentclass{ltxdoc} +\usepackage[utf8]{inputenc} \usepackage{url,float} \usepackage{hwexam} \usepackage[show]{ed} @@ -29,8 +30,11 @@ \floatstyle{boxed} \newfloat{exfig}{thp}{lop} \floatname{exfig}{Example} -\def\tracissue#1{\cite{sTeX:online}, \hyperlink{http://trac.kwarc.info/sTeX/ticket/#1}{issue #1}} -\begin{document}\DocInput{hwexam.dtx}\end{document} +\def\githubissue#1{\cite{sTeX:github:on}, \hyperlink{https://github.com/KWARC/sTeX/issues/#1}{issue #1}} +\begin{document} +\RecordChanges +\DocInput{hwexam.dtx} +\end{document} %</driver> % \fi %\CheckSum{464} @@ -52,8 +56,8 @@ % \title{\texttt{hwexam.sty/cls}: An Infrastructure for formatting Assignments % and Exams\thanks{Version {\fileversion} (last revised {\filedate})}} % \author{Michael Kohlhase\\ -% Jacobs University, Bremen\\ -% \url{http://kwarc.info/kohlhase}} +% FAU Erlangen-N\"urnberg\\ +% \url{http://kwarc.info/kohlhase}} % \maketitle % % \begin{abstract} @@ -163,9 +167,9 @@ % In this section we document known limitations. If you want to help alleviate them, % please feel free to contact the package author. Some of them are currently discussed in % the \sTeX GitHub repository~\cite{sTeX:github:on}. -% \begin{compactenum} +% \begin{enumerate} % \item none reported yet. -% \end{compactenum} +% \end{enumerate} % % \StopEventually{\newpage\PrintIndex\newpage\PrintChanges\printbibliography}\newpage % \newpage @@ -246,9 +250,18 @@ % |*.ldf| files. % \begin{macrocode} \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} % \end{macrocode} % \end{macro} % @@ -451,7 +464,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 @@ -488,14 +501,13 @@ bonus points. \vfill % % \begin{macro}{\testemptypage} % \begin{macrocode} -\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} % \end{macrocode} % \end{macro} % % \begin{macro}{\@problem} -% This macro acts on a problem's record in the |*.aux| file. Here we redefine it to -% generate the correction table. +% This macro acts on a problem's record in the |*.aux| file. Here we redefine it (it was +% defined to do nothing in |problem.sty|) to generate the correction table. % \begin{macrocode} \renewcommand\@problem[3]{\stepcounter{assignment@probs} \def\@@pts{#2}\ifx\@@pts\@empty\else\addtocounter{assignment@totalpts}{#2}\fi @@ -512,17 +524,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} %</package> % \end{macrocode} % \end{macro} |