mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-12-01 15:23:59 -06:00
Use Lualatex (#159)
* Use LuaLaTeX instead of pdfTeX
Will allow to use Open Type Fonts in the future
Other less important reasons:
- Uniform encoding in UTF-8
- We could maybe use some luaTeX only packages
- It's more modern, should be better
* Use Tex Gyre Heros as helvetica clone
As it does not seem available by default on the CI machine and might
have some licensing issues.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Macros for commands
|
# Macros for commands
|
||||||
LATEX := latexmk -cd -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make
|
LATEX := latexmk -cd -pdflua -lualatex="lualatex -interaction=nonstopmode" -use-make
|
||||||
EBOOK := tex4ebook -d epub -c tex4ebook.cfg
|
EBOOK := tex4ebook --lua -d epub -c tex4ebook.cfg
|
||||||
CLEAN := latexmk -cd -c -use-make
|
CLEAN := latexmk --lua -cd -c -use-make
|
||||||
EBOOK_CONVERT := kindlegen
|
EBOOK_CONVERT := kindlegen
|
||||||
CHECK_1 := lacheck
|
CHECK_1 := lacheck
|
||||||
CHECK_2 := chktex
|
CHECK_2 := chktex
|
||||||
@@ -225,7 +225,7 @@ release_sans_serif: build_sans_serif_pdf build_sans_serif_ebook | make_release_d
|
|||||||
.PHONY: website
|
.PHONY: website
|
||||||
website:
|
website:
|
||||||
rm -rf $(WEBSITE_DIR)
|
rm -rf $(WEBSITE_DIR)
|
||||||
make4ht -c website.cfg -a debug -uf html5+tidy+common_domfilters+dvisvgm_hashes -d $(WEBSITE_DIR) book.tex
|
make4ht --lua -c website.cfg -a debug -uf html5+tidy+common_domfilters+dvisvgm_hashes -d $(WEBSITE_DIR) book.tex
|
||||||
cp $(WEBSITE_DIR)/book.html $(WEBSITE_DIR)/index.html
|
cp $(WEBSITE_DIR)/book.html $(WEBSITE_DIR)/index.html
|
||||||
|
|
||||||
# Debug Stuff from now on
|
# Debug Stuff from now on
|
||||||
@@ -233,7 +233,7 @@ website:
|
|||||||
show_tools_version: # Show version of tools used on the build machine
|
show_tools_version: # Show version of tools used on the build machine
|
||||||
- latexmk --version
|
- latexmk --version
|
||||||
@echo ""
|
@echo ""
|
||||||
- pdflatex --version
|
- lualatex --version
|
||||||
@echo ""
|
@echo ""
|
||||||
- tex4ebook --version
|
- tex4ebook --version
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
\ProvidesPackage{sourdough}
|
\ProvidesPackage{sourdough}
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage{blindtext}
|
\usepackage{blindtext}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage{booktabs}
|
\usepackage{booktabs}
|
||||||
\usepackage{longtable}
|
\usepackage{longtable}
|
||||||
\usepackage{tocbasic}
|
\usepackage{tocbasic}
|
||||||
\usepackage[T1]{fontenc}
|
|
||||||
\usepackage{chemformula}
|
\usepackage{chemformula}
|
||||||
\usepackage{chemfig}
|
\usepackage{chemfig}
|
||||||
\usepackage{booktabs}
|
\usepackage{booktabs}
|
||||||
\usepackage{makecell}
|
\usepackage{makecell}
|
||||||
\usepackage{siunitx}
|
\usepackage{siunitx}
|
||||||
|
\usepackage{fontspec}
|
||||||
|
|
||||||
\renewcommand\theadfont{\bfseries}
|
\renewcommand\theadfont{\bfseries}
|
||||||
|
|
||||||
@@ -25,8 +24,7 @@
|
|||||||
|
|
||||||
% Fonts for accessibility
|
% Fonts for accessibility
|
||||||
\ifdefined\isaccessible
|
\ifdefined\isaccessible
|
||||||
\usepackage{helvet}
|
\setmainfont{TeX Gyre Heros} % Helvetica clone
|
||||||
\renewcommand{\familydefault}{\sfdefault}
|
|
||||||
\fi
|
\fi
|
||||||
|
|
||||||
% Kerning in footnotes
|
% Kerning in footnotes
|
||||||
|
|||||||
Reference in New Issue
Block a user