Compare commits

...

27 Commits

Author SHA1 Message Date
Rifqi D. Panuluh
5c513e4629 Revert "Expose maketitle by just using \input" 2025-06-03 20:12:11 +07:00
Rifqi D. Panuluh
38ece73768 Merge pull request #92 from nuluh/latex/91-bug-expose-maketitle 2025-06-03 20:09:13 +07:00
nuluh
76a09c0219 refactor(documentclass): update title handling by using input files for maketitle
Closes #91
2025-06-03 19:17:08 +07:00
nuluh
1a994fd59c fix(documentclass): restore and customize English bibliography strings 2025-06-03 19:10:01 +07:00
nuluh
cdb3010b78 fix(documentclass): fix redefined bibliography strings error 2025-06-03 19:05:43 +07:00
Rifqi D. Panuluh
e5b9806462 Update latexdiff.yml 2025-06-03 18:09:18 +07:00
Rifqi D. Panuluh
8dbb448b32 Update latexdiff.yml 2025-06-03 18:00:43 +07:00
Rifqi D. Panuluh
033d949325 Update latexdiff.yml 2025-06-03 17:29:50 +07:00
Rifqi D. Panuluh
643c0ebce1 Update latexdiff.yml 2025-06-03 17:19:07 +07:00
Rifqi D. Panuluh
4851a9aa5d Update latexdiff.yml 2025-06-03 17:05:30 +07:00
nuluh
8a3c1ae585 refactor(main): comment out unused input sections and update chapter includes 2025-06-03 16:37:15 +07:00
Rifqi D. Panuluh
fd765b113f Update latex-lint.yml 2025-06-03 15:35:51 +07:00
Rifqi D. Panuluh
fe801b0a1c Update latex-lint.yml 2025-06-03 15:16:16 +07:00
nuluh
7b934d3fba fix(acknowledgement): fix file naming 2025-06-03 15:02:12 +07:00
Rifqi D. Panuluh
dbc62fea32 Update latex-lint.yml 2025-06-03 15:01:15 +07:00
Rifqi D. Panuluh
1ad235866e Update latexdiff.yml 2025-06-03 14:44:52 +07:00
Rifqi D. Panuluh
05796d0165 Create latex-lint.yml 2025-06-03 14:42:29 +07:00
Rifqi D. Panuluh
f8e9ac93a0 Update latexdiff.yml
fix path
2025-06-03 14:27:00 +07:00
Rifqi D. Panuluh
04546f8c35 Update latexdiff.yml
ensures that all \include{} or \input{} paths (which are relative to main.tex) resolve correctly
2025-06-03 14:20:23 +07:00
Rifqi D. Panuluh
26450026bb Update latexdiff.yml
fix  Alpine’s “externally‐managed‐environment” restriction by install flatex inside a virtual environment rather than system‐wide
2025-06-03 14:00:50 +07:00
Rifqi D. Panuluh
3a17cc1331 Update latexdiff.yml
using a pre-built TeX Live Docker image to avoid reinstalling texlive-full every run
2025-06-03 13:42:35 +07:00
Rifqi D. Panuluh
e9f953f731 Create latexmk.yml 2025-06-03 13:26:38 +07:00
Rifqi D. Panuluh
2c5c78b83c Create latexdiff.yml 2025-06-03 13:09:41 +07:00
nuluh
aaccad7ae8 feat(glossaries): wip 2025-06-01 16:47:32 +07:00
Rifqi D. Panuluh
2c453ec403 Merge pull request #89 from nuluh/feature/88-refactor-training-cell
Closes #88
2025-05-29 23:04:24 +07:00
nuluh
7da3179d08 refactor(nb): Create and implement helper function train_and_evaluate_model 2025-05-29 22:57:28 +07:00
nuluh
254b24cb21 feat(viz): Update plotting for STFT data visualization with color map 'jet' and added color bar 2025-05-29 20:35:35 +07:00
3 changed files with 170 additions and 0 deletions

