cjk (4.8.2+git20090105-5) 08_add_newpage_to_examples.diff

Summary

 examples/Big5.tex      |    5 +++++
 examples/Big5vert.tex  |    5 +++++
 examples/CEF_test.tex  |    5 +++++
 examples/CJKfntef.tex  |    5 +++++
 examples/CJKmixed.tex  |    5 +++++
 examples/CJKspace.tex  |    5 +++++
 examples/CJKutf8.tex   |    5 +++++
 examples/GB.tex        |    5 +++++
 examples/JIS.tex       |    5 +++++
 examples/KS-hlatex.tex |    5 +++++
 examples/KS.tex        |    5 +++++
 examples/SJIS.tex      |    5 +++++
 examples/UTF8.tex      |    5 +++++
 examples/xCJK.tex      |    7 ++++++-
 14 files changed, 71 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

## 08_add_newpage_to_examples.diff by <danai@debian.org>
##
## Fix examples/*.tex: add \newpage in a CJK environment.  I add
## this because larger documents with \tableofcontents will
## sometimes fail when writing out the .toc file, even though
## this behaviour is well documented.  This will surely prevent
## many future errors with users.

Index: cjk-4.8.2+git20090105/examples/Big5.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/Big5.tex	2010-05-17 01:03:16.000000000 +0200
+++ cjk-4.8.2+git20090105/examples/Big5.tex	2010-05-17 01:03:16.000000000 +0200
@@ -41,6 +41,11 @@
 \textbf{¦³Ãö·sµ²ºcªº²Ó¸`¡A¥i°Ñ¦Ò¡u¦p¦ó¾\Ū¥»°Ýµª¶°¤Î¤F¸Ñ¨ä½s±Æµ²ºc¡v¸Ó
 ¶µ¤¤ªº»¡©ú¡C}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/Big5vert.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/Big5vert.tex	2010-05-17 01:03:13.903352943 +0200
+++ cjk-4.8.2+git20090105/examples/Big5vert.tex	2010-05-17 01:03:16.000000000 +0200
@@ -23,6 +23,11 @@
 \textbf{¦³Ãö·sµ²ºcªº²Ó¸`¡A¥i°Ñ¦Ò¡u¦p¦ó¾\Ū¥»°Ýµª¶°¤Î¤F¸Ñ¨ä½s±Æµ²ºc¡v¸Ó
 ¶µ¤¤ªº»¡©ú¡C}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/CEF_test.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/CEF_test.tex	2010-05-17 01:03:16.000000000 +0200
+++ cjk-4.8.2+git20090105/examples/CEF_test.tex	2010-05-17 01:03:16.000000000 +0200
@@ -40,6 +40,11 @@
 \verb|\CJKchar[CNS7]{"5A}{"5A}| \CJKchar[CNS7]{"5A}{"5A}
 \quad \verb|&C7-|\verb|5A5A;| &C7-5A5A;
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/CJKfntef.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/CJKfntef.tex	2010-05-17 01:03:13.919356386 +0200
+++ cjk-4.8.2+git20090105/examples/CJKfntef.tex	2010-05-17 01:03:16.000000000 +0200
@@ -50,6 +50,11 @@
 
 \CJKxout*{ºº×ּӵ㣬 \CJKunderdot{¿Éͬʱ¼ÓÏ»®Ïß¼ÓÏ»®£¬Ïß, ×Ô¶¯»»ÐÐ,}}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/CJKmixed.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/CJKmixed.tex	2010-05-17 01:03:16.000000000 +0200
+++ cjk-4.8.2+git20090105/examples/CJKmixed.tex	2010-05-17 01:03:16.000000000 +0200
@@ -73,6 +73,11 @@
     該項中的說明。}
 \end{TChinese}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/CJKspace.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/CJKspace.tex	2010-05-17 01:03:13.939352150 +0200
+++ cjk-4.8.2+git20090105/examples/CJKspace.tex	2010-05-17 01:03:16.000000000 +0200
@@ -29,6 +29,11 @@
   混排 \verb+anything+ 保持 \texttt{spaces} 空格 \LaTeX\ 间隔
   \mbox{boxes} 盒子 \hbox{hbox} 中文 123456 数字.
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/CJKutf8.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/CJKutf8.tex	2010-05-17 01:03:16.000000000 +0200
+++ cjk-4.8.2+git20090105/examples/CJKutf8.tex	2010-05-17 01:03:16.000000000 +0200
@@ -123,6 +123,11 @@
     этот FAQ и его структура' объяснены детали этой новой структуры.}
 \end{otherlanguage}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/GB.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/GB.tex	2010-05-17 01:03:13.959353781 +0200
