（メモ）reStructuredTextをLaTeX経由でPDFに変換する

# 背景

- reSTで書いたドキュメントをPDFで出力したい
    - 日本語にも対応させたい


# 動作環境

TeX Live and Sphinx on Amazon Linuxでやってみます

## Tex Liveのインストール

インストールにはかなり時間がかかります。（30分くらい？）

```bash:コマンド
wget http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
tar xvf install-tl-unx.tar.gz
cd install-tl-*
sudo ./install-tl --repository http://mirror.ctan.org/systems/texlive/tlnet/
sudo /usr/local/texlive/2016/bin/*/tlmgr path add
cd ~
```

パスを通すときによく分からないエラーがでますが、パスは通せていました。

```text:結果
tlmgr: action path returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.
```

## sphinxのインストール

```bash:コマンド
sudo pip install sphinx
```

## ドキュメントの作成

ドキュメントを管理するディレクトリや言語、ソースとビルド先のディレクトリを分けるか、などを指定（日本語を指定することも可能）

```bash:コマンド
sphinx-quickstart
```

## HTMLを生成

ドキュメントのルートに移動

```bash:コマンド
cd (directory name)
```

HTMLを生成

```bash:コマンド
make html
```

ここでなぜかエラーが発生（2016年12月17日時点）

```text:結果
Running Sphinx v1.5.1
making output directory...

Extension error:
Could not import extension sphinx.builders.linkcheck (exception: No module named packages.urllib3.exceptions)
make: *** [html] Error 1
```

アップデートしてみたところ、依存するいくつかのパッケージが更新されました。

```bash:コマンド
sudo pip install sphinx -U
```

```text:結果
You are using pip version 6.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already up-to-date: sphinx in /usr/local/lib/python2.7/site-packages
Requirement already up-to-date: babel!=2.0,>=1.3 in /usr/local/lib/python2.7/site-packages (from sphinx)
Collecting requests (from sphinx)
  Downloading requests-2.12.4-py2.py3-none-any.whl (576kB)
    100% |????????????????????????????????| 577kB 795kB/s
Collecting six>=1.5 (from sphinx)
  Downloading six-1.10.0-py2.py3-none-any.whl
Requirement already up-to-date: snowballstemmer>=1.1 in /usr/local/lib/python2.7/site-packages (from sphinx)
Requirement already up-to-date: Pygments>=2.0 in /usr/local/lib/python2.7/site-packages (from sphinx)
Collecting docutils>=0.11 (from sphinx)
  Downloading docutils-0.13.1-py2-none-any.whl (537kB)
    100% |????????????????????????????????| 540kB 877kB/s
Collecting Jinja2>=2.3 (from sphinx)
  Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
    100% |????????????????????????????????| 266kB 2.6MB/s
Requirement already up-to-date: imagesize in /usr/local/lib/python2.7/site-packages (from sphinx)
Requirement already up-to-date: alabaster<0.8,>=0.7 in /usr/local/lib/python2.7/site-packages (from sphinx)
Requirement already up-to-date: pytz>=0a in /usr/local/lib/python2.7/site-packages (from babel!=2.0,>=1.3->sphinx)
Collecting MarkupSafe (from Jinja2>=2.3->sphinx)
  Downloading MarkupSafe-0.23.tar.gz
Installing collected packages: requests, six, docutils, MarkupSafe, Jinja2
  Found existing installation: requests 1.2.3
    Uninstalling requests-1.2.3:
      Successfully uninstalled requests-1.2.3
  Found existing installation: six 1.8.0
    Uninstalling six-1.8.0:
      Successfully uninstalled six-1.8.0
  Found existing installation: docutils 0.11
    DEPRECATION: Uninstalling a distutils installed project (docutils) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling docutils-0.11:
      Successfully uninstalled docutils-0.11
  Found existing installation: MarkupSafe 0.11
    Uninstalling MarkupSafe-0.11:
      Successfully uninstalled MarkupSafe-0.11
  Running setup.py install for MarkupSafe
  Found existing installation: Jinja2 2.7.2
    Uninstalling Jinja2-2.7.2:
      Successfully uninstalled Jinja2-2.7.2
Successfully installed Jinja2-2.8 MarkupSafe-0.23 docutils-0.13.1 requests-2.12.4 six-1.10.0
```