52
.github/workflows/latex-lint.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: LaTeX Lint
on:
push:
branches:
- main
- dev
paths:
- 'latex/**/*.tex'
- 'latex/main.tex'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install chktex
run: |
sudo apt-get update
sudo apt-get install -y chktex
- name: Run chktex inside latex/
working-directory: latex
run: |
TEX_FILES=$(find . -type f -name "*.tex")
if [ -z "$TEX_FILES" ]; then
echo "No .tex files found in latex/. Skipping lint."
exit 0
fi
echo "🔍 Linting .tex files with chktex..."
FAIL=0
for f in $TEX_FILES; do
echo "▶ Checking $f"
# Run chktex and show output; capture error status
if ! chktex "$f"; then
echo "::warning file=$f::ChkTeX found issues in $f"
FAIL=1
fi
done
if [ $FAIL -ne 0 ]; then
echo "::error::❌ Lint errors or warnings were found in one or more .tex files above."
exit 1
else
echo "✅ All files passed chktex lint."
fi

89
.github/workflows/latexdiff.yml vendored Normal file
View File

@@ -0,0 +1,89 @@
name: LaTeX Diff
on:
workflow_dispatch:
inputs:
base_branch:
description: 'Base branch (older version)'
required: true
compare_branch:
description: 'Compare branch (new version)'
required: true
jobs:
latexdiff:
runs-on: ubuntu-latest
container:
image: ghcr.io/xu-cheng/texlive-full:latest
options: --user root
steps:
- name: Install latexpand (Perl script)
run: |
tlmgr init-usertree
tlmgr install latexpand
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.base_branch }}
path: base
- name: Checkout compare branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.compare_branch }}
path: compare
- name: Create output folder
run: mkdir -p diff_output
- name: Flatten base/main.tex (with latexpand)
run: |
cd base/latex
echo "📂 Listing files in base/latex:"
ls -R
echo "🔄 Flattening with latexpand..."
latexpand --verbose --keep-comments --output=../../diff_output/base_flat.tex main.tex
echo "✅ Preview of base_flat.tex:"
head -n 50 ../../diff_output/base_flat.tex
- name: Flatten compare/main.tex (with latexpand)
run: |
cd compare/latex
echo "📂 Listing files in compare/latex:"
ls -R
echo "🔄 Flattening with latexpand..."
latexpand --verbose --keep-comments --output=../../diff_output/compare_flat.tex main.tex
echo "✅ Preview of compare_flat.tex:"
head -n 50 ../../diff_output/compare_flat.tex
- name: Generate diff.tex using latexdiff
run: |
latexdiff diff_output/base_flat.tex diff_output/compare_flat.tex > diff_output/diff.tex
- name: Upload flattened .tex and diff.tex early
uses: actions/upload-artifact@v4
with:
name: latex-diff-tex
path: |
diff_output/base_flat.tex
diff_output/compare_flat.tex
diff_output/diff.tex
- name: Copy thesis.cls to diff_output
run: cp compare/latex/thesis.cls diff_output/
- name: Compile diff.tex to PDF
working-directory: diff_output
run: |
xelatex -interaction=nonstopmode diff.tex
xelatex -interaction=nonstopmode diff.tex
- name: Upload diff output files
uses: actions/upload-artifact@v4
with:
name: latex-diff-output
path: diff_output/

29
.github/workflows/latexmk.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Render XeLaTeX on PR to dev
on:
pull_request:
branches:
- dev
jobs:
build-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile XeLaTeX
uses: dante-ev/latex-action@2021-A
with:
root_file: main.tex
working_directory: latex
compiler: xelatex
args: -interaction=nonstopmode -halt-on-error -file-line-error
extra_system_packages: "fonts-freefont-otf"
- name: Upload compiled PDF
uses: actions/upload-artifact@v4
with:
name: compiled-pdf
path: latex/main.pdf