mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2026-03-26 14:57:15 -05:00
Screen Readers (#53)
* add tikzcache * ignore files * add latexmkrc file * Move figures to new files * rename images * Fix build commands * Release as epub3 and mobi * Add cover-image support * use older epub * Externalize all tables * change gh actions command * fix linux xargs rm
This commit is contained in:
committed by
GitHub
parent
2691ecfa22
commit
6e97f9bbd0
@@ -1,23 +1,74 @@
|
||||
all:
|
||||
.PHONY: build_pdf
|
||||
build_pdf: clean figures tables
|
||||
pdflatex book.tex
|
||||
biber book
|
||||
pdflatex book.tex
|
||||
|
||||
fast:
|
||||
pdflatex book.tex
|
||||
.PHONY: figures
|
||||
figures:
|
||||
cd figures && find . -name "fig-*.tex" -exec pdflatex '{}' \; && cd ../
|
||||
|
||||
.PHONY: tables
|
||||
tables:
|
||||
cd tables && find . -name "table-*.tex" -exec pdflatex '{}' \; && cd ../
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm book.blg
|
||||
rm book.bbl
|
||||
rm book.aux
|
||||
rm book.out
|
||||
rm book.toc
|
||||
rm book.run.xml
|
||||
rm book.bcf
|
||||
rm book.pdf
|
||||
rm book.log
|
||||
rm -f book.blg
|
||||
rm -f book.bbl
|
||||
rm -f book.aux
|
||||
rm -f book.out
|
||||
rm -f book.toc
|
||||
rm -f book.run.xml
|
||||
rm -f book.bcf
|
||||
rm -f book.pdf
|
||||
rm -f book.log
|
||||
rm -f book.mobi
|
||||
rm -f book.4ct
|
||||
rm -f book.4tc
|
||||
rm -f book.dvi
|
||||
rm -f book.epub
|
||||
rm -f book.css
|
||||
rm -f book.fdb_latexmk
|
||||
rm -f book.fls
|
||||
rm -f book.idv
|
||||
rm -f book.lg
|
||||
rm -f book.ncx
|
||||
rm -f book.tmp
|
||||
rm -f book.xref
|
||||
rm -f book*.svg
|
||||
rm -f book*.html
|
||||
rm -f book*.xhtml
|
||||
rm -rf book-epub/
|
||||
rm -rf book-epub3/
|
||||
rm -rf book-mobi/
|
||||
rm -f *.pdf
|
||||
rm -f output.log
|
||||
rm -f content.opf
|
||||
rm -rf figures/*.aux
|
||||
rm -rf figures/*.fdb_latexmk
|
||||
rm -rf figures/*.fls
|
||||
rm -rf figures/*.log
|
||||
rm -rf figures/*.pdf
|
||||
rm -rf figures/*.png
|
||||
find . -name "*.xbb" | xargs rm -f
|
||||
rm -rf release/
|
||||
|
||||
release:
|
||||
rm -rf release
|
||||
mkdir release
|
||||
.PHONY: release
|
||||
release: clean build_pdf make_release_dir build_ebook
|
||||
cp book.pdf release/TheBreadCode-The-Sourdough-Framework.pdf
|
||||
cp book.epub release/TheBreadCode-The-Sourdough-Framework.epub
|
||||
cp book.mobi release/TheBreadCode-The-Sourdough-Framework.mobi
|
||||
cp book.azw3 release/TheBreadCode-The-Sourdough-Framework.azw3
|
||||
|
||||
.PHONY: make_release_dir
|
||||
make_release_dir:
|
||||
mkdir -p release
|
||||
|
||||
.PHONY: build_ebook
|
||||
build_ebook: build_pdf make_release_dir
|
||||
find . -name "*.jpg" | xargs ebb -x
|
||||
find . -name "*.png" | xargs ebb -x
|
||||
tex4ebook -c tex4ebook.cfg -f epub book.tex
|
||||
tex4ebook -c tex4ebook.cfg -f mobi book.tex
|
||||
tex4ebook -c tex4ebook.cfg -f azw3 book.tex
|
||||
|
||||
Reference in New Issue
Block a user