[hwa] Implement fix

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