ファイル変換

Last-modified: 2009-01-08 (木) 12:50:36

dviファイルからPostScript(PS)ファイルへの変換

dvips

 デフォルトの出力先がプリンタの場合が多々あるので-oで出力ファイル名をしておくと安心

$divps [-o <PSfilename>] <filename[.dvi]>

dvipsk

$dvipsk [-o <PSfilename>] <filename[.dvi]>

dvi2ps

$dvi2ps [-c <PSfilename>] <filename[.dvi]>

jdvi2kps

よくわからない。標準出力に書き出されるっぽいのでパイプ、リダイレクトで処理する必要があるらしい
直接印刷する

$jdvi2kps <filename[.dvi]> | lpr

ファイルに出力

$jdvi2kps <filename'''[.dvi]> > <PSfilename>

tgifで作成した図にLatexの数式を入れたい

作図はがんばれ。

tgif2texを利用する

(編集するかも?)

PSfragを利用する

Texの書き方はがんばれ。
試したものだけメモ

CentOS上で

  1. tgifでeps作成
  2. euc-jp文字コードでtex作成
  3. pxdviでdviファイル確認(fragは一覧表示)
  4. platexに掛けて
  5. pdvips
  6. ggvでpsファイル確認(置換済)
    でPSfragを使えることを確認

WindowsXP上

  1. tgifでeps作成
  2. sjis文字コードでtex作成
  3. platex
  4. 手持ちのdvi2psが日本語対応してなかったのでエラー
    dvi2ps、dvipsの日本語対応版を探しておこう。
  5. dvipskでうまくいった
  • platex
    pTeX 3.141592-p3.1.10 (sjis) (Web2C 7.5.6)
    kpathsea version 3.5.6
    Copyright 2007 D.E. Knuth.
    Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
    There is NO warranty.  Redistribution of this software is
    covered by the terms of both the pTeX copyright and
    the GNU General Public License.
    For more information about these matters, see the files
    named COPYING and the pTeX source.
    Primary author of TeX: D.E. Knuth.
    Kpathsea written by Karl Berry, Olaf Weber, and others.
Compiled with PTEXENC version 0.99 [with small modifications for W32TeX]
  • dvi2ps
    @(#)dvi2ps (j-version) 3.2j
  • dvipsk
    This is dvips(k) p1.7a Copyright 2007 ASCII Corp.(www-ptex@ascii.co.jp)
    based on dvips(k) 5.96dev Copyright 2007 Radical Eye Software (www.radicaleye.com)