-
Notifications
You must be signed in to change notification settings - Fork 28
/
INSTALL
100 lines (78 loc) · 3.33 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
There are two possibilities to install lhs2TeX:
(A) Using Cabal.
(B) Classic configure/make.
=====================================================================
(A) Using Cabal to install lhs2TeX (preferred):
This requires Cabal 1.6 or later. The process is then as usual:
cabal install
if you have cabal-install (included in the Haskell Platform) or
runghc Setup configure
runghc Setup build
runghc Setup install
The third step requires write access to the installation location and
the LaTeX filename database.
=====================================================================
(B) configure/make (might be removed in the future):
The following instructions apply to Unix-like environments. However,
lhs2TeX does run on Windows systems, too. (If you would like to add
installation instructions or facilitate the installation procedure for
Windows systems, please contact the authors.)
Unpack the archive. Assume that it has been unpacked into directory
"/somewhere". Then say
cd /somewhere/lhs2TeX-@ProgramVersion@
./configure
make
make install
You might need administrator permissions to perform the "make install"
step. Alternatively, you can select your own installation location by
passing the "--prefix" argument to @configure@:
./configure --prefix=/my/local/programs
With lhs2TeX come a couple of library files (containing basic
lhs2TeX formatting directives) that need to be found by the
lhs2TeX binary. The default search path is as follows:
.
{HOME}/lhs2tex-1.23//
{HOME}/lhs2tex//
{HOME}/lhs2TeX//
{HOME}/.lhs2tex-1.23//
{HOME}/.lhs2tex//
{HOME}/.lhs2TeX//
{LHS2TEX}//
/usr/local/share/lhs2tex-1.23//
/usr/local/share/lhs2tex-1.23//
/usr/local/lib/lhs2tex-1.23//
/usr/share/lhs2tex-1.23//
/usr/lib/lhs2tex-1.23//
/usr/local/share/lhs2tex//
/usr/local/lib/lhs2tex//
/usr/share/lhs2tex//
/usr/lib/lhs2tex//
/usr/local/share/lhs2TeX//
/usr/local/lib/lhs2TeX//
/usr/share/lhs2TeX//
/usr/lib/lhs2TeX//
Here, {HOME} and {LHS2TEX} denote the current values of these two
environment variables HOME and LHS2TEX. The double slash at the end of
each dir means that subdirectories are also scanned. If lhs2TeX is
installed to a non-standard path, you might want to set the
environment variable "LHS2TEX" to point to the directory where
"lhs2TeX.fmt" and the other library files have been installed to.
IMPORTANT:
To be able to use ``poly'' style, the two LaTeX
packages "polytable.sty" and "lazylist.sty" are required!
Both are included in the lhs2TeX distribution (they are not part of
standard LaTeX distributions, although they are available from
CTAN), and are usually installed during the normal procedure. The
configure script will determine whether a suitably recent version of
polytable is installed on your system, and if necessary, install
both "polytable.sty" and "lazylist.sty" to your TeX system. If this
is not desired or fails (because the script cannot detect your TeX
installation properly), the installation of these files can be
disabled by passing the option "--disable-polytable" to
"configure". In this case, the two files must be manually installed to
a location where your TeX distribution will find them. Assuming
that you have a local TeX tree at "/usr/local/share/texmf", this can
usually be avhieved by placing the files in the directory
"/usr/local/share/texmf/tex/latex/polytable" and subsequently running
mktexlsr
to update the TeX filename database.