summaryrefslogtreecommitdiff
path: root/support/texdef/INSTALL
blob: 61e8e803059fca0a1a2d2438229273c5470bbe00 (plain)
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
Installation
============

Requirements
------------

The `texdef` program is a Perl script which needs a Perl interpreter to work.
Informations about installing Perl can be found at http://www.perl.org/get.html.

The script calls a TeX compiler (tex, latex, ...) to display the definition of commands/macros.
Therefore (La)TeX must also be installed.
Informations about installing (La)TeX can be found at http://www.latex-project.org/ftp.html.


Location
--------

For installation the script 'texdef.pl' must simply be copied to a location suitable for executables,
i.e. a directory in the PATHi, e.g. '/usr/bin' or '/usr/local/bin' for Linux/Unix.

The script should be set as "executable", i.e. 'chmod +x texdef.pl' for Linux/Unix.
This is not required for MS Windows.


Name
----

This script can show the definitions of commands with different flavours of TeX
(tex, etex, latex, pdftex, pdfetex, pdflatex, xetex, xelatex, context, ...).
The flavour can be given using an command line option or over the _script name_,
i.e. if the script is called 'texdef' it will use 'tex', but called 'latexdef'
it will use 'latex' and so on.  
The script can be simply copied several times, but creating _symbolic links_
to the real script is enough on operation systems / file systems which support
this.

At least the two variations 'texdef' and 'latexdef' should be installed.


Quick Install Nodes for Linux/Unix
----------------------------------

    cp texdef.pl /usr/local/bin/
    cd /usr/local/bin
    ln -s texdef.pl texdef
    ln -s texdef.pl latexdef
    ln -s texdef.pl etexdef
    ln -s texdef.pl luatexdef
    ln -s texdef.pl lualatexdef
    ln -s texdef.pl pdftexdef
    ln -s texdef.pl pdflatexdef
    ln -s texdef.pl xetexdef
    ln -s texdef.pl xelatexdef
    ln -s texdef.pl 'some other TeX flavour of your choice'

or use the Makefile (defaults to `/usr/local/bin`)

    make install INSTALLDIR=/your/path