Hi LaTeX CJK listers,
Thanks for reminding me about providing an example. My fault.
The following is an example.
---------------- Begin of example LaTex code (UTF8)
\documentclass[12pt]{article}
\usepackage{CJK}
\usepackage[overlap, CJK]{ruby}
\usepackage{pinyin}
\renewcommand{\baselinestretch}{1.5} % ~ double space
\renewcommand{\CJKglue}{\hskip 6pt plus 0.08\baselineskip}
\begin{document}
\begin{CJK}{UTF8}{bsmi}
\ruby{以}{\yi3}%
\ruby{前}{\qian2}%
\ruby{在}{\zai4}%
\ruby{我}{\wo3}%
\ruby{六}{\liu4}%
\ruby{歲}{\sui4}%
\ruby{的}{\de5}%
\ruby{時}{\shi2}%
\ruby{候}{\hou4}%
,%
\ruby{我}{\wo3}%
\ruby{在}{\zai4}%
\ruby{一}{\yi4}%
\ruby{本}{\ben3}%
\ruby{書}{\shu1}%
\ruby{上}{\shang4}%
\ruby{看}{\kan4}%
\ruby{到}{\dao4}%
\ruby{一}{\yi4}%
\ruby{張}{\zhang1}%
\ruby{非}{\fei1}%
\ruby{常}{\chang2}%
\ruby{駭}{\hai4}%
\ruby{人}{\ren2}%
\ruby{的}{\de5}%
\ruby{圖}{\tu2}%
。%
\end{CJK}
\end{document}
---------------- End of example LaTex code
The problem is that the last few characters (駭人的圖。) actually
intrude the right margin region. Even wrose, the character and
period (圖。) are outside the page boundary (A4 paper).
This is not a normal line-wrapping behavior for CJK macro. It seems
that it is due to adjusting CJKglue. I would like to resolve the
line wrapping problem while having a wide inter CJK character space.
Any advice? Thanks in advance.
-----
Nien-Po Chen
At Aug 23, 2007 3:05 AM, Werner LEMBERG wrote:
>
> Please give a real example so that we can see the actual problem.
>
> Werner
At Aug 23, 2007 12:38 AM, Nien-Po Chen wrote:
> Hi LaTeX CJK listers,
>
> I would like to have Chinese characters with pinyin by means of ruby.
>
> \usepackage{CJK}
> \usepackage[overlap, CJK]{ruby}
> \usepackage{pinyin}
> :
> :
> \ruby{以}{\yi3}
>
> In order to accomodate some longer pinyins, I use
>
> \renewcommand{\CJKglue}{\hskip 6pt plus 0.08\baselineskip}
>
> to get wider inter CJK character space. It works fine, except that a
> long Chinese sentence without any space or alphanumerical characters
> won't wrap around.
>
> Is there any proper way to resolve the line wrapping problem, while
> having wider inter CJK char space?
>
> I am using CJK 4.7.0 in TeXLive 2007 on Mac OS X.
>
> Thanks in advance.
> ---------
> Nien-Po Chen
_______________________________________________
Cjk maillist - [email protected]
https://lists.ffii.org/mailman/listinfo/cjk