[問題] 如何在newenvironment裡面打入中文

作者: marcoii (晴空亂流)   2013-10-25 14:00:53
是這樣的,小弟想要自己設計一個environment,將題號由latex寫出。
\documentclass[paper=a4]{article}
\usepackage{CJK}
\newcounter{ProblemCnt}
\setcounter{ProblemCnt}{0}
\newenvironment{Problem} {
\stepcounter{ProblemCnt}
\begin{CJK}{UTF8}{bkai}
第 \arabic{ProblemCnt} 題
}{
\end{CJK}
}
\begin{document}
\begin{Problem}
測試
\end{Problem}
\end{document}
**************************
但跑出來的結果,是:
1 測試
請問要如何讓中文「第...題」可以出現呢??

Links booklink

Contact Us: admin [ a t ] ucptt.com