Creating an expression for the distance between 2 lines multiplied by a constant

  1. Create a paragraph rule to which to assign the variable to.
    Make sure the Export as field is set as Fixed for the Y coordinate.
  2. Right click on Document and select Set Variable to add a variable to the defined paragraph rule.
    You are prompted with the Set Variable dialog.
  3. Fill in the Name and select the Type of the variable, as highlighted below. Under Value, make sure to select Expression from the drop-down menu list.
    The Set Variable dialog expends into an Advanced Builder dialog that allows you to create customized expressions.Set Variable
  4. To change the operand into an expression with 2 operands, click on Select Operand and select 2 operands from the Expressions list.
    The first operand is converted into an expression by itself.
  5. Click on Select Operand and select 2 operands from the Expressions list.
  6. For the first expression, select Next Line Y Position, the - operator and Current Line Y Position. For the second expression, select the * operator and for the last operand, go to Constants and type 2.
  7. Review the Summary section.
    Expression Builder
  8. Click ADD.