Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

Can you supply an MWE or some example text to experiment with? There is an almost-solution, possibly: Since bxjsbook class (this answer) already does a pretty good job with punctuation (because it is calling xeCJK), example with a random Wikipedia article just raw copy-pasted in, (relevant items marked in red) a potential solution could involve \...


5

What is going on here? Let's start by looking at what \section actually does: In article.cls, \section is defined by \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\...


1

The problem is that the .toc file is written after \end{CJK} and LaTeX no longer knows about Chinese characters. Just use the “free form” for CJK: \documentclass{article} \usepackage{CJKutf8} \begin{document} \CJK{UTF8}{gbsn} \tableofcontents \section{摘要} 摘要 \end{document}


Top 50 recent answers are included