もう一度HTMLを生成したところ、今度は成功

```bash:コマンド
make html
```

```text:結果
Running Sphinx v1.5.1
loading translations [ja]... done
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: 1 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index
generating indices... genindex
writing additional pages... search
copying static files... done
copying extra files... done
dumping search index in Japanese (code: ja) ... done
dumping object inventory... done
build succeeded.

Build finished. The HTML pages are in _build/html.
```


## PDFを生成

設定ファイルに文書クラスの設定を追加

```py:conf.py
latex_docclass = {'manual': 'jsbook'}
```

最終目的のPDF生成を実行

```bash:コマンド
make latexpdfja
```

警告が多数出ているが、細かいことは今回は無視（あとでちゃんと調べたい。特にフォントまわり。）

```text:結果
Running Sphinx v1.5.1
loading translations [ja]... done
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [latex]: all documents
updating environment: 1 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
processing test.tex... index
resolving references...
writing... done
copying TeX support files...
done
build succeeded.
make[1]: Entering directory `/home/ec2-user/test/_build/latex'
for f in *.pdf *.png *.gif *.jpg *.jpeg; do extractbb $f; done

extractbb:warning: Can't find file (*.png), or it is forbidden to read ...skipping


extractbb:warning: Can't find file (*.gif), or it is forbidden to read ...skipping


extractbb:warning: Can't find file (*.jpg), or it is forbidden to read ...skipping


extractbb:warning: Can't find file (*.jpeg), or it is forbidden to read ...skipping

for f in *.tex; do platex -kanji=utf8  $f; done
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2016/11/29> (based on LaTeX2e <2016/03/31> patch level 3)
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2016/10/12 v1.5 Document class (Sphinx manual)
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jsbook.cls
Document Class: jsbook 2016/12/13 okumura, texjporg
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jslogo.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: pdftex not detected - exiting.

) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/longtable.sty)
(./sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/dvipdfmx.def)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/makeidx.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/framed/framed.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz))
(/usr/local/texlive/2016/texmf-dist/tex/latex/threeparttable/threeparttable.sty
) (./footnotehyper-sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/mdwtools/footnote.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/parskip/parskip.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/alltt.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/upquote/upquote.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/atbegshi.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/capt-of/capt-of.sty)
(./needspace.sty)
** (sphinx) defining (legacy) text style macros without \sphinx prefix
** if clashes with packages, set latex_keep_old_macro_names=False in conf.py
(./sphinxhighlight.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/multirow/multirow.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/eqparbox/eqparbox.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/environ/environ.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/trimspaces/trimspaces.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hdvipdfm.

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hdvipdfm.def
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/hypcap.sty)
Writing index file test.idx
(./test.aux) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . . . ) (/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1ptm.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./test.out) (./test.out)
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1phv.fd)

LaTeX Font Warning: Font shape `JT1/gt/bx/it' undefined
(Font)              using `JT1/gt/bx/n' instead on input line 52.


