diff --git a/build.lua b/build.lua index f233fe7..875ec0b 100644 --- a/build.lua +++ b/build.lua @@ -19,7 +19,7 @@ typesetopts = "-interaction=nonstopmode --shell-escape -halt-on-error" packtdszip = true -- recommended for "tree" layouts -- Tagging -tagfiles = {"tex/*.sty", "tex/*.cls"} +tagfiles = {"tex/*.sty", "tex/*.cls", "doc/*.tex"} function tag_hook(tagname) -- os.execute('git commit -a -m "Step release tag"') -- os.execute('git tag -a -m "" ' .. tagname) @@ -29,8 +29,18 @@ end function update_tag(file, content, tagname, tagdate) tagname = string.gsub(tagname, "^v", "") if string.match(file, ".*%.sty") or string.match(file, ".*%.cls") then - -- \ProvidesExplPackage{}{}{}{} + -- \def\fileversion{} temp = string.gsub(content, + "\\def\\fileversion%{([^}]*)%}", + "\\def\\fileversion{" .. tagname .. "}" + ) + -- \def\filedate{} + temp = string.gsub(temp, + "\\def\\filedate%{([^}]*)%}", + "\\def\\filedate{" .. tagdate .. "}" + ) + -- \ProvidesExplPackage{}{}{}{} + temp = string.gsub(temp, "\\ProvidesExplPackage%{([^}]*)%}%{([^}]*)%}%{([^}]*)%}%{([^}]*)%}", "\\ProvidesExplPackage{%1}{" .. tagdate .. "}{" .. tagname .. "}{%4}" ) @@ -44,6 +54,17 @@ function update_tag(file, content, tagname, tagdate) "\\ProvidesExplClass%{([^}]*)%}%{([^}]*)%}%{([^}]*)%}%{([^}]*)%}", "\\ProvidesExplClass{%1}{" .. tagdate .. "}{" .. tagname .. "}{%4}" ) + elseif string.match(file, ".*%.tex") then + -- \version{} %%%% + temp = string.gsub(content, + "\\version%{([^}]*)%} %%%%%%%%", + "\\version{" .. tagname .. "} %%%%%%%%" + ) + -- \date{} %%%% + return string.gsub(temp, + "\\date%{([^}]*)%} %%%%%%%%", + "\\date{" .. tagdate .. "} %%%%%%%%" + ) end return content end diff --git a/doc/algoexercise_manual.tex b/doc/algoexercise_manual.tex index 3aebe4f..e7dae4f 100644 --- a/doc/algoexercise_manual.tex +++ b/doc/algoexercise_manual.tex @@ -45,18 +45,13 @@ %%--Dokumenteneinstellungen--%% %%---------------------------%% -\date{\today} +\date{2024-08-20} %%%% \author{Ruben Deisenroth} \subtitle{Rückfragen zu diesem Handbuch vorzugsweise in Discord an Rubosplay\#0815!} -\dozent{Prof. Dr. rer. nat. Karsten Weihe} % chktex 12 -\fachbereich{Informatik} -\semester{SoSe 2022} \sheetnumber{1} -% \slides{<1>} -\supervisor{\mbox{ }} \topics{Funktionalitäten der Vorlage, \LaTeX-Konventionen für das Erstellen v. Übungsblättern} \title[Handbuch]{Handbuch zur algoexercise-Klasse} -\version{2.2.3} +\version{2.2.8} %%%% \graphicspath{{./pictures/}} %%-------------------------%% diff --git a/tex/FOPBot.sty b/tex/FOPBot.sty index 7422eb6..e1c3f0f 100644 --- a/tex/FOPBot.sty +++ b/tex/FOPBot.sty @@ -1,7 +1,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \RequirePackage{tudacolors} -\ProvidesExplPackage{FOPBot}{2024-05-13}{1.0.1-Snapshot}{FOP-Bot LaTeX Package} +\ProvidesExplPackage{FOPBot}{2024-08-20}{2.2.8}{FOP-Bot LaTeX Package} % Made by Ruben Deisenroth, created in 2020 % Available at https://github.com/Rdeisenroth/FOPBot-Latex-Package diff --git a/tex/algo-common.sty b/tex/algo-common.sty index 17dd7fc..22e8381 100644 --- a/tex/algo-common.sty +++ b/tex/algo-common.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\ProvidesExplPackage{algo-common}{2024-05-13}{1.0.1-Snapshot}{Common Definitions for all Algo templates - Based on rubos-common (https://github.com/Rdeisenroth/Rubos-TUDA-Template/blob/main/tex/rubos-common.sty)} +\ProvidesExplPackage{algo-common}{2024-08-20}{2.2.8}{Common Definitions for all Algo templates - Based on rubos-common (https://github.com/Rdeisenroth/Rubos-TUDA-Template/blob/main/tex/rubos-common.sty)} % Package Made by Ruben Deisenroth, 2022 % Available at https://github.com/Rdeisenroth/Rubos-TUDA-Template/blob/main/tex/rubos-common.sty diff --git a/tex/algo-snippets.sty b/tex/algo-snippets.sty index 7141898..f04ebca 100644 --- a/tex/algo-snippets.sty +++ b/tex/algo-snippets.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\ProvidesExplPackage{algo-snippets}{2024-05-13}{1.0.1-Snapshot}{Snippets that are Commonly used in Algo} +\ProvidesExplPackage{algo-snippets}{2024-08-20}{2.2.8}{Snippets that are Commonly used in Algo} % Package Made by Ruben Deisenroth, 2022 \RequirePackage{l3keys2e} diff --git a/tex/algoexercise.cls b/tex/algoexercise.cls index 8cdae50..09a018f 100644 --- a/tex/algoexercise.cls +++ b/tex/algoexercise.cls @@ -1,7 +1,7 @@ % FOP and AuD Exercise template class % Author: Ruben Deisenroth -\def\fileversion{2.2.7} -\def\filedate{2022/08/27} +\def\fileversion{2.2.8} +\def\filedate{2024-08-20} % Sets the LaTeX version for the package to work. \NeedsTeXFormat{LaTeX2e} diff --git a/tex/algoslides.cls b/tex/algoslides.cls index 8117cdc..f76d744 100644 --- a/tex/algoslides.cls +++ b/tex/algoslides.cls @@ -1,5 +1,5 @@ -\def\fileversion{1.3.6} -\def\filedate{2022/03/10} +\def\fileversion{2.2.8} +\def\filedate{2024-08-20} % Sets the LaTeX version for the package to work. \NeedsTeXFormat{LaTeX2e} diff --git a/tex/audutils.sty b/tex/audutils.sty index 54aab32..e80e2f5 100644 --- a/tex/audutils.sty +++ b/tex/audutils.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{audutils}[2024-05-13 Algorithms and Data structures LaTeX Package] +\ProvidesPackage{audutils}[2024-08-20 Algorithms and Data structures LaTeX Package] % Made by Ruben Deisenroth, 2021 % Available at https://github.com/Rdeisenroth/AuD-Zusammenfassung/blob/master/audutils.sty