Hi list, I'm trying to scale a text to the textwidth and textheight by keeping the aspect ratio, using different papersizes. When the dimensions get too big I get an "Arithmetic overflow". (I'm trying to do something similar to resizebox in LaTeX: http://tex.stackexchange.com/questions/55394/perfectly-scale-line-paragraph-...) Minimal example: \setuppapersize[A4][A4] %% [A1][A1] \showframe \starttext \scale[factor=max,width=\textwidth,height=\textheight]{\framed[frame=on]{!}} \stoptext Error message: ! Arithmetic overflow. <recently read> \c_grph_scale_used_y_scale \grph_scale_convert_large_scale ...scratchdimen #3 \relax \fi \scratchdimen -... \grph_scale_calculations_yes ...grph_scale_temp_y \xdef \finalscaleboxwidth ... \grph_scale_calculate ...h_scale_calculations_yes \fi \fi \fi \syst_boxes_with_next_box ...grph_scale_calculate \ifconditional \c_grph_sca... l.6 ...h,height=\textheight]{\framed[frame=on]{!}} Adam