Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable stable multilingual typesetting by XeTeX #8

Open
shuntaroy opened this issue Feb 17, 2017 · 4 comments
Open

enable stable multilingual typesetting by XeTeX #8

shuntaroy opened this issue Feb 17, 2017 · 4 comments

Comments

@shuntaroy
Copy link
Contributor

shuntaroy commented Feb 17, 2017

At the moment, XeTeX seems to be more stable and reliable for multilingual typesetting.
(When the version of LuaTeX bumps 1.0, this situation would change...)

here is a sample preamble code of CJK simultaneous typesetting (not tested yet)

\usepackage{zxjatype}
\usepackage[ipaex]{zxjafont}%日本語フォントを設定(メインとして)
\setmainfont{Gentium Plus}% 欧文フォントを設定
\usepackage{polyglossia}
\setotherlanguages{korean}%局所的韓国語環境
\newfontfamily\koreanfont[Script=Hangul]{UnBatang}%韓国語フォントを設定

\setjafamilyfont{chinesefam}{AR PL SungtiL GB} % 中国語フォント
% \chinese 命令: 中国語用の設定に切り替える。(局所的に使うべき)
\newcommand*{\chinese}{%
  \CJKfamily{chinesefam}%
  \punctstyle{fullwidth}%
  \zxuseoriginalparameters}
% chinesepar 環境: 中国語用の段落の設定
% \chinese 設定に段落下げ量の変更(2zw)を含める
\newenvironment{chinesepar}%
  {\par \chinese \setlength{\parindent}{2\jsZw}}{\par}
%
@shuntaroy
Copy link
Contributor Author

shuntaroy commented May 13, 2017

@shuntaroy
Copy link
Contributor Author

Use Japanese Chinese and Korean simultaneously in uplatex
https://texwiki.texjp.org/?pTeX%E3%81%A8%E5%A4%9A%E8%A8%80%E8%AA%9E%E5%87%A6%E7%90%86#cjkinqd

@shuntaroy
Copy link
Contributor Author

The same with source han serif/sans
https://gist.github.com/zr-tex8r/75969dda8ecb209886e4034272fe8d35

@shuntaroy
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant