Compare commits
3 Commits
version-1.
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b2bc6fcf6 | ||
|
|
63f0a587a4 | ||
|
|
bb4ab9d9e4 |
@@ -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"
|
||||
|
||||
17
Makefile
17
Makefile
@@ -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
|
||||
|
||||
@@ -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}%
|
||||
}%
|
||||
|
||||
Reference in New Issue
Block a user