[texhax] A question about using the package "ctex"

Lim Lian Tze liantze at gmail.com
Sat Apr 23 08:33:48 CEST 2011


Hello Wu,


> I use xelatex to compile the input .tex file below, but the section isn't
> showed.
>
> % c.tex file
> \documentclass{ctexart}
> \begin{document}
> \CTEXsetup{section}
> simple is beauty.
> \end{document}
>


\CTEXsetup only sets up the formatting of the sectioning headers (and you
haven't specified any formattings, BTW) of an all-Chinese document, not
actually outputting a header. You need the \section command for that. Try
instead

\documentclass{ctexart}

\begin{document}
% Uncomment following line if you want your section headers to read 第一节
%\CTEXsetup[name={第,节}, number=\chinese{section}]{section}

\section{简介}
simple is beauty.
\end{document}

 See ctex's manual for more details of the \CTEXsetup command.


Best regards,

- LIM Lian Tze -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110423/1e22f80b/attachment.html>


More information about the texhax mailing list