Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
share|improve this question
Personaly, I think the question is not very clear, and irrelative to xeCJK package. The use of xeCJK is fine. microtype is not compatible with XeLaTeX unless you use a racent develop version (v2.5+). lmodern is useless in XeLaTeX, fontspec package loads Latin Modern fonts by default, and what's more Linux Libertine O is use here. – Leo Liu Dec 13 '12 at 1:22

closed as too localized by Leo Liu, Qrrbrbirlbel, Thorsten, Martin Schröder, Andrew Swann Dec 13 '12 at 7:50

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.