add R profile
Fix some LaTeX configuration issues for XeLaTeX