adds tex compile rules