Last active
September 3, 2017 09:14
-
-
Save y-yu/b482f169c524cc3d58fd92467e1db693 to your computer and use it in GitHub Desktop.
mwe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 次のコマンドを実行すると、エラーが発生する | |
% $ 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