add ctex support for latex template
add ctex support for beamer template