Convert each chapter to TeX and build with LaTex

Also hardcode chapter and section titles and start messing with trickery
to get rid of LaTeX warnings.
This commit is contained in:
2023-08-05 16:11:55 -06:00
parent 9414c90788
commit f58721c053
19 changed files with 82 additions and 88 deletions

View File

@ -1,11 +1,15 @@
chapters := note 01 02 03 04 05 06 07 08 09 10 11 12 appendix
edited_chapters := $(foreach chapter,$(chapters),edited/$(chapter).markdown)
tex_chapters := $(foreach chapter,$(chapters),tex/$(chapter).tex)
book.pdf: $(edited_chapters) title.txt Makefile
pandoc -o book.pdf title.txt $(edited_chapters) --table-of-contents --number-sections -V documentclass=book
book.pdf: $(tex_chapters) book.tex Makefile
pdflatex book.tex
edited/%.markdown: original/%.markdown edit-chapter.go Makefile
go run edit-chapter.go $< $@
book.tex: $(edited_chapters) title.txt Makefile
pandoc -o book.tex title.txt $(edited_chapters) --table-of-contents --number-sections -V documentclass=book
tex/%.tex: edited/%.markdown Makefile
pandoc -o $@ $< --top-level-division=chapter
tex: $(tex_chapters)