% % code from VietTUG code corner ( http://viettug.org/code/ ) % author: dduyhai % date: Mon, 03 Sep 2007 10:47:46 +0700 % description: % ví dụ về xetex, fid=3917 % view: http://viettug.org/code/code.99f6fee634.html % download: http://viettug.org/code/code.99f6fee634.txt % \documentclass[12pt]{article} \usepackage{fontspec} \newcommand{\fontArial}[1]{\fontspec{Arial}\fontsize{14pt}{16pt}\selectfont #1} \newcommand{\fontPalatino}[1]{\fontspec{Palatino Linotype}\fontsize{48pt}{50pt}\selectfont #1} \newcommand{\fontTimes}[1]{\fontspec{Times New Roman}\fontsize{10pt}{12pt}\selectfont #1} \newcommand{\fontVerdana}[1]{\fontspec{Verdana}\fontsize{16pt}{18pt}\selectfont #1} \begin{document} \begin{center} \fontTimes{Cộng hòa xã hội chủ nghĩa Việt Nam \\ Độc lập tự do hạnh phúc} \end{center} \fontPalatino{dduyhai là nickname của Đoàn Duy Hải!} \fontVerdana{Các bác VietTUG thử vọc XeTeX xem sao?} \fontArial{Mình mới xem qua thử thấy chú XeTeX này cũng thú vị ra phết.} \fontTimes\MakeUppercase{Thử viết hoa cái nào!} \end{document}