Skip to content

Commit

Permalink
Merge pull request #338 from hendricius/fix-ebook-flowchart-overflow
Browse files Browse the repository at this point in the history
Force flowchart width to 100% Manx and makefile to track css files
  • Loading branch information
cedounet authored Jan 19, 2024
2 parents 9fa7a76 + 617901c commit f8f2b80
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions book/book-ebook.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
8 changes: 5 additions & 3 deletions book/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f8f2b80

Please sign in to comment.