3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows 8.1 で LuaTeX/LuaLaTeX を使う

Last updated at Posted at 2015-02-02

忘れそうなのでメモ.
menukeys.sty を使いたいので,pLaTex から LuaLaTeX に変更する.

アップデート

取り敢えず TeXLive をアップデートする.
tlmgr のアップデート
> tlmgr update --self --no-persistent-downloads

パッケージ のアップデート
> tlmgr update --all --no-persistent-downloads

.latexmkrc を変更

.latexmkrc
$latex          = 'platex -src-specials -shell-escape -interaction=nonstopmode -synctex=1 -kanji=utf8';
$pdflatex       = 'lualatex %O -synctex=1 %S';
$bibtex         = 'upbibtex %O %B';
$pdf_mode       = 1;
$pdf_previewer  = 'C:\Programs\SumatraPDF\SumatraPDF.exe -reuse-instance'; 

テスト

(2015/2/3 追記) 色の変更方法.
test.tex は,UTF-8 で.

test.tex
\documentclass[a4paper,10pt]{ltjsarticle}
\usepackage[yu-win]{luatexja-preset}
\usepackage[os=win]{menukeys}
\usepackage{lipsum}

\begin{document}
\section{test}

\copymenucolortheme{myColor}{gray}
\changemenucolor{myColor}{txt}{named}{myPageColor}

\changemenucolortheme{roundedmenus}{myColor}
\changemenucolortheme{roundedkeys}{myColor}
\changemenucolortheme{pathswithfolder}{myColor}

\renewmenumacro{\menu}[>]{roundedmenus}
\renewmenumacro{\directory}[/]{pathswithfolder}

\keys{\ctrl + \Space}
\directory{C: / Windows / System32}
\menu{File > New > \dots}

\lipsum[1-2]
\end{document}

> latexmk -pv test.tex

うーん,タイプセットに時間が掛かり過ぎるけど、しばらく使ってみます.

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?