+++ cjk-4.8.2+git20090105/examples/GB.tex	2010-05-17 01:03:16.000000000 +0200
@@ -20,6 +20,11 @@
 \textbf{ÓйØнṹµÄϸ½Ú£¬¿É²Î¿¼¡¸ÈçºÎÔĶÁ±¾Îʴ𼯼°Á˽âÆä±àÅŽṹ¡¹¸Ã
 ÏîÖеÄ˵Ã÷¡£}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/JIS.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/JIS.tex	2010-05-17 01:03:16.000000000 +0200
+++ cjk-4.8.2+git20090105/examples/JIS.tex	2010-05-17 01:03:16.000000000 +0200
@@ -40,6 +40,11 @@
 \CJKfamily{maru}
 \testpar
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/KS-hlatex.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/KS-hlatex.tex	2010-05-17 01:03:16.000000000 +0200
+++ cjk-4.8.2+git20090105/examples/KS-hlatex.tex	2010-05-17 01:03:16.000000000 +0200
@@ -176,6 +176,11 @@
 \testpar
 
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/KS.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/KS.tex	2010-05-17 01:03:13.995371844 +0200
+++ cjk-4.8.2+git20090105/examples/KS.tex	2010-05-17 01:03:16.000000000 +0200
@@ -20,6 +20,11 @@
 ȹ±âÀûÀ¸·Î º¯°æµÇ¾ú½À´Ï´Ù.  \textbf{»ó¼¼ÇÑ °ÍÀº ``ÀÌ FAQ À» ¾î¶»°Ô
 ÀÐÀ» °ÍÀΰ¡'' ¶ó´Â ´ë¸ñÀ» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/SJIS.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/SJIS.tex	2010-05-17 01:03:14.003353696 +0200
+++ cjk-4.8.2+git20090105/examples/SJIS.tex	2010-05-17 01:03:16.000000000 +0200
@@ -27,6 +27,11 @@
 ‚Ì“Ç‚Ý•û‚Æ‚»‚̍\‘¢v‚̍€–Ú‚ð\ruby{ŽQ}{‚³‚ñ}\ruby{Æ}{‚µ‚傤}‚µ‚ĉº‚³
 ‚¢B}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/UTF8.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/UTF8.tex	2010-05-17 01:03:16.000000000 +0200
+++ cjk-4.8.2+git20090105/examples/UTF8.tex	2010-05-17 01:15:10.858854935 +0200
@@ -37,6 +37,11 @@
 \CJKnospace
 \noindent こんにちは 世界
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK}
 
 \end{document}
Index: cjk-4.8.2+git20090105/examples/xCJK.tex
===================================================================
--- cjk-4.8.2+git20090105.orig/examples/xCJK.tex	2010-05-17 01:03:14.023353303 +0200
+++ cjk-4.8.2+git20090105/examples/xCJK.tex	2010-05-17 01:03:16.000000000 +0200
@@ -25,7 +25,7 @@
 % You can also specify a font for a certain CJK family.
 \setCJKfamilyfont{SimpChinese}[BoldFont={SimHei},
                                ItalicFont={FZKaiTi}]{SimSun}
-\setCJKfamilyfont{TChinese}{FZMingTiB}
+\setCJKfamilyfont{TChinese}{FZCMingTiB}
 \setCJKfamilyfont{Japanese}{MS Gothic}
 \setCJKfamilyfont{Korean}{Batang}
 
@@ -115,6 +115,11 @@
   변경되었습니다.}  \textbf{상세한 것은 “이 FAQ 을 어떻게 읽을
   것인가” 라는 대목을 참조하시기 바랍니다.}
 
+% We need to end the CJK environment with a \newpage; otherwise the
+% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
+% /usr/share/doc/latex-cjk-common/ for more information, under
+% `Possible errors'.
+\newpage
 \end{CJK*}
 
 \end{document}