Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.