Skip to content

Commit

Permalink
Renamed core/latex, fixed shorthands and install script
Browse files Browse the repository at this point in the history
  • Loading branch information
sesquideus committed Jan 4, 2024
1 parent f70f9fd commit 366ba2d
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
DIR=$(dirname $0)
TEXHOME=`kpsewhich -var-value=TEXMFHOME`
mkdir -p $TEXHOME/tex/latex/
ln -s $PWD/core/tex/dgs.cls $TEXHOME/tex/latex/dgs.cls
ln -s $PWD/core/latex/dgs.cls $TEXHOME/tex/latex/dgs.cls
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ output/%.html: source/%.md
$(call pandochtml,sk)

# DeGeŠ convert Markdown to HTML (for web)
output/%.html: source/%.md
$(call pandochtml,sk)
./wr -input $@ -template core/tex/wr.tex --engine xelatex -innerhtml -eqdir .webtex -output $@.conv
mv $@.conv $@
#output/%.html: source/%.md
# $(call pandochtml,sk)
# ./wr -input $@ -template core/latex/wr.tex --engine xelatex -innerhtml -eqdir .webtex -output [email protected]
# mv [email protected] $@

.SECONDEXPANSION:

Expand Down
2 changes: 1 addition & 1 deletion core/builder/convertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Convertor:
}

def __init__(self, output_format: str, locale_code: str, infile, outfile, **options):
self.output_format = output_format
self.output_format: str = output_format
self.locale_code: str = locale_code
self.locale: i18n.Locale = i18n.languages[locale_code]
self.infile = infile
Expand Down
13 changes: 7 additions & 6 deletions core/tex/dgs.cls → core/latex/dgs.cls
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
]{hyperref}

\RequirePackage[
shorthands=off,
slovak,
czech,
german,
Expand Down Expand Up @@ -163,9 +164,9 @@
\RenewExpandableDocumentCommand{\activeDirectory}{}{#1}%
}

\input{core/tex/fonts.tex}
\input{core/tex/utilities.tex}
\input{core/tex/math.tex}
\input{core/tex/hacks.tex}
\input{core/tex/symbols.tex}
\input{core/tex/siunitx.tex}
\input{core/latex/fonts.tex}
\input{core/latex/utilities.tex}
\input{core/latex/math.tex}
\input{core/latex/hacks.tex}
\input{core/latex/symbols.tex}
\input{core/latex/siunitx.tex}
File renamed without changes.
4 changes: 4 additions & 0 deletions core/tex/hacks.tex → core/latex/hacks.tex
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
}
}


% Force [H] float placement
\floatplacement{figure}{H}

\usepackage{stackengine}
\setstackEOL{\\}

Expand Down
2 changes: 2 additions & 0 deletions core/tex/math.tex → core/latex/math.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

\ExplSyntaxOff

\DeclareMathOperator{\arccot}{\mathrm{arccot}}

% Section: differentials

% Regular upright differential
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions core/tex/wrt.tex → core/latex/wrt.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
BoldItalicFont = *-BoldIt
]{MinionPro}

\input{core/tex/siunitx.tex}
\input{core/tex/math.tex}
\input{core/latex/siunitx.tex}
\input{core/latex/math.tex}

\changefontsizes{13pt}

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DIR=$(dirname $0)
TEXHOME=`kpsewhich -var-value=TEXMFHOME`
mkdir -p $TEXHOME/tex/latex/
ln -s $PWD/core/tex/dgs.cls $TEXHOME/tex/latex/dgs.cls
ln -s $PWD/core/latex/dgs.cls $TEXHOME/tex/latex/dgs.cls

sudo apt install texlive-full texlive-fonts-extra pandoc librsvg2-bin

Expand Down

0 comments on commit 366ba2d

Please sign in to comment.