r and tex