Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Owner

zr-tex8r commented Apr 8, 2017

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