Skip to content

Instantly share code, notes, and snippets.

@applejxd
Last active February 7, 2020 06:28
Show Gist options
  • Save applejxd/c9b96a3ce0e17b79fa91954f90dabf3e to your computer and use it in GitHub Desktop.
Save applejxd/c9b96a3ce0e17b79fa91954f90dabf3e to your computer and use it in GitHub Desktop.
XeLaTeX で日本語文書組版
% 古いコマンドとパッケージで警告
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[
xelatex, % Fast TeX typesetting engine "XeLaTeX"
ja=standard, % zxjatype & zxjafont
%jafont=noto, % for Ubuntu
%jafont=hiragino-pron, % for OS X
]{bxjsarticle}
%%%%%%%%%%%%%%
% usepackage %
%%%%%%%%%%%%%%
% [xetex] の指定が必要な場合がある
\usepackage{graphicx}
\usepackage{hyperref}
% AMS styles
% cf. http://bit.ly/2TIdOmd
\usepackage{
amsmath, % 環境
amssymb, % 記号
amsfonts % 特殊文字
}
% amsmath 以外の環境で警告
\usepackage[all, warning]{onlyamsmath}
\usepackage{physics, siunitx}
\usepackage{comment}
\usepackage{url}
%%%%%%%%%%%%
% Contents %
%%%%%%%%%%%%
% author and affiliation
\usepackage{authblk}
\title{タイトル}
\author{執筆者}
\begin{document}
% \maketitle
% \appendix
% \section{付録}
\end{document}
@applejxd
Copy link
Author

XeTeX v.s. LuaTeX (zxjatype v.s. LuaTeX-ja) としてみると XeTeX はタイプセットが早い(cf. http://bit.ly/30G9Pbf)という利点がある。
一方で LuaTeX は LuaTeX-ja のリリースが活発なので将来性を考えるとこっち(?)

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