Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/macros/latex/contrib/gmiflink

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 three files.

gmiflink.sty
README
gmiflink.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 gmiflink.sty
file:
xelatex gmiflink.sty
 in the directory you wish the documentation to be in, 
you don't have copy the .sty file  there---TeX will find it.
Compiling of the documentation requires the packages: gmdoc
(gmdoc.sty and gmdocc.cls), gmverb.sty, gmutils.sty and also some
standard packages: hyperref.sty, xcolor.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.

Files

Name Size Date Notes
README 2480 2008-08-06 12:14
gmiflink.pdf 57792 2008-08-13 02:57
gmiflink.sty 7080 2008-08-09 10:17
gmiflinkDoc.pdf 58373 2007-11-19 08:46
gmiflinkDoc.tex 441 2007-11-19 01:00

Down­load the con­tents of this pack­age in one zip archive (87.5k).

gmi­flink – Sim­plify us­age of \hy­per­tar­get and \hy­per­link

Three hy­per­ref-based macros that sim­plify us­age of \hy­per­tar­get and \hy­per­link: one ar­gu­ment in­stead of the same one twice. Also \gmi­flink and \gmifref which type­set plain text in­stead of gen­er­at­ing an er­ror or print­ing ‘??’ if there is no re­spec­tive hy­per­tar­get or la­bel.

Pack­age De­tailsgmi­flink
Ver­sionv0.97
Li­censeThe LaTeX Project Public Li­cense
Copy­right2005,2006 Grze­gorz Murzynowski
Main­tainerGrze­gorz Murzynowski
TDS archivegmiflink.tds.zip
Con­tained inTeXlive as gmi­flink
MikTeX as gmi­flink
Topics sup­port for hy­per­text
See also hyperref
Guest Book Sitemap Contact