fix the r ranges
final version of .tex