1 | Summary: compile stings in tgif as TeX source |
---|
2 | Summary(ja): tgif の図中の文字列を TeX で処理する |
---|
3 | Name: tgif2tex |
---|
4 | Version: 2.13 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | Source0: http://www.fse.hiroshima-u.ac.jp/~nakano/tgif2tex/%{name}-%{version}.tar.gz |
---|
7 | URL: http://www.fse.hiroshima-u.ac.jp/~nakano/tgif2tex/ |
---|
8 | License: GPL |
---|
9 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
10 | Group: Applications/Multimedia |
---|
11 | Requires: perl tgif >= 4.1 texlive ghostscript ImageMagick netpbm-progs |
---|
12 | BuildRequires: perl tgif >= 4.1 texlive ghostscript |
---|
13 | BuildArch: noarch |
---|
14 | Vendor: Project Vine |
---|
15 | Distribution: Vine Linux |
---|
16 | |
---|
17 | %description |
---|
18 | tgif2tex compiles strings in tgif as TeX source. |
---|
19 | |
---|
20 | |
---|
21 | %description -l ja |
---|
22 | Tgifを用いて複数ページからなる発表用スライドを作成したり,\LaTeX で書 |
---|
23 | かれている論文中にTgifで作成した図を張り付けることがよく行われる.とこ |
---|
24 | ろが、tgifを用いると、図中の文字列に`$\sqrt{n\log n}$'のような数式がう |
---|
25 | まく書けず、かわりに`\verb+√n log n+'などと書くことが多い.これを解決 |
---|
26 | するのがtgif2texである.tgif2texを用いれば、tgifの図中の文字列として |
---|
27 | `\verb+$\sqrt{n\log n}$+'と書いておけば,これを\LaTeX の文字列と処理さ |
---|
28 | せることができ、`$\sqrt{n\log n}$'と印刷される. |
---|
29 | |
---|
30 | |
---|
31 | %prep |
---|
32 | rm -rf $RPM_BUILD_ROOT |
---|
33 | |
---|
34 | %setup -q |
---|
35 | cp Makefile Makefile.orig |
---|
36 | sed -e 's|pdvips|dvips|g' \ |
---|
37 | -e 's|\./tgif2tex|tgif2tex|g' \ |
---|
38 | < Makefile.orig > Makefile |
---|
39 | cp tgif2tex tgif2tex.orig |
---|
40 | sed -e 's|/pdvips|/dvips|g' \ |
---|
41 | -e 's/documentstyle/documentclass/g' \ |
---|
42 | -e '/\\thispagestyle/ i\' \ |
---|
43 | -e ' print TEX "\\\\usepackage[dvips]{color}\\n";' \ |
---|
44 | < tgif2tex.orig > tgif2tex |
---|
45 | |
---|
46 | %build |
---|
47 | make TGIF2TEX=./tgif2tex |
---|
48 | |
---|
49 | %install |
---|
50 | rm -rf $RPM_BUILD_ROOT |
---|
51 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
52 | cp tgif2tex $RPM_BUILD_ROOT%{_bindir} |
---|
53 | |
---|
54 | %clean |
---|
55 | rm -rf $RPM_BUILD_ROOT |
---|
56 | |
---|
57 | %files |
---|
58 | %defattr(-,root,root) |
---|
59 | %{_bindir}/tgif2tex |
---|
60 | %doc Makefile how-to-use.ps how-to-use.tex sample1.obj sample2.obj |
---|
61 | %doc example.tex example.obj |
---|
62 | |
---|
63 | %changelog |
---|
64 | * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.13-2 |
---|
65 | - TeX Live 2009 |
---|
66 | |
---|
67 | * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 2.13-1vl5 |
---|
68 | - applied new versioning policy, spec in utf-8 |
---|
69 | |
---|
70 | * Fri Jan 30 2004 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 2.13-0vl1 |
---|
71 | - updated to 2.13. |
---|
72 | - added \usepackage[dvips]{color} |
---|
73 | |
---|
74 | * Wed Jun 19 2002 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 2.12-0vl1 |
---|
75 | - updated to 2.12. |
---|
76 | - removed useless patch |
---|
77 | |
---|
78 | * Wed Jun 19 2002 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 2.10-0vl2 |
---|
79 | - update patch (enable -color option) |
---|
80 | |
---|
81 | * Tue Jun 11 2002 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 2.10-0vl1 |
---|
82 | - 1st release |
---|