utlis / llls_depp-thesis_template

The official thesis template files for the following courses in the University of Tokyo: Division of Lifelong Learning Infrastructure Management, Graduate School of Education/Division of Educational Practices and Policies, Faculty of Education
https://llls.p.u-tokyo.ac.jp/thesis-writing/
7 stars 1 forks source link

enable stable multilingual typesetting by XeTeX #8

Open shuntaroy opened 7 years ago

shuntaroy commented 7 years ago

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 commented 7 years ago

cf) TeXLive2016~で使える全エンジン共用プリアンブル

shuntaroy commented 7 years ago

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 commented 7 years ago

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

shuntaroy commented 7 years ago

this solution seems the most easiest.

http://qiita.com/zr_tex8r/items/5c14042078b20edbfb07#%E4%B8%AD%E5%9B%BD%E8%AA%9E%E9%9F%93%E5%9B%BD%E8%AA%9E%E3%81%AE%E6%89%B1%E3%81%84