# -*- Mode: org ; Coding: utf-8 -*-
TeX Live 2013 + tlptexlive のインストールをしようと思って、TeX Live
2012 がインストールされたけど、とりあえず、これで環境は整ったよっていう
話。
* dummy の作成
===
$ mkdir -p ~/app/TeX
$ cd ~/app/TeX
$ sudo aptitude install equivs
$ wget http://www.tug.org/texlive/files/debian-control-ex.txt
$ equivs-build debian-control-ex.txt
$ sudo dpkg -i texlive-local_2011-1~1_all.deb
===
* Tex Live 2013 のインストール(のはずだった)
ここを参考に作業を進める。
tlptexlive with TeX Live 2013
http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?Linux%2FUbuntu#tlptexlive
===
$ wget http://ftp.naist.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://ftp.naist.jp/pub/CTAN/systems/texlive/tlnet/
Enter command: I
(なんか、エラー 500 とかなんとか)
$ sudo ./install-tl --profile installation.profile
Add /usr/local/texlive/2012/texmf/doc/man to MANPATH, if not dynamically determined.
Add /usr/local/texlive/2012/texmf/doc/info to INFOPATH.
Most importantly, add /usr/local/texlive/2012/bin/x86_64-linux
to your PATH for current and future sessions.
Welcome to TeX Live!
===
え。。。2012 が入ってるんだけどwww。なんで。 I する時にちゃんと確認して
なかったwww。失敗したけど、続行
===
& sudo /usr/local/texlive/2012/bin/x86_64-linux/tlmgr path add
T
===
* ここまでの確認
===
$ cd ~/junk
$ cat 2013-04-28-195721.tex
\documentclass{article}
\begin{document}
This is \TeX .
\end{document}
$ platex 2013-04-28-195721
$ xdvi -watchfile 1 2013-04-28-195721.dvi
===
なんか出るけど後で対処するっぽい
===
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-10-*-*-*-*-*-*" to type FontStruct
c
===
===
$ dvipdfmx 2013-04-28-195721
$ evince 2013-04-28-195721.pdf
$ ptex2pdf -l 2013-04-28-195721
$ evince 2013-04-28-195721.pdf
===
* pxdvi と pmetapost のインストール(失敗)
===
sudo tlmgr update --self --all
TeX Live 2012 is frozen forever and will no
longer be updated. This happens in preparation for a new release.
If you're interested in helping to pretest the new release (when
pretests are available), please read http://tug.org/texlive/pretest.html.
Otherwise, just wait, and the new release will be ready in due time.
tlmgr: package repositories:
main = http://anorien.csc.warwick.ac.uk/mirrors/CTAN/systems/texlive/tlnet
tlptexlive = http://www.tug.org/~preining/tlptexlive/
tlmgr: saving backups to /usr/local/texlive/2012/tlpkg/backups
tlmgr: no updates available
===
そりゃそうだwww わろた。
===
$ sudo tlmgr repository add http://www.tug.org/~preining/tlptexlive/ tlptexlive
tlmgr: repository or its tag already defined, no action: http://www.tug.org/~preining/tlptexlive/
===
はい。。。ごめんなさい。
===
$ sudo tlmgr pinning add tlptexlive 'pxdvi*'
Not implemented by now, sorry!
$ sudo tlmgr pinning add tlptexlive 'pmetapost*'
Not implemented by now, sorry!
===
えーー。。。あ、そうですか。。。えー。どうすんの。とりあえず、もういい
や。pxdvi とかいうやつ。
* texmf.cnf の編集(失敗)
上の Warning を消そうと思って、以下を探したけど、無いじゃん。もうわかん
ね。。。。うわーん。
/usr/local/texlive/2012/texmf-dist/web2c/texmf.cnf
/usr/local/texlive/texmf-local/web2c/texmf.cnf
* TeX Q&A に問い合わせた
=====[TeX Q&A に聞いたわ]=====
pxdvi install "Not implemented by now, sorry!"
http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=1002
==============================
そうなんですね。。。やりなおそう。
* pxdvi と pmetapost のインストール
===
$ sudo tlmgr update --self --all
$ sudo tlmgr repository add http://www.tug.org/~preining/tlptexlive/ tlptexlive
tlmgr: added repository with tag tlptexlive: http://www.tug.org/~preining/tlptexlive/
$ sudo mkdir -p /usr/local/texlive/texmf-local/tlpkg
$ sudo touch /usr/local/texlive/texmf-local/tlpkg/pinning.txt
$ echo 'tlptexlive:*' | sudo tee -a /usr/local/texlive/texmf-local/tlpkg/pinning.txt
tlptexlive:*
$ sudo tlmgr install pxdvi pmetapost
$ sudo tlmgr path add
===
===
$ sudo cp /usr/local/texlive/2012/texmf/web2c/texmf.cnf /usr/local/texlive/2012/texmf/web2c/texmf.cnf.orig
$ sudo emacs -Q -nw /usr/local/texlive/2012/texmf/web2c/texmf.cnf
===
ediff
===
*** /usr/local/texlive/2012/texmf/web2c/texmf.cnf.orig 2013-04-29 05:35:22.631207568 +0100
--- /usr/local/texlive/2012/texmf/web2c/texmf.cnf 2013-04-29 05:39:43.220499768 +0100
***************
*** 540,550 ****
% for being called from TeX.
%
shell_escape_commands = \
! bibtex,bibtex8,\
kpsewhich,\
! makeindex,\
! mpost,\
! repstopdf,\
% we'd like to allow:
% dvips - but external commands can be executed, need at least -R1.
--- 540,551 ----
% for being called from TeX.
%
shell_escape_commands = \
! bibtex,bibtex8,bibtexu,pbibtex,upbibtex,biber,\
kpsewhich,\
! makeindex,mendex,texindy,\
! mpost,pmpost,\
! repstopdf,epspdf,extractbb,\
!
% we'd like to allow:
% dvips - but external commands can be executed, need at least -R1.
===
===
$ sudo cp /usr/local/texlive/2012/texmf/web2c/texmf.cnf /usr/local/texlive/texmf-local/web2c/
$ sudo mv /usr/local/texlive/texmf-local/web2c/texmf.cnf /usr/local/texlive/texmf-local/web2c/texmf.cnf.setting
===
* pxdvi の設定
===
$ sudo cp /usr/local/texlive/2012/texmf/xdvi/XDvi /usr/local/texlive/2012/texmf/xdvi/XDvi.orig
$ sudo emacs -Q -nw /usr/local/texlive/2012/texmf/xdvi/XDvi
===
[ediff] (!の意味が二重になってる。。。分かりにくっ)
===
*** /usr/local/texlive/2012/texmf/xdvi/XDvi.orig 2013-04-29 05:54:34.360918687 +0100
--- /usr/local/texlive/2012/texmf/xdvi/XDvi 2013-04-29 06:12:34.734275969 +0100
***************
*** 135,143 ****
!!!------------------------------------------------------------------------------
!!!------------------------------ Fonts and colors ------------------------------
!!!------------------------------------------------------------------------------
! *font: -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*
!!! Use a smaller font for the statusline in the Xaw version:
! *statusline.font: -*-helvetica-medium-r-*-*-10-*-*-*-*-*-*
!!! Motif fonts. Meaning of the tags is:
!!! NORMAL: Ordinary text, labels etc.
--- 135,145 ----
!!!------------------------------------------------------------------------------
!!!------------------------------ Fonts and colors ------------------------------
!!!------------------------------------------------------------------------------
! ! *font: -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*
! *font: -*-*-medium-r-*-*-12-*-*-*-*-*-*-*
!!! Use a smaller font for the statusline in the Xaw version:
! ! *statusline.font: -*-helvetica-medium-r-*-*-10-*-*-*-*-*-*
! *statusline.font: -*-*-medium-r-*-*-10-*-*-*-*-*-*-*
!!! Motif fonts. Meaning of the tags is:
!!! NORMAL: Ordinary text, labels etc.
===
* ここまでの確認
===
$ cd ~/tmp/tex
$ cat sample-ja.tex
\documentclass{jsarticle}
\begin{document}
吾輩は猫である。名前はまだ無い。
どこで生れたかとんと見当がつかぬ。
何でも薄暗いじめじめした所で
ニャーニャー泣いていた事だけは記憶している。
吾輩はここで始めて人間というものを見た。
\end{document}
$ platex sample-ja
$ pxdvi -watchfile 1 sampleja.dvi
===
===
$ dvipdfmx sample-ja
$ evince sample-ja.pdf
$ ptex2pdf -l sample-ja
$ evince sample-ja.pdf
===
* IPAex フォントの設定と確認
===
$ kpsewhich ipaexm.ttf
$ kpsewhich ipaexg.ttf
$ kpsewhich ptex-ipaex.map
$ platex sample-ja
$ dvipdfmx -f ptex-ipaex.map sample-ja.dvi
$ evince sample-ja.pdf
===
[ファイル]>[プロパティ]で[フォント]タブを確認
* dvips + ps2pdf (Ghostscript) の設定
===
$ platex sample-ja.tex
$ dvips sample-ja.dvi
$ ps2pdf sample-ja.ps
$ evince sample-ja.pdf
===
===
$ gs --help
...
Search path:
/usr/share/ghostscript/9.05/Resource/Init :
/usr/share/ghostscript/9.05/lib :
/usr/share/ghostscript/9.05/Resource/Font :
/usr/share/ghostscript/fonts : /var/lib/ghostscript/fonts :
/usr/share/cups/fonts : /usr/share/ghostscript/fonts :
/usr/local/lib/ghostscript/fonts : /usr/share/fonts
$ sudo ln -s /usr/local/texlive/2012/texmf-dist/fonts/truetype/public/ipaex /usr/share/fonts/truetype/ipaex
$ sudo touch /usr/share/ghostscript/9.05/Resource/Init/cidfmap
$ sudo emacs -Q -nw /usr/share/ghostscript/9.05/Resource/Init/cidfmap
$ cat /usr/share/ghostscript/9.05/Resource/Init/cidfmap
/ipaexm << /FileType /TrueType /Path (/usr/share/fonts/truetype/ipaex/ipaexm.ttf) /SubfontID 0 /CSI [(Japan1) 6] >> ;
/ipaexg << /FileType /TrueType /Path (/usr/share/fonts/truetype/ipaex/ipaexg.ttf) /SubfontID 0 /CSI [(Japan1) 6] >> ;
/Ryumin-Light /ipaexm ;
/GothicBBB-Medium /ipaexg ;
===
===
$ platex sample-ja.tex
$ dvips sample-ja.dvi
$ ps2pdf sample-ja.ps
$ evince sample-ja.pdf
===
[ファイル]>[プロパティ]で[フォント]タブを確認
* 環境
===
~ $ latex -v
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012)
kpathsea version 6.1.0
Copyright 2012 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.5.10; using libpng 1.5.10
Compiled with zlib 1.2.7; using zlib 1.2.7
Compiled with xpdf version 3.03
===
===
~ $ platex -v
e-pTeX 3.1415926-p3.3-110825-2.4 (utf8.euc) (TeX Live 2012)
kpathsea version 6.1.0
ptexenc 1.3.0
Copyright 2012 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the e-pTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the e-pTeX source.
Primary author of e-pTeX: D.E. Knuth.
===
===
~ $ xdvi -v
xdvik version 22.85 (Xaw toolkit)
Libraries: kpathsea version 6.1.0, T1lib version 5.1.2
===
===
~ $ pxdvi -v
xdvik version 22.85 j1.41-ptexlive (Xaw toolkit)
Libraries: kpathsea version 6.1.1dev, T1lib version 5.1.2, FreeType version 2.4.9, Fontconfig version 2.9.0
===
===
~ $ mpost --version
MetaPost 1.504 (TeX Live 2012)
The MetaPost source code in the public domain.
MetaPost also uses code available under the
GNU Lesser General Public License (version 3 or later);
therefore MetaPost executables are covered by the LGPL.
There is NO warranty.
For more information about these matters, see the file
COPYING.LESSER or <http://gnu.org/licenses/lgpl.html>.
Original author of MetaPost: John Hobby.
Author of the CWEB MetaPost: Taco Hoekwater.
===
===
~ $ dvipdfmx --version
This is dvipdfmx-20120420 by the DVIPDFMx project team,
modified for TeX Live,
an extended version of dvipdfm-0.13.2c developed by Mark A. Wicks.
Copyright (C) 2002-2012 by the DVIPDFMx project team
This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
===
===
~ $ cat /usr/bin/ps2pdf
#!/bin/sh
# $Id$
# Convert PostScript to PDF.
# Currently, we produce PDF 1.4 by default, but this is not guaranteed
# not to change in the future.
version=14
ps2pdf="`dirname \"$0\"`/ps2pdf$version"
if test ! -x "$ps2pdf"; then
ps2pdf="ps2pdf$version"
fi
exec "$ps2pdf" "$@"
===
===
~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
===
===
~ $ ratpoison -v
ratpoison 1.4.6 (built Apr 22 2013 01:52:15)
Copyright (C) 2000-2008 Shawn Betts
===
===
~ $ emacs --version
GNU Emacs 24.2.2
Copyright (C) 2012 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
===
0 件のコメント:
コメントを投稿