From fa714906a7f52f6e16493d7ea919a9b80aa589a7 Mon Sep 17 00:00:00 2001 From: Cedric Date: Mon, 15 Jan 2024 20:58:38 +0000 Subject: [PATCH 1/2] Force flowchart width to 100% For all floats actually... --- book/book-ebook.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/book/book-ebook.css b/book/book-ebook.css index ecc3e08..f652051 100644 --- a/book/book-ebook.css +++ b/book/book-ebook.css @@ -7,3 +7,12 @@ object-fit: contain; width: auto; } +.float { + max-width: 100%; +} +.float img { + max-width: 100% !important; + height: auto; + object-fit: contain; + width: auto; +} From 617901cc81f83bb26e73ada04def9a22cdbcb410 Mon Sep 17 00:00:00 2001 From: Ced Date: Fri, 19 Jan 2024 14:06:01 +0000 Subject: [PATCH 2/2] Add css files as dependency in makefile They were not tracked. Also reorganised a little bit to decouple pdf from ebook. --- book/makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/book/makefile b/book/makefile index a40a068..d77a8cc 100644 --- a/book/makefile +++ b/book/makefile @@ -49,9 +49,11 @@ images += $(foreach directory, $(chapters), $(wildcard $(directory)/*/*.png)) # images to lower resolution and greyscale bw_images := $(addprefix bw-book-epub/OEBPS/, $(images)) -src_all := $(src_tex) $(src_figures) $(src_tables) tex4ebook.cfg book.mk4 $(images) +src_all := $(src_tex) $(src_figures) $(src_tables) $(images) -website_src := $(src_all) website.cfg +ebook_src := $(src_all) tex4ebook.cfg book.mk4 book-ebook.css + +website_src := $(src_all) website.cfg style.css website_assets := $(wildcard ../website/assets/*) ruby_src := ../website/modify_build.rb $(website_assets) @@ -89,7 +91,7 @@ book_sans_serif/book_sans_serif.pdf: $(src_all) .PHONY: copy_ebook_files -epub/%.epub: %.tex $(src_all) cover/cover-page.xbb +epub/%.epub: %.tex $(ebook_src) cover/cover-page.xbb $(EBOOK) $< copy_ebook_files: build_ebook