Create a gist now

Instantly share code, notes, and snippets.

@htlsne /genno.tex
Last active May 5, 2017

What would you like to do?
源ノ明朝と源ノ角ゴシックをupLaTeXで使ってみるテスト(pxchfon+otfパッケージ使用)
% エラーが出る場合はフォントをTeX側から見える位置に置くか,
% export OSFONTDIR=/usr/shar/fonts とする.
% http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=1904
\documentclass[a4paper, ja=standard, uplatex, dvipdfmx]{bxjsarticle}
\title{title}
\author{author}
\usepackage[deluxe]{otf}
\usepackage[directunicode*, noalphabet]{pxchfon}[2017/04/08]
\setminchofont{SourceHanSerifJP-Regular.otf}
\setboldminchofont{SourceHanSerifJP-Bold.otf}
\setgothicfont{SourceHanSansJP-Regular.otf}
\setboldgothicfont{SourceHanSansJP-Bold.otf}
\begin{document}
\maketitle
\section{セクション}
明朝\textbf{ボールド}\textgt{ゴシック}\textgt{\textbf{ゴシックボールド}}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment