Skip to content

Instantly share code, notes, and snippets.

@zr-tex8r
Created April 16, 2017 06:50
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zr-tex8r/25cbaa861994f84b7a8a874b8741be81 to your computer and use it in GitHub Desktop.
Save zr-tex8r/25cbaa861994f84b7a8a874b8741be81 to your computer and use it in GitHub Desktop.
LaTeX:LuaLaTeXだとかな混植が簡単にできて最高だという件
% LuaLaTeX文書,UTF-8
% jlreqクラス・縦組の例
\documentclass[lualatex,tate,paper=a6,twocolumn]{jlreq}
\usepackage{luatexja-fontspec}
\setmainjfont[
YokoFeatures={JFM=jlreq}, %jlreqのJFMを
TateFeatures={JFM=jlreqv}, %維持する
AltFont={% 代替フォント設定
{Range="3040-"30FF, Font=IPAexMincho},
{Range={`☃,`⛄}, Font=SourceHanSans}},
]{IPAexGothic}
\begin{document}
{\TeX}と☃は一切関係ありません。ご注意ください。
\end{document}
% LuaLaTeX文書, UTF-8
% ltjsarticleクラス・横組の例
\documentclass[a6paper]{ltjsarticle}
\usepackage{luatexja-fontspec}
\setmainjfont[
AltFont={% 代替フォント設定
{Range="3040-"30FF, Font=IPAexMincho},
{Range={`☃,`⛄}, Font=SourceHanSans}}
]{IPAexGothic}
\begin{document}
{\TeX}と☃は一切関係ありません。ご注意ください。
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment