From 165dedfe3011fbd18b9854f884d8509b0e43189a Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 19 Feb 2026 17:59:21 +0100 Subject: [PATCH] Some more attempted fixes --- build/build.py | 4 +++- install.sh | 13 +++++-------- janishutz-helpers.sty | 3 ++- janishutz-helpers.tex | 3 ++- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/build/build.py b/build/build.py index 5c4d544..17b35ab 100644 --- a/build/build.py +++ b/build/build.py @@ -3,7 +3,7 @@ from typing import List import labels import datetime -version = "1.0.0" +version = "1.0.1" print(""" ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ @@ -39,6 +39,8 @@ l = labels.generate_labels() output += l[0] + "\n\n" output += l[1] +output += "\\endinput" + with open("../janishutz-helpers.tex", "w") as file: file.write(output) diff --git a/install.sh b/install.sh index 294a8db..c90bbcc 100755 --- a/install.sh +++ b/install.sh @@ -4,10 +4,10 @@ cd build/ python build.py cd .. -loc="s" -read -p "Local (l) or system (s) installation? (Defaults to system) " loc +loc="l" +read -p "Local (l) or system (s) installation? (Defaults to local) " loc -if [[ "$loc" == "l" ]]; then +if [[ "$loc" != "s" ]]; then if [[ -z "${TEXMFHOME+x}" ]]; then export TEXMFHOME=~/texmf/ fi @@ -15,11 +15,8 @@ if [[ "$loc" == "l" ]]; then mkdir -p $TEXMFHOME/tex/latex/janishutz-helpers cp ./janishutz-helpers.sty $TEXMFHOME/tex/latex/janishutz-helpers/ else - # sudo mkdir -p /usr/share/texmf/tex/latex/janishutz-helpers - # sudo cp ./janishutz-helpers.sty /usr/share/texmf/tex/latex/janishutz-helpers/ - sudo mkdir -p /usr/share/texmf-dist/tex/latex/janishutz-helpers/ - sudo cp ./janishutz-helpers.sty /usr/share/texmf-dist/tex/latex/janishutz-helpers/ - sudo chmod -R 777 /usr/share/texmf-dist/tex/latex/janishutz-helpers + sudo mkdir -p /usr/share/texmf/tex/latex/janishutz-helpers + sudo cp ./janishutz-helpers.sty /usr/share/texmf/tex/latex/janishutz-helpers/ echo "Updating file database" sudo texhash fi diff --git a/janishutz-helpers.sty b/janishutz-helpers.sty index 01be5fc..f390be2 100644 --- a/janishutz-helpers.sty +++ b/janishutz-helpers.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{janishutz-helpers}[2026-02-19 v1.0.0] +\ProvidesPackage{janishutz-helpers}[2026-02-19 v1.0.1] % Package imports \RequirePackage[table, dvipsnames]{xcolor} @@ -1080,3 +1080,4 @@ \setcounter{table}{0} \setcounter{figure}{0} } +\endinput \ No newline at end of file diff --git a/janishutz-helpers.tex b/janishutz-helpers.tex index 01be5fc..f390be2 100644 --- a/janishutz-helpers.tex +++ b/janishutz-helpers.tex @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{janishutz-helpers}[2026-02-19 v1.0.0] +\ProvidesPackage{janishutz-helpers}[2026-02-19 v1.0.1] % Package imports \RequirePackage[table, dvipsnames]{xcolor} @@ -1080,3 +1080,4 @@ \setcounter{table}{0} \setcounter{figure}{0} } +\endinput \ No newline at end of file