[Therion] Automatic scaling of PDF output

Tarquin Wilton-Jones tarquin.wilton-jones at ntlworld.com
Fri May 24 10:59:51 CEST 2019


Hi,

I am sure this must have been asked before, but was not able to find
anything in the mailing list archives or wiki...

Our survey is going to be published in a magazine. The magazine has very
strict limits on the survey size; 28 cm x 18 cm max, with limits on line
thickness as well. Making the final PDF survey the right size is done
with the layout "scale" definition, but this means I need to very
carefully (painfully) recalculate it whenever an extension changes the
size of the survey.

Main question; Is there a way to make Therion automatically calculate
the correct scale to fit certain dimensions?

(I do understand that this might be impossible, since the output can
change based on the scale, so it would become an iterative process. I am
just hoping there might be some magic.)

<aside>

For those interested, I have used code metapost to set the line
thicknesses so that they work according to the minimum line thickness:

def minimumpen = 0.18pt enddef;
def PenA = pencircle scaled (minimumpen*1/0.35) enddef;
def PenB = pencircle scaled (minimumpen*0.7/0.35) enddef;
def PenC = pencircle scaled (minimumpen*0.5/0.35) enddef;
def PenD = pencircle scaled (minimumpen) enddef;
def PenX = pencircle scaled (minimumpen*1.2/0.35) enddef;

</aside>

Thanks for any assistance.

Tarquin



More information about the Therion mailing list