LaTeXからkindle本を作りたいです。
適したLaTeXのフォーマットを教えてください。
目次があったり、目次とリンクしたりと、適したものがある気がします。
LaTeX→kindle本 は下記を試しにやってみたのですが、私には難しいです。
iMac:~ *******$ printenv HOME
/Users/*******
iMac:~ *********$ kpsewhich --expand-path='$TEXMF'
/Users/*********/Library/texmf:/usr/local/texlive/texmf-local:/usr/local/texlive/2019/texmf-config:/usr/local/texlive/2019/texmf-var:/usr/local/texlive/2019/texmf-dist
iMac:~ **********$ kpsewhich --expand-path='$TEXMFHOME'
/Users/**********/Library/texmf
iMac:~ **********$ kpsewhich --progname=platex jarticle.cls
/usr/local/texlive/2019/texmf-dist/tex/platex/base/jarticle.cls
iMac:~ ***********$ sudo mktexlsr
Password:
mktexlsr: Updating /usr/local/texlive/2019/texmf-config/ls-R...
mktexlsr: Updating /usr/local/texlive/2019/texmf-dist/ls-R...
mktexlsr: Updating /usr/local/texlive/2019/texmf-var/ls-R...
mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
mktexlsr: Done.
これによりmyTEXMF=/Users/*******/Library/texmf mySUBDIR=tex/platex とわかりemath.styの入れる場所はmyTEXMF/mySUBDIR/misc/emath にインストールしています。
次のファイル(hello.tex)をTeXWorksでpLaTeX(ptex2pdf)でタイプセットすると下のようなエラーメッセージが出ます。
(hello.tex)
\documentclass[a4j]{jarticle}
\usepackage{emath}
\input{kihon}
\begin{document}
hello.\WAKU{10}{10}
\end{document}
(エラーメッセージ log)
(/Applications/TeXLive/Library/texlive/2017/texmf-dist/tex/platex/base/jarticle
.cls
Document Class: jarticle 2017/09/19 v1.7g Standard pLaTeX class
(/Applications/TeXLive/Library/texlive/2017/texmf-dist/tex/platex/base/jsize10.
clo))
! LaTeX Error: File `emath.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
どこが問題なのか教えてもらえれば嬉しいです。一つ思うのはターミナルでtexliveは2019ですがtexworksでは2017になってます。