Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article} % Document type. With XeLaTeX, no more need for [] parameters.
- \usepackage[french]{babel} % Define language such as French, Spanish, Chinese, etc. Here French is set to showh another language that English :-)
- \usepackage{hyperref} % For hypertext links
- \usepackage{fontspec} % The dark side of the force: XeLaTeX allows fine font tweaks.
- \usepackage[stable]{footmisc} % The so-called footnote misc package.
- \setmainfont[
- Ligatures={Common, Rare, TeX},
- Contextuals=Swash,
- Style={Historic, Swash, Alternate},
- Scale=1.2]{Linux Libertine}
- \usepackage{xeCJK} % To handle Chinese caracters. I know to be possible to set peculiar font just for some unicode characters sets, but methinks xeCJK to be easy to use.
- \setCJKmainfont{AR PL UMing TW} % Set font for CJK caracter.
- %\setCJKmainfont{TW-MOE-Std-Kai} % Set font for CJK caracter. This font is so very beautiful! but just works on traditional characters.
- \title{Simple Chinese typing with \TeX{}}
- \begin{document}
- Tests (Chinese more French):
- \\驛 un caractère chinois
- \\驿 sa version simplifiée (n'apparaît pas avec toutes les fontes)
- \\文 un caractère pour voir la beauté des fontes
- \\ fi fl ffl tt bretzel : exemple de petites ligatures ☻
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement