Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b2bc6fcf6 | ||
|
|
63f0a587a4 | ||
|
|
bb4ab9d9e4 |
@@ -1,16 +1,12 @@
|
|||||||
image: blang/latex
|
image: blang/latex:ctanfull
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
uhhassignment:
|
uhhassignment:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
# Build the actual *.cls file
|
- make all
|
||||||
- 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
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "uhhassignment.cls"
|
- "uhhassignment.cls"
|
||||||
|
|||||||
17
Makefile
17
Makefile
@@ -5,20 +5,25 @@ CLASS_NAME = uhhassignment
|
|||||||
INDEX_NAME = gind
|
INDEX_NAME = gind
|
||||||
GLOSSARY_NAME = gglo
|
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
|
$(TEXENGINE) $(CLASS_NAME).dtx
|
||||||
$(MAKEINDEX) -s $(INDEX_NAME).ist $(CLASS_NAME)
|
$(MAKEINDEX) -s $(INDEX_NAME).ist $(CLASS_NAME)
|
||||||
$(MAKEINDEX) -s $(GLOSSARY_NAME).ist -o $(CLASS_NAME).gls $(CLASS_NAME).glo
|
$(MAKEINDEX) -s $(GLOSSARY_NAME).ist -o $(CLASS_NAME).gls $(CLASS_NAME).glo
|
||||||
$(TEXENGINE) $(CLASS_NAME).dtx
|
$(TEXENGINE) $(CLASS_NAME).dtx
|
||||||
$(TEXENGINE) $(CLASS_NAME).dtx
|
$(TEXENGINE) $(CLASS_NAME).dtx
|
||||||
|
|
||||||
package:
|
uhhassignment.cls: uhhassignment.ins uhhassignment.dtx
|
||||||
$(TEXENGINE) $(CLASS_NAME).ins
|
$(TEXENGINE) $(CLASS_NAME).ins
|
||||||
|
|
||||||
clean cleantmp:
|
cleanall: clean
|
||||||
rm -f *.pdf *.cls
|
rm -f *.pdf *.cls
|
||||||
|
|
||||||
cleantmp:
|
clean:
|
||||||
rm -f *.log *.aux *.log *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc
|
rm -f *.log *.aux *.log *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc *.fls *.fdb_latexmk
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
%<driver>\ProvidesFile{uhhassignment.dtx}
|
%<driver>\ProvidesFile{uhhassignment.dtx}
|
||||||
%
|
%
|
||||||
%<class>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
|
%<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>
|
%<*driver>
|
||||||
\documentclass{ltxdoc}
|
\documentclass{ltxdoc}
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
% \fi
|
% \fi
|
||||||
|
|
||||||
|
|
||||||
% \CheckSum{409}
|
% \CheckSum{416}
|
||||||
%
|
%
|
||||||
% \CharacterTable
|
% \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
|
% {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}
|
% \begin{macrocode}
|
||||||
\def\uhhassignment@sheetid{Aufgabenblatt}
|
\def\uhhassignment@sheetid{Aufgabenblatt}
|
||||||
\def\uhhassignment@groupid{Übungsgruppe}
|
\def\uhhassignment@groupid{Übungsgruppe}
|
||||||
|
\def\uhhassignment@taskid{Aufgabe}
|
||||||
|
\def\uhhassignment@subtaskid{Teilaufgabe}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
|
|
||||||
% \iffalse %%%%%%%%%%%%%%%%%%%
|
% \iffalse %%%%%%%%%%%%%%%%%%%
|
||||||
@@ -494,9 +496,9 @@
|
|||||||
\setcounter{task}{#1}%
|
\setcounter{task}{#1}%
|
||||||
}%
|
}%
|
||||||
\ifstrempty{#2}{%
|
\ifstrempty{#2}{%
|
||||||
\section{Aufgabe \arabic{task}}%
|
\section{\uhhassignment@taskid{} \arabic{task}}%
|
||||||
}{%
|
}{%
|
||||||
\section{Aufgabe \arabic{task}: #2}%
|
\section{\uhhassignment@taskid{} \arabic{task}: #2}%
|
||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
@@ -514,7 +516,7 @@
|
|||||||
\setcounter{subtask}{#1}%
|
\setcounter{subtask}{#1}%
|
||||||
}%
|
}%
|
||||||
\ifstrempty{#2}{%
|
\ifstrempty{#2}{%
|
||||||
\subsection{Teilaufgabe \arabic{task}.\arabic{subtask}}%
|
\subsection{\uhhassignment@subtaskid{} \arabic{task}.\arabic{subtask}}%
|
||||||
}{%
|
}{%
|
||||||
\subsection{\arabic{task}.\arabic{subtask}. #2}%
|
\subsection{\arabic{task}.\arabic{subtask}. #2}%
|
||||||
}%
|
}%
|
||||||
@@ -665,7 +667,7 @@
|
|||||||
\def\titleright{}%
|
\def\titleright{}%
|
||||||
\extendedfalse
|
\extendedfalse
|
||||||
}{%
|
}{%
|
||||||
\def\metaleft{\uhhassignment@sheetid{} \@group}%
|
\def\metaleft{\uhhassignment@groupid{} \@group}%
|
||||||
\def\metaright{\@teacher}%
|
\def\metaright{\@teacher}%
|
||||||
\def\titleright{\@date}%
|
\def\titleright{\@date}%
|
||||||
}%
|
}%
|
||||||
|
|||||||
Reference in New Issue
Block a user