RPIC

fit

rpic extension, inspired by Pikchr. fit sizes a box, ellipse or circle to the text already attached to it — no more guessing wid.

.PS
box "short" fit
move
box "a considerably longer label" fit
move
ellipse "two" "lines" fit
.PE
short a considerably longer label two lines

Rules

.PS
texlabels = 1
box "$e^{j\pi} + 1 = 0$" fit
.PE

Classic input without fit keeps its dpic-compatible dimensions.