Skip to content

Instantly share code, notes, and snippets.

@y-yu
Last active September 3, 2017 09:14
Show Gist options
  • Save y-yu/b482f169c524cc3d58fd92467e1db693 to your computer and use it in GitHub Desktop.
Save y-yu/b482f169c524cc3d58fd92467e1db693 to your computer and use it in GitHub Desktop.
mwe
% 次のコマンドを実行すると、エラーが発生する
% $ USE_HIRAGINO=true lualatex mwe
\documentclass[a5paper,lualatex,9pt,openany,ja=standard]{bxjsbook}
\usepackage{luacode}
\usepackage{fontspec}
\begin{luacode*}
USE_HIRAGINO = os.getenv"USE_HIRAGINO"
if USE_HIRAGINO == "true" then
tex.sprint("\\AtBeginDocument{\\usepackage[hiragino-pron, deluxe, expert]{luatexja-preset}}")
else
tex.sprint("\\AtBeginDocument{\\usepackage[ipaex, deluxe, expert]{luatexja-preset}}")
end
\end{luacode*}
\begin{document}
this is a pen
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment