The way I understand it
The rake (determined by jib halyard) should be set so that the mainsheet blocks are touching when there is proper leach tension in the main. (Maybe a little more than proper leach tension so you have some range)
The jib lead should be attached so that you also get proper tension in the jib leach.