
Ubuntu日本語フォーラム

ログインしていません。
ubuntu11.10上に日本語TeX環境を構築するため以下を参考にインストールしましたが満足な結果が得られないので解決方法をお尋ねします。
3つの質問をさせていただきます。長い質問ですがよろしくお願いいたします。
------------------------
ubuntu11.10上に日本語TeX環境を構築
http://d.hatena.ne.jp/rougeref/20120126
Ubuntu 11.04/11.10へのLaTeXインストール
https://simple-note.appspot.com/publish/p15pY6
$ sudo apt-get install texlive texlive-math-extra ptex-bin xdvik-ja
$ sudo apt-get install dvipdfmx cmap-adobe-japan1 ptex-jisfonts okumura-clsfiles jmpost jbibtex-base jbibtex-bin mendexk
$ sudo jisftconfig add
-------------------------
(質問1)=======================
テスト結果は以下でした。一応通るのですが ** WARNIBG ** が現れます。解決方法をお教え願います。
(abe.tex)
----------------
\documentclass{jarticle}
\begin{document}
\TeX
\[
\frac{1}{2}
\]
\end{document}
-----------------
satouy@Ubuntu-2:~/workTeX/work$ platex abe.tex
This is pTeXk, Version 3.141592-p3.1.11 (euc) (Web2C 7.5.4)
%&-line parsing enabled.
(./abe.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
(/usr/share/texmf/ptex/platex/base/jarticle.cls
Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
(/usr/share/texmf/ptex/platex/base/jsize10.clo))
No file abe.aux.
[1] (./abe.aux) )
Output written on abe.dvi (1 page, 280 bytes).
Transcript written on abe.log.
satouy@Ubuntu-2:~/workTeX/work$ dvipdfmx abe.dvi
abe.dvi -> abe.pdf
** WARNING ** Failed to load AGL file "pdfglyphlist.txt"...
** WARNING ** Failed to load AGL file "glyphlist.txt"...
[1]
2314 bytes written
(質問2) =========================
TeXworks をソフトウェアセンターからインストールしました。しかしエラーが表示されます。解決方法をお教え願います。
----------------
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./abe.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
rtuguese, spanish, galician, catalan, swedish, ukenglish, loaded.
! LaTeX Error: File `jarticle.cls' not found.
------------------------
(質問3) =========================
日本語の問題: Ubuntu11.10 のフォントは UTF-8 になっていると理解しています。結果をみるとインストールした pTeX は euc 対応になっています。
[改訂第5版] LaTeX2e 美文書作成入門 奥村 著 ではUTF-8対応になっています。
Ubuntu11.10で UTF-8 対応のものをインストールする方法をお教え願います。
(abe-j.tex)
--------------
\documentclass{jarticle}
\begin{document}
\TeX
のテスト
\[
\frac{1}{2}
\]
\end{document}
---------------
satouy@Ubuntu-2:~/workTeX/work$ platex abe-j.tex
This is pTeXk, Version 3.141592-p3.1.11 (euc) (Web2C 7.5.4)
%&-line parsing enabled.
(./abe-j.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
(/usr/share/texmf/ptex/platex/base/jarticle.cls
Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
(/usr/share/texmf/ptex/platex/base/jsize10.clo)) (./abe-j.aux) [1] (./abe-j.aux
) )
(see the transcript file for additional information)
Output written on abe-j.dvi (1 page, 336 bytes).
Transcript written on abe-j.log.
-------------------------
オフライン
>質問2
TeXWorks が pLaTeX ではなく pdfLaTeX を呼び出しているため、
jarticle.cls を見つけられずエラーになっているのでしょう。
>質問3
Ubuntu 標準の pLaTeX は(悲しいことに) UTF-8 に対応していません。
なので始めから EUC や SJIS などで書くか、
別途 UTF-8 に対応しているものをインストールする必要があります。
自分の場合には土村氏作成の ptexlive というものを利用しています。
http://tutimura.ath.cx/ptexlive
これを利用するためには自分でコンパイル作業をしなければいけないので
少々敷居が高いかもしれません。
なお、手前味噌ではありますが、deb パッケージ化したものを PPA に
置いているので、もしよろしければご活用ください。
https://launchpad.net/~epii/+archive/ptexlive
オフライン
早速のご回答ありがとうございます。
Windows版は [改訂第5版] LaTeX2e 美文書作成入門 奥村 著 のCDでインストールして使っています。
Ubuntu11.10 でも使いたいと思いインストールを試みた次第です。
初心者なので初めての体験が多く、グーグルで検索しながらトライしてみようと思います。
オフライン
epii による投稿:
>質問2
TeXWorks が pLaTeX ではなく pdfLaTeX を呼び出しているため、
jarticle.cls を見つけられずエラーになっているのでしょう。
>質問3
Ubuntu 標準の pLaTeX は(悲しいことに) UTF-8 に対応していません。
なので始めから EUC や SJIS などで書くか、
別途 UTF-8 に対応しているものをインストールする必要があります。
自分の場合には土村氏作成の ptexlive というものを利用しています。
http://tutimura.ath.cx/ptexlive
これを利用するためには自分でコンパイル作業をしなければいけないので
少々敷居が高いかもしれません。
なお、手前味噌ではありますが、deb パッケージ化したものを PPA に
置いているので、もしよろしければご活用ください。
https://launchpad.net/~epii/+archive/ptexlive
epii さま、
ppa:epii/ptexlive を利用させて頂きます。 インストールのため以下を入力したのですがエラーが発生しました。
ネットワーク環境が原因のように思われますが、対処方法をお教え願えませんでしょうか?
satouy@Ubuntu-2:~$ sudo add-apt-repository ppa:epii/ptexlive
[sudo] password for satouy:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 88, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (28, 'connect() timed out!')
satouy@Ubuntu-2:~$
なを調べた範囲ではインストール方法は以下と理解しました。
sudo add-apt-repository ppa:epii/ptexlive
sudo apt-get update
sudo apt-get install ptexlive
よろしくお願いいたします。 ysato
オフライン
どうも Launchpad サーバの調子が悪いみたいです。
こちらではどうしようも無いので、
後日試してみてください。
オフライン
定期的にインストールを試みているのですが タイムアウトです。
sudo add-apt-repository ppa:epii/ptexlive
このような素晴らしいインストール方法が利用できないのが残念です。
要望:
Ubuntu日本語フォーラム として ppa を利用できるようにサポートしていただけないでしょうか?
使用しているネットワーク環境が原因の可能性? を調べる方法がありましたらお知らせ願います。
------------------------------
近況:
日本語を諦めて \documentclass{article} での使用方法を探っています。
TeXWorks
タイプセット pdfLaTeX ( デフォルト)
で試みています。 一応動くような状態です。
オフライン
http://askubuntu.com/questions/92464/add-apt-repository-wont-work-on-proxy
proxyの設定で、ppa登録できないのでは?
オフライン
この前まではこちらの環境でもエラーになるので勝手にサーバのせいにしてしまいましたが、
今試してみたところ正常に登録できますね…。
とりあえずの回避策として、手動で登録してみてもらえますか?
こちらの古いシステム向けのインストール方法の部分を参考に設定してみてください。
https://help.launchpad.net/Packaging/PPA/InstallingSoftware#On_older_.28pre_9.10.29_Ubuntu_systems
オフライン
回答ありがとうございます。
/root/.bashrc に proxy を書き込んで以下のように実行しましたが、GPSエラーが現れました。
解決方法をお教え願います。よろしく。 さとう
---------------------------------
root@Ubuntu-1:~# add-apt-repository ppa:epii/ptexlive
You are about to add the following PPA to your system:
ptexlive
More info: https://launchpad.net/~epii/+archive/ptexlive
Press [ENTER] to continue or ctrl-c to cancel adding it
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.PU8vyJtksw --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv C23BB59CE832FE4C397267C078D3199C1CD36C91
gpg: 鍵1CD36C91をhkpからサーバーkeyserver.ubuntu.comに要求
gpg: 鍵1CD36C91:“Launchpad PPA for epii”変更なし
gpg: 処理数の合計: 1
gpg: 変更なし: 1
root@Ubuntu-1:~#
root@Ubuntu-1:~#apt-get update
.......
.......
11.4 kB を 33秒 で取得しました (342 B/s)
パッケージリストを読み込んでいます... 完了
W: GPG エラー: http://jp.archive.ubuntu.com oneiric-updates Release: 以下の署名が無効です: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: GPG エラー: http://jp.archive.ubuntu.com oneiric-backports Release: 以下の署名が無効です: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
root@Ubuntu-1:~#
オフライン
http://memo.officebrook.net/20100812.html
http://www.ubuntugeek.com/how-to-fix-the-ubuntu-gpg-error-badsig.html
http://cbrl2.csse.muroran-it.ac.jp/index.php?%A5%E1%A5%F3%A5%D0%A1%BC%2F%C2%E7%B6%B6%B9%EE%BA%C8%2Fubuntu
http://ccnw.blogspot.jp/2009/03/gpg.html
オフライン
次の入力でインストールができました。ありがとうございます。
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
\documentclass{jsarticle} を含む test.tex が実行できました。
$platex test.tex
$dvipdfmx test.dvi
-----------------------------
次のステップとしてUbuntu ソフトウェアセンターにあるTeXworks を利用したいのですが、「タイプセットの設定」についてお教え願います。
「美文書作成入門」奥村著p.351 を参考に以下のように設定したのですが動作しないので質問します。
TeXおよび関連プログラムのパス:
/usr/share/ptexlive/bin/x86_64-unknown-linux-gnu
タイプセットの方法:
名前: pdfplatex
プログラム: pdfplatex
引数: $fullname
pdfplatex が無いとのエラーが現れます。 解決法をお教え願います。
オフライン
TeXworks pdfplatex で検索したところ TeXworks-TeXwiki に解決策が書いてありました。
$cat pdfplatex
#!/bin/sh
platex -synctex=1 "$1" && \
dvipdfmx "`basename "$1" .tex`"
$chmod +x pdfplatex
$sudo cp -p pdfplatex /usr/share/ptexlive/bin/x86_64-unknown-linux-gnu
タイプセットの設定
名前: pdfplatex
プログラム: pdfplatex
引数: $basename
これで完成!! (と思います)
--------------------------------
epii さん ありがとうございました。
Launchpad を使ったインストールは素晴らしいと思います。
皆さんに教えていただき成功しました。ありがとうございました。
学んだこと:
(1) home の .bashrc に proxy を書きこんで使用していた。
root でインストールするので、 root に proxy を教える必要があること。
(2) GPG エラー の解決法。
(3) TeXworks のタイプセットの設定。
platex と dvipdfmx を起動するシェルスクリプト pdfplatex
オフライン
dvipdfmx での図の挿入をテストした結果、直前のメールに書いてある pdfplatex ではエラーが現れることがわかった。
解決法は、第5版「美文書作成入門」奥村著 p.114 に書いてありました。
$cat pdfplatex
#!/bin/sh
platex -shell-escape "$1" && \
dvipdfmx "`basename "$1" .tex`"
$chmod +x pdfplatex
$sudo cp -p pdfplatex /usr/share/ptexlive/bin/x86_64-unknown-linux-gnu
これで、無事成功しました。
\documentclass{jsarticle}
\usepackage[dvipdfmx,hiresbb]{graphicx} % dvipdfmx for jsarticle
\includegraphics[width=5cm] {sample.pdf}
オフライン
epii さま、
このUbuntu フォーラムで教えていただいた方法で Ubuntu 12.04 に TeXlive をインストールしたので報告します。
(Ubuntu 11.10 ではプロキシーの問題で工夫が必要だったが)
3行のコマンドでインストールできました。
sudo add-apt-repository ppa:epii/ptexlive
sudo apt-get update
sudo apt-get install ptexlive
このフォーラムに書いてあるように TeXworks から pdfplatex を使えうように設定し、現在のところ問題なく動くことを確認しました。
ありがとうございました。 さとう 20-Sep-12
注意点: TeXworksの設定 -> タイプセット のTeXおよび関連プログラムのパス で
/usr/share/ptexlive/bin/x86_64-unknown-linux-gnu のみにする。デフォルトでその他にあるパスを削除する。
オフライン
Ubuntu12.04 で TeXlive2012 がインストールできることを知ったのでインストールを行なった。
ウェッブページに非常に丁寧な説明があったので無事成功しました。報告します。
[ubuntu-jp:4234] Ubuntu 12.10のTeX Liveが2012になりました
Ubuntu 12.10 の TeX Live 2012 が Ubuntu 12.04 にバックポートされています
http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?Linux%2FUbuntu#l2f3d074
オフライン