## 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}