[hwa] Implement fix

parent 73c198b1
......@@ -36,8 +36,8 @@
%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
%% SOFTWARE.
\def\fileversion{v2.5h}
\def\filedate{2017/11/20}
\def\fileversion{v2.5i}
\def\filedate{2017/12/26}
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesClass{homeworkassignment}[\filedate\space\fileversion]
\RequirePackage{suffix}
......@@ -51,6 +51,7 @@
\RequirePackage{array}
\RequirePackage{xparse}
\RequirePackage{gillius2}
\RequirePackage{wasysym}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{ family=hwa,
prefix=hwa@ }
......@@ -436,11 +437,11 @@
{
#2
}
\NewDocumentEnvironment{contradiction}
{
\begin{proof}{\GetTranslation{beweis}~\GetTranslation{per}~\GetTranslation{Widerspruch}}{lightning}
}
\NewDocumentEnvironment{contradiction}{}
{
\begin{proof}{\GetTranslation{beweis}~\GetTranslation{per}~\GetTranslation{Widerspruch}}[\hfill\lightning\\]
}
{
\end{proof}
}
\DeclareTranslationFallback{aufgabe}{Aufgabe}
......
......@@ -32,8 +32,8 @@
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
% SOFTWARE.
% \fi
\def\fileversion{v2.5h}
\def\filedate{2017/11/20}
\def\fileversion{v2.5i}
\def\filedate{2017/12/26}
% \iffalse
%<*driver>
\ProvidesFile{homeworkassignment.dtx}
......@@ -183,6 +183,7 @@
\RequirePackage{array}
\RequirePackage{xparse}
\RequirePackage{gillius2}
\RequirePackage{wasysym}
% \end{macrocode}
% \section{Options\label{sec:Options}}
% KV-Options is essential for this.
......@@ -1012,11 +1013,11 @@
% Used for proofes. Starts bth proof and ends with a End-Of-Proof
% symbol.
% \begin{macrocode}
\NewDocumentEnvironment{contradiction}
{
\begin{proof}{\GetTranslation{beweis}~\GetTranslation{per}~\GetTranslation{Widerspruch}}{lightning}
}
\NewDocumentEnvironment{contradiction}{}
{
\begin{proof}{\GetTranslation{beweis}~\GetTranslation{per}~\GetTranslation{Widerspruch}}[\hfill\lightning\\]
}
{
\end{proof}
}
% \end{macrocode}
......
......@@ -13,10 +13,10 @@ This file lists all ToDos for all LaTeX-Packages and Classes in this
* HomeworkAssignment
** TODO [60%] v3.0
** TODO [70%] v3.0
- [X] Rename to homeworkassignment
- To comply to CTANs requirements of all lowercase packagenames.
- [ ] Add proof by contradiction environment
- [X] Add proof by contradiction environment
- [ ] Create environments for all existing proofs
- [X] [2/2] Add points for excercises
- [X] Expand \textbackslash{}newproblem \textbackslash{}newsubproblem etc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment