Writing the text in the middle beside the line

 

Hi,

if I write the text as Object below the line, I can use the same coordinates for text and line and it works in every TF.

But how can I write the difference, when I want to write the text in the middle beside the line? How can I program my offset, so that the difference is in every TF and for every underlying OK?

Reason: