From: Martin Mares Date: Sat, 13 Jan 2024 14:42:24 +0000 (+0100) Subject: Opraveno sesazování celé knihy X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0bf348af37fae71ad8d772e6077439772c1e6c35;p=ga.git Opraveno sesazování celé knihy --- diff --git a/all/Makefile b/all/Makefile index 775a5f1..dcaf462 100644 --- a/all/Makefile +++ b/all/Makefile @@ -1,16 +1,21 @@ P=ga -X=$(shell for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ; do echo ../$$a-*/$$a-*.tex ; done) +CHAP=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 +CHAPTERS=$(shell for a in $(CHAP) ; do echo ../$$a-* ; done) +X=$(shell for a in $(CHAP) ; do echo ../$$a-*/$$a-*.tex ; done) universe: all CUSTOM_UPLOAD=1 include ../Makerules -ga.pdf: ga.tex body.tex +ga.pdf: ga.tex body.tex chapters body.tex: $(X) preprocess ./preprocess $(X) >$@ +chapters: + for chap in $(CHAPTERS) ; do make -C $$chap ; done + clean:: rm -f body.tex diff --git a/all/preprocess b/all/preprocess index 4b8b7b3..58c512a 100755 --- a/all/preprocess +++ b/all/preprocess @@ -11,7 +11,8 @@ foreach my $f (@ARGV) { /^\\input .*sgr\.tex/ && next; /^\\references/ && next; /^\\bye/ && last; - s@\\(figure|fig|inlinefig|epsfbox){([^}]+)}@\\$1\{$d$2}@g; + s@\\(putepdf){([^}]*)}{([^}]+)}@\\$1\{$2}\{$d$3}@g; + s@\\(figure|fig|inlinefig){([^}]+)}@\\$1\{$d$2}@g; s@\\(twofigures)\{([^}]+)}(\{[^}]+}\{[^}]+})\{([^}]+)}@\\$1\{$d$2}$3\{$d$4}@g; print; }