Created
April 3, 2012 07:40
-
-
Save knzm/2290207 to your computer and use it in GitHub Desktop.
sphinx latex-pdf
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
% Takaoフォントファミリー | |
%% 明朝系 | |
rml H TakaoMincho.ttf | |
rmlv V TakaoMincho.ttf | |
rml-jis H TakaoMincho.ttf | |
%% ゴシック系 | |
gbm H TakaoGothic.ttf | |
gbm V TakaoGothic.ttf | |
gbm-jis H TakaoGothic.ttf |
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
[Linux Mint 12 Lisa] | |
$ sudo vi /etc/texmf/texmf.d/75DviPS.cnf | |
OSFONTDIR = /usr/share/fonts/truetype | |
$ sudo update-texmf -v | |
$ kpsewhere TakaoGothic.ttf | |
$ vi cjk.map | |
$ dvipdfmx -f cjk.map -v latexpdf.dvi |
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
[Linux Mint 12 Lisa] | |
$ sudo apt-get install texlive dvipsk-ja ptex-bin okumura-clsfiles texlive-latex-extra dvipng | |
$ sudo apt-get install nkf | |
$ sudo apt-get install python-virtualenv | |
$ cd ~/work | |
$ virtualenv sphinx_latexpdf --no-site-packages | |
$ cd sphinx_latexpdf | |
$ . bin/activate | |
(sphinx_latexpdf)$ pip install https://bitbucket.org/sphinxjp/website/downloads/Sphinx-1.1.2sphinxjp-latex.tar.gz | |
(sphinx_latexpdf)$ cd lib/python2.7/site-packages | |
(sphinx_latexpdf)$ wget -O - https://bitbucket.org/knzm/sphinx/changeset/fe9f5556bccd/raw/ | patch -p1 | |
(sphinx_latexpdf)$ cd ../../.. | |
(sphinx_latexpdf)$ mkdir doc | |
(sphinx_latexpdf)$ cd doc | |
(sphinx_latexpdf)$ sphinx-quickstart | |
conf.py の修正 | |
- language = 'ja' | |
- latex_elements | |
- 'papersize': 'a4paper' | |
- 'pointsize': '10pt' | |
- latex_documents | |
- タプルの5要素目を 'manual' か 'howto' のどちらかに設定する | |
- latex_docclass = {"howto": "jsarticle", "manual": "jsbook"} | |
(sphinx_latexpdf)$ make latexpdfja |
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
- LaTeX経由でのPDF作成 | |
http://sphinx-users.jp/cookbook/pdf/latex.html | |
- スタンドアロンインストーラ | |
http://sphinx-users.jp/gettingstarted/install_windows_standalone.html | |
- TexLive 2011 for Windows | |
http://www.tug.org/texlive/acquire-netinstall.html | |
make latex は成功 | |
生成された TeX ファイルを TeXworks でビルドしようとすると \NeedsTeXFormat{pLaTeX2e} というエラーが出る | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment