3 Commits

Author SHA1 Message Date
Kim Wittenburg
5b2bc6fcf6 Fix Checksum 2018-10-19 18:29:50 +02:00
Kim Wittenburg
63f0a587a4 Fix grouid/sheetid Issue 2018-10-16 19:35:12 +02:00
Kim Wittenburg
bb4ab9d9e4 Update Build System 2018-10-16 19:34:54 +02:00
3 changed files with 24 additions and 21 deletions

View File

@@ -1,16 +1,12 @@
image: blang/latex
image: blang/latex:ctanfull
stages:
- build
uhhassignment:
stage: build
script:
# Build the actual *.cls file
- pdflatex uhhassignment.ins
# Build the documentation files
- pdflatex uhhassignment.dtx
- makeindex -s gind.ist uhhassignment
- makeindex -s gglo.ist -o uhhassignment.gls uhhassignment.glo
- pdflatex uhhassignment.dtx
- pdflatex uhhassignment.dtx
- make all
artifacts:
paths:
- "uhhassignment.cls"

View File

@@ -5,20 +5,25 @@ CLASS_NAME = uhhassignment
INDEX_NAME = gind
GLOSSARY_NAME = gglo
dist: clean doc package cleantmp
.PHONY: all clean cleandist
doc:
all: cleanall uhhassignment.cls uhhassignment.pdf clean
test.pdf: uhhassignment.cls test.tex
latexmk -pdf test.tex
uhhassignment.pdf: uhhassignment.ins uhhassignment.dtx
$(TEXENGINE) $(CLASS_NAME).dtx
$(MAKEINDEX) -s $(INDEX_NAME).ist $(CLASS_NAME)
$(MAKEINDEX) -s $(GLOSSARY_NAME).ist -o $(CLASS_NAME).gls $(CLASS_NAME).glo
$(TEXENGINE) $(CLASS_NAME).dtx
$(TEXENGINE) $(CLASS_NAME).dtx
package:
uhhassignment.cls: uhhassignment.ins uhhassignment.dtx
$(TEXENGINE) $(CLASS_NAME).ins
clean cleantmp:
cleanall: clean
rm -f *.pdf *.cls
cleantmp:
rm -f *.log *.aux *.log *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc
clean:
rm -f *.log *.aux *.log *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc *.fls *.fdb_latexmk

View File

@@ -19,7 +19,7 @@
%<driver>\ProvidesFile{uhhassignment.dtx}
%
%<class>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<class>\ProvidesClass{uhhassignment}[2017/04/22 v1.0 The UHH-Assignment Class]
%<class>\ProvidesClass{uhhassignment}[2018/10/16 v1.0 The UHH-Assignment Class]
%<*driver>
\documentclass{ltxdoc}
\usepackage[utf8]{inputenc}
@@ -42,7 +42,7 @@
% \fi
% \CheckSum{409}
% \CheckSum{416}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -328,6 +328,8 @@
% \begin{macrocode}
\def\uhhassignment@sheetid{Aufgabenblatt}
\def\uhhassignment@groupid{Übungsgruppe}
\def\uhhassignment@taskid{Aufgabe}
\def\uhhassignment@subtaskid{Teilaufgabe}
% \end{macrocode}
% \iffalse %%%%%%%%%%%%%%%%%%%
@@ -494,9 +496,9 @@
\setcounter{task}{#1}%
}%
\ifstrempty{#2}{%
\section{Aufgabe \arabic{task}}%
\section{\uhhassignment@taskid{} \arabic{task}}%
}{%
\section{Aufgabe \arabic{task}: #2}%
\section{\uhhassignment@taskid{} \arabic{task}: #2}%
}%
}
% \end{macrocode}
@@ -514,7 +516,7 @@
\setcounter{subtask}{#1}%
}%
\ifstrempty{#2}{%
\subsection{Teilaufgabe \arabic{task}.\arabic{subtask}}%
\subsection{\uhhassignment@subtaskid{} \arabic{task}.\arabic{subtask}}%
}{%
\subsection{\arabic{task}.\arabic{subtask}. #2}%
}%
@@ -665,7 +667,7 @@
\def\titleright{}%
\extendedfalse
}{%
\def\metaleft{\uhhassignment@sheetid{} \@group}%
\def\metaleft{\uhhassignment@groupid{} \@group}%
\def\metaright{\@teacher}%
\def\titleright{\@date}%
}%