From ef799ca43701a6ddde5244e972e3e4350a068b73 Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Wed, 21 Jan 2026 16:04:19 +0200 Subject: Use luatex and lwarp --- Makefile | 8 ++++++-- flake.nix | 14 +++++++++++++- radio.tex | 1 + 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 970689b..57b17b2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ .DEFAULT_GOAL := output output: - make4ht --lua --build-dir /tmp/radiotex --output-dir ./html -c myconfig.cfg -f html5 radio.tex - tidy -modify -indent html/radio.html + lualatex radio.tex + lwarpmk html + tidy -modify -indent radio.html + +clean: + rm -f lwarp* comment* *.aux *.txt *.pdf *.toc *.log *.lwarpmkconf *.out radio.html sample_project.css radio_html.* diff --git a/flake.nix b/flake.nix index 9ee2316..4c65aa1 100644 --- a/flake.nix +++ b/flake.nix @@ -19,18 +19,27 @@ system: let pkgs = nixpkgsFor.${system}; - mytex = pkgs.texliveMedium.withPackages (ps: [ + mytex = pkgs.texliveSmall.withPackages (ps: [ ps.adjustbox ps.alphalph + ps.capt-of + ps.catchfile ps.changepage + ps.cleveref + ps.comment ps.enumitem + ps.environ ps.etoc ps.fontaxes ps.hanging + ps.ifmtarg + ps.ifptex ps.ltablex + ps.lwarp ps.multirow ps.newunicodechar ps.ninecolors + ps.printlen ps.roboto ps.sectsty ps.stackengine @@ -39,7 +48,10 @@ ps.tocloft ps.transparent ps.varwidth + ps.verifycommand + ps.xifthen ps.xltabular + ps.xstring ]); in { diff --git a/radio.tex b/radio.tex index 4d4ce1e..89a42e9 100644 --- a/radio.tex +++ b/radio.tex @@ -1,6 +1,7 @@ \documentclass{article} \usepackage[utf8]{inputenc} +\usepackage[mathjax]{lwarp} \usepackage[T1]{fontenc} \usepackage{roboto} \usepackage{microtype} -- cgit v1.3-1-g0d28