LaTeX Font Warning: Font shape `JY1/gt/bx/it' undefined
(Font)              using `JY1/gt/bx/n' instead on input line 52.

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] [2]
(./test.toc) [1] [2] [1] [2]
第1章
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/ts1ptm.fd)
No file test.ind.
[3] (./test.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )
Output written on test.dvi (7 pages, 3592 bytes).
Transcript written on test.log.
for f in *.tex; do platex -kanji=utf8  $f; done
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2016/11/29> (based on LaTeX2e <2016/03/31> patch level 3)
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2016/10/12 v1.5 Document class (Sphinx manual)
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jsbook.cls
Document Class: jsbook 2016/12/13 okumura, texjporg
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jslogo.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: pdftex not detected - exiting.

) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/longtable.sty)
(./sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/dvipdfmx.def)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/makeidx.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/framed/framed.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz))
(/usr/local/texlive/2016/texmf-dist/tex/latex/threeparttable/threeparttable.sty
) (./footnotehyper-sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/mdwtools/footnote.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/parskip/parskip.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/alltt.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/upquote/upquote.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/atbegshi.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/capt-of/capt-of.sty)
(./needspace.sty)
** (sphinx) defining (legacy) text style macros without \sphinx prefix
** if clashes with packages, set latex_keep_old_macro_names=False in conf.py
(./sphinxhighlight.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/multirow/multirow.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/eqparbox/eqparbox.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/environ/environ.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/trimspaces/trimspaces.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hdvipdfm.

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hdvipdfm.def
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/hypcap.sty)
Writing index file test.idx
(./test.aux) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . . . ) (/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1ptm.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./test.out) (./test.out)
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1phv.fd)

LaTeX Font Warning: Font shape `JT1/gt/bx/it' undefined
(Font)              using `JT1/gt/bx/n' instead on input line 52.


LaTeX Font Warning: Font shape `JY1/gt/bx/it' undefined
(Font)              using `JY1/gt/bx/n' instead on input line 52.

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] [2]
(./test.toc) [1] [2] [1] [2]
第1章
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/ts1ptm.fd)
No file test.ind.
[3] (./test.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )
Output written on test.dvi (7 pages, 3592 bytes).
Transcript written on test.log.
for f in *.tex; do platex -kanji=utf8  $f; done
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2016/11/29> (based on LaTeX2e <2016/03/31> patch level 3)
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2016/10/12 v1.5 Document class (Sphinx manual)
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jsbook.cls
Document Class: jsbook 2016/12/13 okumura, texjporg
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jslogo.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: pdftex not detected - exiting.

) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/longtable.sty)
(./sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/dvipdfmx.def)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/makeidx.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/framed/framed.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz))
(/usr/local/texlive/2016/texmf-dist/tex/latex/threeparttable/threeparttable.sty
) (./footnotehyper-sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/mdwtools/footnote.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/parskip/parskip.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/alltt.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/upquote/upquote.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/atbegshi.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/capt-of/capt-of.sty)
(./needspace.sty)
** (sphinx) defining (legacy) text style macros without \sphinx prefix
** if clashes with packages, set latex_keep_old_macro_names=False in conf.py
(./sphinxhighlight.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/multirow/multirow.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/eqparbox/eqparbox.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/environ/environ.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/trimspaces/trimspaces.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hdvipdfm.

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hdvipdfm.def
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/hypcap.sty)
Writing index file test.idx
(./test.aux) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . . . ) (/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1ptm.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./test.out) (./test.out)
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1phv.fd)

LaTeX Font Warning: Font shape `JT1/gt/bx/it' undefined
(Font)              using `JT1/gt/bx/n' instead on input line 52.


