Take the 2-minute tour ×
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 using xelatex and want to use the xeCJK package, but without indenting the first paragraph of a section. I tried the setup directive below, which should do the trick. But it does not. The manual is in Chinese ...

\documentclass{article}


\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\xeCJKsetup{indentfirst=false}


\begin{document}

\section{Section 1}

I want to have a paragrpah without indentation.

This one should be indented.

\subsection{Section 2}

Same here.

This one should be indented.


\end{document} 
share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

In the log file you find this warning:

*************************************************
* xeCJK warning: "option-invalid"
* 
* The `indentfirst' option only can be set in the optional argument to the
* \usepackage command when xeCJK is being loaded.
* 
* Please do not set it via the \xeCJKsetup command.
*************************************************

which is self-explanatory: do

\usepackage[indentfirst=false]{xeCJK}

Be warned that languages loaded with Polyglossia may revert the setting (Italian, for instance).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.