Compare commits

..

8 commits

Author SHA1 Message Date
30db8f7038
fix display of config 2023-10-07 13:53:25 +02:00
3b7f9c2049
changle language 2023-10-07 13:50:40 +02:00
d113eb79bf
fix typo 2023-10-07 13:48:02 +02:00
055c27ed9b
also replace gitlab 2023-10-07 13:45:21 +02:00
465036561c
fix stylefile 2023-10-07 13:36:04 +02:00
e95d0b1343
adjust template to master + main file and add preamble 2023-10-07 13:32:20 +02:00
d7fc254ede Merge branch 'main-patch-nonstopmode' into 'main'
Update file Makefile

See merge request latexci/templates/gitlab-ci-template!1
2023-07-13 17:01:08 +00:00
cc8b153692 Update file Makefile 2023-07-13 14:39:23 +00:00
9 changed files with 118 additions and 9 deletions

18
config
View file

@ -1,7 +1,25 @@
#!/bin/bash
# Main LaTeX file (without .tex extension) e.g. '2022_My_Course')
mainfile=''
# Name of course. THis will be the title of the document
course=''
# Lecturer, also shown in title
lecturer=''
# Name of the stylefile where the header will be located (without .sty) extension
stylefile=''
# Name of GitLab instance you will host this repository at
gitlab='gitlab.com'
# Namespace of repository. This will be either your username or the top level group of the repository.
namespace=''
# Rest of the repostiory path. In case of user-repositories, this will just be the repository name. In case of a repository in a (sub)group, this will be the subgroups + the repository name (without the toplvl group)
repo=''
# term when the lecture is held (shown in README)
term=''

View file

@ -23,7 +23,7 @@ echo "WILL BE LOST. "
echo " "
echo "YOUR GIVEN CONFIGURATION IS AS FOLLOWS: "
echo ""
cat config | tail -n 5
cat config | tail -n 23
echo ""
read -p "ARE YOU SURE YOU WANT TO CONTINUE? (y/n) " -n 1 -r
@ -55,7 +55,12 @@ find -type f | xargs sed -i "s/\$mainfile/$(printf '%s\n' "$mainfile" | sed -e '
find -type f | xargs sed -i "s/\$course/$(printf '%s\n' "$course" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$stylefile/$(printf '%s\n' "$stylefile" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$repo/$(printf '%s\n' "$repo" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$namespace/$(printf '%s\n' "$namespace" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$term/$(printf '%s\n' "$term" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$lecturer/$(printf '%s\n' "$lecturer" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$assistant/$(printf '%s\n' "$assistant" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$author/$(printf '%s\n' "$author" | sed -e 's/[\/&]/\\&/g')/g"
find -type f | xargs sed -i "s/\$gitlab/$(printf '%s\n' "$gitlab" | sed -e 's/[\/&]/\\&/g')/g"
# init new repo
git init

View file

@ -1,5 +1,5 @@
pdf: init
latexmk < /dev/null
latexmk -halt-on-error < /dev/null
clean:
latexmk -c

View file

@ -6,6 +6,6 @@ The [latest version][1] is availabe as a pdf download via GitLab runner.
You can also have a look at the generated [log files][2] or visit the
[gl pages][3] index directly.
[1]: $repo/$mainfile.pdf
[2]: $repo/$mainfile.log
[3]: $repo/
[1]: https://$namespace.$gitlab/$repo/$mainfile.pdf
[2]: https://$namespace.$gitlab/$repo/$mainfile.log
[3]: https://$namespace.$gitlab/$repo/

View file

View file

View file

@ -1,18 +1,37 @@
\documentclass[10pt,ngerman,a4paper, fancyfoot, git]{mkessler-script}
\documentclass[10pt, english, a4paper, fancyfoot, git]{mkessler-script}
\course{$course}
\lecturer{}
\author{}
\lecturer{$lecturer}
\assistant{$assistant}
\author{$author}
\usepackage{$stylefile}
\setuptodonotes{disable}
\begin{document}
\maketitle
\vfill
\doclicenseThis
Visit the
\href{https://$gitlab/$namespace/$repo}{GitLab page}
for the source code of this document.
\cleardoublepage
\tableofcontents
\cleardoublepage
\listoflecture
\cleardoublepage
\tableofcontents
% \start lectures
% end lectures
\appendix
\cleardoublepage
\printbibliography
\end{document}

23
template/master.tex Normal file
View file

@ -0,0 +1,23 @@
\documentclass[10pt, english, a4paper, fancyfoot, git]{mkessler-script}
\course{$course}
\lecturer{$lecturer}
\assistant{$assistant}
\author{$author}
\usepackage{$stylefile}
\begin{document}
\maketitle
\cleardoublepage
\tableofcontents
\cleardoublepage
% \start lectures
% end lectures
\end{document}

View file

@ -1 +1,45 @@
\ProvidesPackage{$stylefile}[2022/02/10 - Style file for notes of $course]
%%% Custom packages from https://gitlab.com/latexci/packages/latex-packages
% see the corresponding documentation there for details
% Basic math package including lots of utility definitions and operators
\usepackage{mkessler-math}
% Fancy theorem environments
\usepackage[number in = section]{fancythm}
% Set up of different types of todonotes
\usepackage{mkessler-todo}
% Set up hyperref and useful colors
\usepackage{mkessler-hypersetup}
% \vocab command to highlight + index definitions
\usepackage[index]{mkessler-vocab}
% \lecture command for margin notes indicating the current lecture
% as well as summary of lectures in table of content
\usepackage[fancyhead]{mkessler-lectures}
% Inclusion of inkscape figures in Gilles Castel style
\usepackage{mkessler-incfig}
% Dumping of theorem counters to aux file, to be parsed and compile parts of the document
\usepackage{mkessler-counters}
% Custom enumeration options in {enumerate} environment
\usepackage{mkessler-enumerate}
%%% General useful packages
\usepackage{csquotes}
\usepackage{import}
\usepackage[bibfile=bibliography/references.bib]{mkessler-bibliography}
\usepackage[
type={CC},
modifier={by-sa},
version={4.0},
]{doclicense}