summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/gmiflink/README
blob: 695b67bc086d23df0d39302def224001341877c0 (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
60
61
62
63
64
65
66
67
68
69
The gmiflink.sty LaTeX package
is a work of Grzegorz `Natror' Murzynowski,
<natror at o2 dot pl>

   
1. Copyright 2005, 2006 by Grzegorz `Natror' Murzynowski

This program is subject to the LaTeX Project Public License. 
See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
for the details of that license.


2. Introduction

The gmiflink.sty package protects you against an error when a link is
dangling and typesets some plain text instead of a hyperlink then. It
is intended for use with the hyperref.sty package.

I used it for typesetting the names of the objects in a documentation
of a computer program. If the object had been defined a \hyperlink to its
definition was made, otherwise a plain object's name was typeset.
I also use this package in automatic making of hyperlinking indexes.

It provides the macros \gmiflink, \gmifref and
\gmhypertarget for conditional making of hyperlinks in your document.

\gmhypertarget makes a \hypertarget and a \label of the given name.

\gmiflink makes a \hyperlink to the given \hypertarget if the
correspondent label exists, otherwise typesets an ordinary text.

\gmifref makes a (hyper-)\ref to the given label if the label exists,
otherwise it typesets an ordinary text.


3. Installation

Just put the gmiflink.sty somewhere in the texmf/tex/latex
branch. Creating a /texmf/tex/latex/gm directory may be advisable if
you consider using other packages written by me.

Then you should refresh your TeX distribution's files'
database most probably.


4. Contents

The distribution of this package consists of the following four files.

gmiflink.sty
README
gmiflinkDoc.tex
gmiflinkDoc.pdf


5. Documentation

The last of the above files (the .pdf) is a documentation compiled
from the .sty file by running LaTeX (twice) on the gmiflinkDoc.tex
file. Compiling of the documentation requires the packages: gmdoc
(gmdoc.sty and gmdocc.cls), gmverb.sty, gmutils.sty and also some
standard packages: hyperref.sty, color.sty, geometry.sty,
multicol.sty, lmodern.sty, fontenc.sty that should be installed
on your computer by default.

If you have not installed the mwart.cls class (available on CTAN in
mwcls package), the result of your compilation may differ a bit from
the .pdf provided in this .zip archive in formattings: If you have not
installed mwart.cls, the standard article.cls will be used.