From c03c0d5f9d999a73ec36675aef5f9367005c2eea Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 16 Apr 2026 17:59:56 +0200 Subject: [PATCH 1/2] Adjusted dot call to avoid pdflatex rejecting input due to too high resolution. Set fairly randomly picked size when generating dot graphs based on example I came across, to avoid the following error from pdflatex when building documentation: [46 <./rdata_map_luts.pdf>] ! Dimension too large. I am not sure which size make sense, nor how to decide which value are best. This issue is a fix for a build problem reported in , which include a link to the build log of the failed build. --- docs/source/_images/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/_images/Makefile b/docs/source/_images/Makefile index 71f52c578..086821c60 100644 --- a/docs/source/_images/Makefile +++ b/docs/source/_images/Makefile @@ -33,7 +33,7 @@ TEX_FILES := $(shell find . -name *.tex) all_tex: $(TEX_FILES:.tex=.pdf) $(TEX_FILES:.tex=.svg) %.pdf: %.dot - $(FAKETIME) dot -Tpdf -o $@ $< + $(FAKETIME) dot -Tpdf -Gsize="9x15!" -o $@ $< %.pdf: %.tex cd $(@D) && $(FAKETIME) pdflatex $( Date: Tue, 5 May 2026 10:24:04 +1200 Subject: [PATCH 2/2] fixup dot pdf size limit Use US letter size as (a less arbitrary) max, since the final latexpdf size is the same. Drop the ! since smaller images are fine. Fix `x` -> `,` for `x,y` separator. --- docs/source/_images/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/_images/Makefile b/docs/source/_images/Makefile index 086821c60..dc75c97c9 100644 --- a/docs/source/_images/Makefile +++ b/docs/source/_images/Makefile @@ -32,8 +32,9 @@ FORCE: TEX_FILES := $(shell find . -name *.tex) all_tex: $(TEX_FILES:.tex=.pdf) $(TEX_FILES:.tex=.svg) +# limit output size to US letter (same as latexpdf output) to avoid oversize error %.pdf: %.dot - $(FAKETIME) dot -Tpdf -Gsize="9x15!" -o $@ $< + $(FAKETIME) dot -Tpdf -Gsize="8.5,11" -o $@ $< %.pdf: %.tex cd $(@D) && $(FAKETIME) pdflatex $(