I am quite new to LaTeX and it necessitated a certain amount of time to figure out how I can write my Ph.D. in Chinese history with LaTeX. It now works quite well, but I would appreciate if someone could have a look at my preamble and tell me if I am doing anything wrong. I work on Windows 7 with MiKTeX 2.9 fully installed and Texmaker, compiling in xeLaTeX so as to be able to switch between French and Chinese without having to specify languages (as I include a lot of Chinese characters in my text, my basic requirement is not to have to specify languages and xeCJK is perfect for that). A more specific question concerns microtype: it seems that microtype is not (fully?) compatible with xeLaTeX. Is there any equivalent way with XeLaTeX to get less under/overfull \hbox in long documents? It also seems that there are incompatibilities between microtype and lmodern; is that true.
Thank you for your answers to a French Newby. Any advice to improve this preamble is welcome.
\documentclass[12pt,oneside]{book}
\usepackage{amssymb,amsmath,mathtools}
\usepackage[footnotesize,labelfont=bf,margin=2cm]{caption}
\usepackage[french]{babel}
\usepackage[a4paper,left=30mm,right=25mm,top=25mm,bottom=30mm]{geometry}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{makeidx}
\makeindex
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
\usepackage{xeCJK}
\usepackage{xunicode}
\setmainfont{Linux Libertine O}
\setCJKmainfont{PMingLiU}
\setCJKmonofont{MingLiU}
\expandafter\def\expandafter\quote\expandafter{\quote\small}
\usepackage{setspace}
\onehalfspacing
xeCJKpackage. The use ofxeCJKis fine.microtypeis not compatible with XeLaTeX unless you use a racent develop version (v2.5+).lmodernis useless in XeLaTeX,fontspecpackage loads Latin Modern fonts by default, and what's moreLinux Libertine Ois use here. – Leo Liu Dec 13 '12 at 1:22