LaTeX中英文混排

英文中换行的时候默认会加多一个空格, 而中文排版没有这个习惯, 如果使用

\begin{CJK}{GBK}{song}

内容 English 内容

\end{CJK}

排版中文时候每行都会有个多余的空格. 为了避免这个问题建议使用

\begin{CJK*}{GBK}{song}

\CJKtilde(LaTeX 学习博客 (http://latex.yo2.cn) , 白色印记.)

内容~English~内容

\end{CJK*}

这时CJK* 环境默认会吃掉后面的未受保护的空格,  如果汉字后面需要空格, 这时就要用上符号~,  \CJKtilde重新定义了波浪符~的意义, 使得这个符号不再代表一个不可断行的空格,  而是一个可断行的弹性距离,  加在中文和英文之间调整它们的距离(一般是一个 CJK 字符的 1/4 大小的空格).  也就是说要得到美观的中英文混排,  须使用大量的~,  这可能减慢输入的速度, 但养成习惯就好.

另外可以用 \standardtilde 可以让 ~ 恢复原来的定义,  不过一般而言没有必要这么做的.  你可以用 \nbs(non-breakabel space,LaTex 命令 \nonbreakspace 的缩写)来生成一个不可打断的空格.

还可以使用下面的命令   进行CJK*于CJK环境的切换:

\CJKspace      CJK*---->CJK
\CJKnospace    CJK----->CJK*


Rand Posts:

5 条评论 so far »

  1. Number said,

    Wrote on 七月 19, 2009 @ 2:59 上午

    1.remove page headers of table of contents

    I'm using the fancyhdr package and titlesec, titletoc package, and the conents has 4 pages. But I can't remove the header on the 2d ,3d, 4th page of the contents.
    Also I want that footer of the contents contain page number centered and the code affect pages of the contents only(the header on the rest pages of the book must exist).

    \documentclass[openany]{book}
    \usepackage{fancyhdr}
    \pagestyle{fancy}
    \fancyhf{}
    \fancyhead[ER]{\leftmark}
    \fancyhead[OL]{\rightmark}
    \fancyhead[EL,OR]{\thepage}
    \renewcommand{\headrulewidth}{0.4pt}

    or

    \documentclass[openany]{book}
    \usepackage[pagestyles]{titlesec}
    \usepackage{titletoc}
    \sethead[][][][]{{}{}{}}
    .............

    [ 引用 ]
  2. Number said,

    Wrote on 七月 19, 2009 @ 3:04 上午

    问题我解决不了, 能否看看?
    谢谢!

    [ 引用 ]
  3. Number said,

    Wrote on 七月 19, 2009 @ 3:04 上午

    there are no page number on the first page of each part , but footer of the first page of each chaper contain page number centered.

    what's the code to get the output?

    Thanks a lot!

    [ 引用 ]
  4. eagle said,

    Wrote on 七月 22, 2009 @ 2:57 下午

    你好,中英文混排,有个问题,英文有时会超出边界,不知有没碰到或解决这个问题,我用的是latexpdf ,网上有见到其它解决办法,但我系统装的是latex,不想改模板及软件

    [ 引用 ]
  5. lijian605 said,

    Wrote on 八月 2, 2009 @ 4:36 下午

    由于这里是不定期维护

    建议去 ctex 论坛(http://bbs.ctex.org/) 的 TeX/LaTeX 求助区去问

    [ 引用 ]

Comment RSS · TrackBack URI

留下评论

名称: (Required)

电子邮件: (Required)

Website:

Comment: