[vine-users:082538] Re: Vine 6.2 でTeXLive 2013

Munehiro Yamamoto munepi @ vinelinux.org
2014年 4月 24日 (木) 23:32:06 JST


山本宗宏です。

2014年4月24日 21:23 須川誠二 <nbc00202 @ nifty.ne.jp>:
> emacs 上のYaTeXからplatexを起動すると,distのtexlive2009が呼ばれています。
> しかし,端末上でplatexと打つとtexlive2013のコマンドやスタイルファイルが使われます。

現時点の須川さんのお手元では、
bash などの login shell に対する環境変数 PATH に、
texlive 2013 のパスがすでに追加されているのですね?
例えば、PATHに/opt/texlive/2013/bin/x86_64-linuxを追加している場合、
以下のように echo $PATH の結果が返ってきて、
platex を実行しても確かにTeX Live 2013に入っている platex が実行されるわけですね?
$ echo $PATH
/opt/texlive/2013/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
$ which platex
/opt/texlive/2013/bin/x86_64-linux/platex
$ platex --version
e-pTeX 3.1415926-p3.4-130605-2.6 (utf8.euc) (TeX Live 2014/dev)
kpathsea version 6.2.0dev
ptexenc version 1.3.2dev
Copyright 2013 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: Peter Breitenlohner.


そうしますと、
~/.emacs.d/init.el(もしくは、それ以降に読み込まれる設定ファイル)に
以下を書き込むだけで tex live 2013 側の platex が実行されるはずです。

(setq tex-command "platex")

山本 宗宏 Munehiro "munepi" Yamamoto
Founder, President & CEO, Green Cherry Ltd.    <munepi @ greencherry.jp>
http://greencherry.jp/
Public Relations, Project Vine    <munepi @ vinelinux.org> http://vinelinux.org/
GPG Key Fingerprint: 61EC 85A8 5F34 5E35 91E8  8AD0 1D28 D5DE C24B 55FD


vine-users メーリングリストの案内