中文的习惯是每个段落首行空两格。但最近的xelatex似乎与indentfirst包配合不好,首行缩进的距离并不正好是两个汉字位。


有人说将indentfirst包的引用放在fontspec包的引用前可解决问题:即将\usepackage{indentfirst}放在\usepackage{fontspec}之前。本人试了一下,发现问题依然。


经过摸索,发现将在使用\usepackage{indentfirst}的位置用下列命令代替,则首行缩进正好对齐。

\makeatletter
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue
\makeatother
\setlength{\parindent}{2em}%中文缩进两个汉字位

 

posted on 2009-11-15 16:40  玛瑙河  阅读(3791)  评论(0)    收藏  举报