small update to pass R variable to Tex text