LaTeX Font Warning: Font shape `JY1/gt/bx/it' undefined
(Font)              using `JY1/gt/bx/n' instead on input line 52.

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] [2]
(./test.toc) [1] [2] [1] [2]
第1章
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/ts1ptm.fd)
No file test.ind.
[3] (./test.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )
Output written on test.dvi (7 pages, 3592 bytes).
Transcript written on test.log.
for f in *.idx; do mendex -U -f -d "`basename $f .idx`.dic" -s python.ist $f; done
This is mendex version 2.6f [14-Aug-2009] (utf8.uptex) (TeX Live 2016).
Warning: Couldn't find dictionary file test.dic.
Scanning input file test.idx....done (0 entries accepted, 0 rejected).
0 entries accepted, 0 rejected.
Nothing written in output file.
make[1]: [all-pdf-ja] Error 255 (ignored)
for f in *.tex; do platex -kanji=utf8  $f; done
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2016/11/29> (based on LaTeX2e <2016/03/31> patch level 3)
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2016/10/12 v1.5 Document class (Sphinx manual)
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jsbook.cls
Document Class: jsbook 2016/12/13 okumura, texjporg
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jslogo.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: pdftex not detected - exiting.

) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/longtable.sty)
(./sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/dvipdfmx.def)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/makeidx.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/framed/framed.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz))
(/usr/local/texlive/2016/texmf-dist/tex/latex/threeparttable/threeparttable.sty
) (./footnotehyper-sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/mdwtools/footnote.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/parskip/parskip.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/alltt.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/upquote/upquote.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/atbegshi.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/capt-of/capt-of.sty)
(./needspace.sty)
** (sphinx) defining (legacy) text style macros without \sphinx prefix
** if clashes with packages, set latex_keep_old_macro_names=False in conf.py
(./sphinxhighlight.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/multirow/multirow.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/eqparbox/eqparbox.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/environ/environ.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/trimspaces/trimspaces.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hdvipdfm.

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hdvipdfm.def
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/hypcap.sty)
Writing index file test.idx
(./test.aux) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . . . ) (/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1ptm.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./test.out) (./test.out)
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1phv.fd)

LaTeX Font Warning: Font shape `JT1/gt/bx/it' undefined
(Font)              using `JT1/gt/bx/n' instead on input line 52.


LaTeX Font Warning: Font shape `JY1/gt/bx/it' undefined
(Font)              using `JY1/gt/bx/n' instead on input line 52.

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] [2]
(./test.toc) [1] [2] [1] [2]
第1章
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/ts1ptm.fd)
No file test.ind.
[3] (./test.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )
Output written on test.dvi (7 pages, 3592 bytes).
Transcript written on test.log.
for f in *.tex; do platex -kanji=utf8  $f; done
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2016/11/29> (based on LaTeX2e <2016/03/31> patch level 3)
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2016/10/12 v1.5 Document class (Sphinx manual)
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jsbook.cls
Document Class: jsbook 2016/12/13 okumura, texjporg
(/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jslogo.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: pdftex not detected - exiting.

) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/longtable.sty)
(./sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/dvipdfmx.def)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/makeidx.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/framed/framed.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz))
(/usr/local/texlive/2016/texmf-dist/tex/latex/threeparttable/threeparttable.sty
) (./footnotehyper-sphinx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/mdwtools/footnote.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/parskip/parskip.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/alltt.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/upquote/upquote.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/atbegshi.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/capt-of/capt-of.sty)
(./needspace.sty)
** (sphinx) defining (legacy) text style macros without \sphinx prefix
** if clashes with packages, set latex_keep_old_macro_names=False in conf.py
(./sphinxhighlight.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/multirow/multirow.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/eqparbox/eqparbox.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/environ/environ.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/trimspaces/trimspaces.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hdvipdfm.

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hdvipdfm.def
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/hypcap.sty)
Writing index file test.idx
(./test.aux) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . . . ) (/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1ptm.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./test.out) (./test.out)
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/t1phv.fd)

LaTeX Font Warning: Font shape `JT1/gt/bx/it' undefined
(Font)              using `JT1/gt/bx/n' instead on input line 52.


LaTeX Font Warning: Font shape `JY1/gt/bx/it' undefined
(Font)              using `JY1/gt/bx/n' instead on input line 52.

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] [2]
(./test.toc) [1] [2] [1] [2]
第1章
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/ts1ptm.fd)
No file test.ind.
[3] (./test.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )
Output written on test.dvi (7 pages, 3592 bytes).
Transcript written on test.log.
for f in *.dvi; do dvipdfmx $f; done
test.dvi -> test.pdf
[1][2][3][4][5][6][7]
16298 bytes written
make[1]: Leaving directory `/home/ec2-user/test/_build/latex'
```

一応、完成！

# 所感

- Tex Liveデカすぎ
- LaTeXについて知ってないと細かい制御は難しそう
- ドキュメントはきれい


# 参考資料

[LinuxでのTeXの利用](https://texwiki.texjp.org/?Linux)