git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1236 c5f82cb5-29bc-0310-9cd0-bff59a50e3bcrocklinux
@ -0,0 +1,29 @@ |
|||
|
|||
tex4ht_main(){ |
|||
unzip $archdir/tex4ht-$ver.zip |
|||
|
|||
echo "Compiling and installing binaries ..." |
|||
gcc -o t4ht temp/t4ht.c \ |
|||
-DENVFILE=\"/$prefix/share/texmf/tex4ht/tex4ht.env\" |
|||
gcc -o tex4ht temp/tex4ht.c \ |
|||
-DENVFILE=\"/usr/share/texmf/tex4ht/tex4ht.env\" -DHAVE_DIRENT_H |
|||
cp -fv t4ht tex4ht $bindir/ |
|||
|
|||
echo "Installing support scripts ..." |
|||
cp -fv bin/unix/* $bindir/ |
|||
|
|||
# correct double-path and unwanted files before cp ... |
|||
mv -v texmf/tex4ht/ht-fonts/ht-fonts/* texmf/tex4ht/ht-fonts/ |
|||
rmdir texmf/tex4ht/ht-fonts/ht-fonts |
|||
rm -rf texmf/tex4ht/base |
|||
|
|||
cp -rv texmf/* $root/$prefix/share/texmf/ |
|||
|
|||
# install our own corrected env file ... |
|||
rock_substitute $confdir/tex4ht.env > \ |
|||
$root/$prefix/share/texmf/tex4ht/tex4ht.env |
|||
} |
|||
|
|||
autoextract=0 |
|||
custmain="tex4ht_main" |
|||
|
@ -0,0 +1,45 @@ |
|||
|
|||
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|||
[COPY] |
|||
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
[COPY] Please add additional copyright information _after_ the line containing |
|||
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
|||
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|||
[COPY] |
|||
[COPY] ROCK Linux: rock-src/package/rene/tex4ht/tex4ht.desc |
|||
[COPY] ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf |
|||
[COPY] |
|||
[COPY] This program is free software; you can redistribute it and/or modify |
|||
[COPY] it under the terms of the GNU General Public License as published by |
|||
[COPY] the Free Software Foundation; either version 2 of the License, or |
|||
[COPY] (at your option) any later version. A copy of the GNU General Public |
|||
[COPY] License can be found at Documentation/COPYING. |
|||
[COPY] |
|||
[COPY] Many people helped and are helping developing ROCK Linux. Please |
|||
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM |
|||
[COPY] file for details. |
|||
[COPY] |
|||
[COPY] --- ROCK-COPYRIGHT-NOTE-END --- |
|||
|
|||
[I] A LaTeX to HTML converter |
|||
|
|||
[T] TeX4ht is a convertor that converts TEX and LATEX documents to HTML (and |
|||
[T] some other formats). This way e.g. scientific papers - primarily typeset |
|||
[T] for printing - can be put on the Web for online viewing. In contrast to |
|||
[T] LATEX2HTML TeX4ht does not try to reimplement the TeX layout, but used |
|||
[T] the usual TeX engine and does the postprecessing. |
|||
|
|||
[U] http://www.cis.ohio-state.edu/~gurari/TeX4ht/ |
|||
|
|||
[A] Eitan M. Gurari <gurari@cis.ohio-state.edu> |
|||
[M] Rene Rebe <rene@rocklinux.org> |
|||
|
|||
[C] extra/office |
|||
|
|||
[L] OpenSource |
|||
[S] Stable |
|||
[V] r1 |
|||
[P] X -----5---9 371.000 |
|||
|
|||
[D] 0 tex4ht-r1.zip !http://www.cis.ohio-state.edu/~gurari/TeX4ht/tex4ht.zip |
|||
|
@ -0,0 +1,122 @@ |
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
% % |
|||
% Specially prepared for ROCK Linux by Rene Rebe % |
|||
% <rene.rebe@rocklinux.org> % |
|||
% tex4ht.env / .tex4ht unix % |
|||
% % |
|||
% Notes: % |
|||
% 1. Empty lines might be harmful % |
|||
% 2. Tagged script segments <tag>...</tag> are scanned only if % |
|||
% their names are specified within -ctag switches of tex4ht.c % |
|||
% and t4ht.c. When -c switches are not supplied, a -cdefault % |
|||
% is implicitly assumed. % |
|||
% 3. Place this file in your work directory and/or root directory % |
|||
% and/or in directory `xxx' of your choice. In the latest case, % |
|||
% compile tex4ht.c and t4ht.c with `#define ENVFILE xxx', or % |
|||
% provide the address of the file to tex4ht and t4ht throught % |
|||
% the -e switch % |
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
% |
|||
% * Replace `path', and possibly what follows, with appropriate % |
|||
% content % |
|||
% * A path may start with: % |
|||
% ~ for environment variable HOME % |
|||
% ~~ for environment variable TEX4HTTFM % |
|||
% * A ! requests recursive search into subdirectories % |
|||
% * Multiple t and i entries are allowed % |
|||
% * When supported by kpathsea % |
|||
% + t entries are ignored % |
|||
% + the path before /ht-fonts/ is ignored in i records that don't % |
|||
% represent real addresses % |
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
% |
|||
t/D_prefix/share/texmf/fonts/! |
|||
% |
|||
<default> |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/iso8859/1/! |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/alias/! |
|||
</default> |
|||
% % |
|||
<mozhtf> |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/mozilla/! |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/unicode/! |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/iso8859/1/! |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/alias/! |
|||
</mozhtf> |
|||
% |
|||
<unihtf> |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/unicode/! |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/iso8859/1/! |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/alias/! |
|||
</unihtf> |
|||
% % |
|||
<symhtf> |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/unicode/! |
|||
i/D_prefix/share/texmf/tex4ht/ht-fonts/iso8859/1/! |
|||
i/D_prefix/share/texmf/texmf/tex4ht/ht-fonts/alias/! |
|||
</symhtf> |
|||
% |
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
% dvi-to-gif % |
|||
% dvips options % |
|||
% magnification: -x mag (e.g., -x 1200) % |
|||
% page size: -T x,y (e.g., -T 14in,14in) % |
|||
Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps |
|||
Ggs -sDEVICE=ppm -sOutputFile=zz%%4.ppm -r110x110 -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit |
|||
Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ppm %%3 |
|||
Grm zz%%4.ps |
|||
Grm zz%%4.ppm |
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
% Default scripts, shifted rightward 1 pos |
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
s--- needs --- %%1.idv[%%2] ==> %%3 --- |
|||
b--- characters --- |
|||
g.gif |
|||
% empty gifs % |
|||
Ecopy empty.gif %%1%%2 |
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
% |
|||
% * Address for an automatically created bookkeeping file % |
|||
% * Ignored under kpathsea % |
|||
% * The work directory is assumed for a default % |
|||
l~/tex4ht.dir/tex4ht.fls |
|||
% |
|||
% t4ht -d%%2 % |
|||
Mmv %%1 %%2%%3 |
|||
Ccp %%1 %%2%%3 |
|||
% t4ht -d%%2 -m%%1 % |
|||
Achmod %%1 %%2%%3 |
|||
% removed protection % |
|||
S* |
|||
% validations, XSTL tranformations,... % |
|||
Xmake -f NSGMLS name=%%1 ext=%%2 |
|||
% |
|||
<oo> |
|||
%%% openoffice % |
|||
.4os mkdir sxw-%%0.dir |
|||
.4os mkdir sxw-%%0.dir/Pictures |
|||
.4os mv %%1.4os sxw-%%0.dir/settings.xml |
|||
.4os mv %%0.xml sxw-%%0.dir/content.xml |
|||
% % |
|||
.4om mkdir sxw-%%0.dir/%%1 |
|||
.4om mv %%1.4om sxw-%%0.dir/%%1/content.xml |
|||
.4om cp sxw-%%0.dir/settings.xml sxw-%%0.dir/%%1/settings.xml |
|||
% % |
|||
.4of mkdir sxw-%%0.dir/META-INF |
|||
.4of mv %%1.4of sxw-%%0.dir/META-INF/manifest.xml |
|||
% % |
|||
.4ot mv %%1.4ot sxw-%%0.dir/meta.xml |
|||
.4oy mv %%1.4oy sxw-%%0.dir/styles.xml |
|||
.4og mv %%1 sxw-%%0.dir/Pictures/%%1 |
|||
% % |
|||
.4ox cd sxw-%%0.dir; zip -r %%0.sxw * ; cd .. |
|||
% % |
|||
.4ox mv sxw-%%0.dir/%%0.sxw . |
|||
% % |
|||
.4ox rm %%1.4ox |
|||
.4ox rm -r -f sxw-%%0.dir |
|||
%%% end openoffice % |
|||
</oo> |
|||
% |
|||
% end of file % |
|||
|