- 追加された行はこの色です。
- 削除された行はこの色です。
[[Linux]] > Ubuntu
*[[Ubuntu:http://www.ubuntu.com/]] [#m38e62cf]
#ref(http://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Logo-ubuntu_no%28r%29-black_orange-hex.svg/500px-Logo-ubuntu_no%28r%29-black_orange-hex.svg.png,right,around,nolink,Ubuntu)
&color(White,#5F2F2F){ ''◆目次◆'' };&br;
#contents
*Ubuntu とは [#i6bcb07d]
Ubuntu は [[Debian GNU/Linux>Linux/Debian]] をベースにした Linux ディストリビューションです.
-[[Ubuntu homepage | Ubuntu:http://www.ubuntu.com/]]
-[[Home | Ubuntu Japanese Team:http://www.ubuntulinux.jp/]]
-[[Ubuntu Japanese Wiki - Ubuntu Japanese Wiki:https://wiki.ubuntulinux.jp/]]
--[[開発:https://wiki.ubuntulinux.jp/Develop]]
//--[[JapaneseLocalizedDerivative/LaTeXForJapanese:https://wiki.ubuntulinux.jp/JapaneseLocalizedDerivative/LaTeXForJapanese]]
//--[[AdobeReaderJpn-Migration:https://wiki.ubuntulinux.jp/Develop/AdobeReaderJpn-Migration]]
-[[Ubuntu日本語フォーラム:https://forums.ubuntulinux.jp/]]
-[[The ubuntu-jp Archives:https://lists.ubuntu.com/archives/ubuntu-jp/]]
*[[TeX Live]] &aname(texlive); [#l2f3d074]
-[[Ubuntu -- パッケージ検索結果 -- texlive-lang-cjk:http://packages.ubuntu.com/ja/texlive-lang-cjk]]
-[[Ubuntu -- パッケージ検索結果 -- texlive-fonts-recommended:http://packages.ubuntu.com/ja/texlive-fonts-recommended]]
-[[Ubuntu -- パッケージ検索結果 -- latexmk:http://packages.ubuntu.com/ja/latexmk]]
-[[Ubuntu -- パッケージ検索結果 -- ghostscript:http://packages.ubuntu.com/ja/ghostscript]]
-[[Debian support - TeX Live - TeX Users Group:http://www.tug.org/texlive/debian.html]]
**TeX Live 2013 &aname(texlive2013); [#y097b8c5]
***Ubuntu 13.04 [#se51f85a]
-[[TeX Live 2013>Linux/Ubuntu#texlive2013install]]
**TeX Live 2012/Debian &aname(texlive2012debian); [#rf0fcf3b]
***Ubuntu 13.04 [#fd747683]
Ubuntu 12.10 と同様の方法でインストールできます.~
-[[[Ubuntu13.04]LaTexのセットアップ:http://aruneko.wkeya.com/archives/461]]
-[[Ubuntu 13.04でLaTeX環境を整える:http://kubuser.blog.fc2.com/blog-entry-33.html]]
-[[Ubuntu 13.04 に TeXLive 2012 をインストール:http://tkyon.blogspot.jp/2013/04/ubuntu-1304-texlive-2012.html]]
-[[Ubuntu 13.04 のインストール & 設定:http://transitive.info/2013/04/22/install-ubuntu-1304/]]
$ sudo apt-get install texlive-lang-cjk texlive-fonts-recommended
/usr/share/texmf/web2c/texmf.cnf を編集します.
shell_escape_commands が以下のように記述されていると思います.
shell_escape_commands = \
bibtex,bibtex8,\
kpsewhich,\
makeindex,\
mpost,\
repstopdf,\
shell_escape_commands を以下のように編集して保存します.
shell_escape_commands = \
bibtex,bibtex8,bibtexu,pbibtex,upbibtex,biber,\
kpsewhich,\
makeindex,mendex,texindy,\
mpost,pmpost,\
repstopdf,epspdf,extractbb,\
*TeX Live 2013 &aname(texlive2013install); [#jd4f2edd]
**dummy パッケージの作成 [#he7ed5d4]
TeX Live の公式サイトのパッケージをインストールしたあとで TeX Live 2012/Debian に依存するパッケージをインストールしようとすると Ubuntu や Debian GNU/Linux の TeX Live 2012/Debian も同時にインストールされてしまいます.~
TeX Live 2012/Debian がインストールされないように dummy パッケージを作成して依存関係の問題を回避します.~
$ sudo apt-get 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 のインストール [#hf3fd9de]
TeX Live 2013 をインストールします.~
$ wget http://ring.airnet.ne.jp/pub/text/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
$ tar xvf install-tl-unx.tar.gz
$ cd install-tl*
$ sudo ./install-tl --repository http://ring.airnet.ne.jp/pub/text/CTAN/systems/texlive/tlnet/
TeX Live 2013 がリリースされていない場合は TeX Live 2013 pretest をインストールします.~
$ wget http://ftp.math.utah.edu/pub/texlive/tlpretest/install-tl-unx.tar.gz
$ tar xvf install-tl-unx.tar.gz
$ cd install-tl*
$ sudo ./install-tl --repository http://ftp.math.utah.edu/pub/texlive/tlpretest/
======================> TeX Live installation procedure <=====================
=======> Note: Letters/digits in <angle brackets> indicate menu items <=======
=======> for commands or configurable options <=======
Detected platform: x86_64 with GNU/Linux
<B> platforms: 1 out of 17
<S> installation scheme (scheme-full)
84 collections out of 85, disk space required: 3845 MB
Customizing installation scheme:
<C> standard collections
<L> language collections
<D> directories:
TEXDIR (the main TeX directory):
/usr/local/texlive/2013
TEXMFLOCAL (directory for site-wide local files):
/usr/local/texlive/texmf-local
TEXMFSYSVAR (directory for variable and automatically generated data):
/usr/local/texlive/2013/texmf-var
TEXMFSYSCONFIG (directory for local config):
/usr/local/texlive/2013/texmf-config
TEXMFVAR (personal directory for variable and automatically generated data):
~/.texlive2013/texmf-var
TEXMFCONFIG (personal directory for local config):
~/.texlive2013/texmf-config
TEXMFHOME (directory for user-specific files):
~/texmf
<O> options:
[ ] use letter size instead of A4 by default
[X] allow execution of restricted list of programs via \write18
[X] create all format files
[X] install macro/font doc tree
[X] install macro/font source tree
<V> set up for portable installation
Actions:
<I> start installation to hard disk
<H> help
<Q> quit
Enter command: I
I を入力してインストールを開始します.~
サーバーの接続エラーが発生したり,アーカイブ中に予期せぬ EOF があったりした場合はインストールが途中でストップします.~
エラーが発生した場合は以下のコマンドで途中から再開できたりできなかったりします.~
再開できない場合は接続先を変更するかまたは [[ISO ファイル>TeX Live#iso]]をミラーサイトからダウンロードしてインストールしてください.~
$ sudo ./install-tl --profile installation.profile
ABORTED INSTALLATION FOUND: installation.profile
Do you want to continue with the exact same settings as before (y/N): y
インストールが終了したら /usr/local/bin ディレクトリ配下にシンボリックリンクを追加します.
-32 bit 版の場合
$ sudo /usr/local/texlive/2013/bin/i386-linux/tlmgr path add
-64 bit 版の場合
$ sudo /usr/local/texlive/2013/bin/x86_64-linux/tlmgr path add
***texmf.cnf の編集 [#e29d5a24]
[[/usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf:http://www.tug.org/svn/texlive/trunk/Master/texmf-dist/web2c/texmf.cnf?view=markup]] を編集します.~
編集には [[Vim]] を使用します.~
Vim の使い方が分からない場合は [[Emacs]] や [[gedit]] でもかまいません.~
$ sudo vim /usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf
shell_escape_commands が以下のように記述されていると思います.
shell_escape_commands = \
bibtex,bibtex8,\
kpsewhich,\
makeindex,\
mpost,\
repstopdf,\
shell_escape_commands を以下のように編集して保存します.
shell_escape_commands = \
bibtex,bibtex8,bibtexu,pbibtex,upbibtex,biber,\
kpsewhich,\
makeindex,mendex,texindy,\
mpost,pmpost,\
repstopdf,epspdf,extractbb,\
アップデートによって texmf.cnf が上書きされ設定がリセットされてしまう場合は /usr/local/texlive/texmf-local/web2c/texmf.cnf に設定を記述しておけば OK です.~
**ptex2pdf (platex + dvipdfmx) で IPAex フォントの埋め込み [#j5ae0e71]
TeX Live 2013 には IPAex フォント,ptex-ipaex.map が収録されています.~
$ kpsewhich ipaexm.ttf
/usr/local/texlive/2013/texmf-dist/fonts/truetype/public/ipaex/ipaexm.ttf
$ kpsewhich ipaexg.ttf
/usr/local/texlive/2013/texmf-dist/fonts/truetype/public/ipaex/ipaexg.ttf
$ kpsewhich ptex-ipaex.map
/usr/local/texlive/2013/texmf-dist/fonts/map/dvipdfmx/jfontmaps/ipaex/ptex-ipaex.map
ptex2pdf で -l -od '-f ptex-ipaex.map' オプションを指定して実行します.
$ ptex2pdf -l -od '-f ptex-ipaex.map' hoge.tex
以上の作業で IPAex フォントが埋め込まれます.
**dvips + ps2pdf (Ghostscript) を使用して PDF ファイルを作成 [#gcac3589]
Ubuntu 13.04 には Ghostscript 9.07 が収録されています.~
以下の表示が出力されて dvips + ps2pdf (Ghostscript) を使用して PDF ファイルが作成できない場合は Ghostscript の設定をします.~
Can't find (or can't open) font file /usr/share/ghostscript/9.07/Resource/Font/ipaexm-H.
Can't find (or can't open) font file ipaexm-H.
Can't find (or can't open) font file /usr/share/ghostscript/9.07/Resource/Font/ipaexg-H.
Can't find (or can't open) font file ipaexg-H.
Ghostscript の Search path を確認します.~
$ gs --help
...
Search path:
/usr/share/ghostscript/9.07/Resource/Init :
/usr/share/ghostscript/9.07/lib :
/usr/share/ghostscript/9.07/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
/usr/share/fonts/truetype/ipaex に TeX Live の IPAex フォントのディレクトリのシンボリックリンクを作成します.
$ sudo ln -s /usr/local/texlive/2013/texmf-dist/fonts/truetype/public/ipaex /usr/share/fonts/truetype/ipaex
/usr/share/ghostscript/9.07/Resource/Init/cidfmap を作成します.
$ sudo touch /usr/share/ghostscript/9.07/Resource/Init/cidfmap
/usr/share/ghostscript/9.07/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 ;
ps2pdf で PDF ファイルを作成すると IPAex フォントが埋め込まれます.~
ps2pdf で
Error: /invalidfileaccess in /findfont
のエラーが発生して PS ファイルが PDF ファイルに変換できない場合は
$ ps2pdf -dDELAYSAFER hoge.ps
として変換します.
*[[Evince]] [#m440464c]
[[代替フォントの設定>Evince#substitute]] を参照して代替フォントの設定をします.~
*関連リンク [#ofcc84e4]
-[[ASCII.jp:~師範、組版システム「TeX」について教えてください!~|行っとけ! Ubuntu道場!:http://ascii.jp/elem/000/000/725/725528/]]
-[[Sickly Life:http://www.k5.dion.ne.jp/~r-f/sicklylife/]] Ubuntu をインストールした直後に行う設定
-[[Ubuntu 12.04のevinceでpdfを開くと明朝体もゴシック体で表示されるのを直す:http://ubutun.blogspot.jp/2012/05/ubuntu-1204evincepdf.html]]
-[[Ubuntu 12.04をインストール:http://ubutun.blogspot.jp/2012/04/ubuntu-1204.html]]
-[[本家Ubuntuの日本語表示問題 Ubuntu 12.04編:http://blog.minawa.net/2012/04/ubuntu-ubuntu-1204.html]]