Skip to content

Instantly share code, notes, and snippets.

@zr-tex8r
Created April 8, 2017 07:21
Show Gist options
  • Save zr-tex8r/75969dda8ecb209886e4034272fe8d35 to your computer and use it in GitHub Desktop.
Save zr-tex8r/75969dda8ecb209886e4034272fe8d35 to your computer and use it in GitHub Desktop.
LaTeX: pLaTeX+pxchfonで源のアレしてみる件
% upLaTeX文書, 文字コードはUTF-8
\documentclass[uplatex,a4paper]{jsarticle}
% 源ノアレはアレなので 'directunicode*' が必要
\usepackage[directunicode*,noalphabet]{pxchfon}[2017/04/08]% v0.9
\usepackage[english]{babel}
\usepackage[main=japanese]{pxbabel}
% TTC版の源ノアレを使う
\setminchofont [0]{SourceHanSerif-Regular.ttc}
\setkoreanminchofont [1]{SourceHanSerif-Regular.ttc}
\setschineseminchofont[2]{SourceHanSerif-Regular.ttc}
\settchineseminchofont[3]{SourceHanSerif-Regular.ttc}
\setgothicfont [0]{SourceHanSans-Medium.ttc}
\setkoreangothicfont [1]{SourceHanSans-Medium.ttc}
\setschinesegothicfont[2]{SourceHanSans-Medium.ttc}
\settchinesegothicfont[3]{SourceHanSans-Medium.ttc}
\begin{document}
☃源ノ\textsf{アレ☃}
\begin{itemize}
\item 私のジャパリバスは\textsf{フレンズ}でいっぱいです。
\item \foreignlanguage{korean}{%
내 자파리버스는 \textsf{프렌즈}로 가득 차 있어요.}
\item \foreignlanguage{schinese}{%
我的加帕里巴士装满了\textsf{朋友}。}
\item \foreignlanguage{tchinese}{%
我的加帕里巴士裝滿了\textsf{朋友}。}
\end{itemize}
\end{document}
@zr-tex8r
Copy link
Author

zr-tex8r commented Apr 8, 2017

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