diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2008-09-26 09:17:26 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2008-09-26 09:17:26 +0000 |
commit | 69cdb80977fc59e47c24a680fc0c61a3eac0c097 (patch) | |
tree | ca111e9049a1785bf8507161dce88a2233268760 /Master/tlpkg/dviout/HYPERTEX/myhyper.sty | |
parent | d3a140feea19858912cc2de406e176ae8ce6c392 (diff) |
dviout moved to tlpkg/dviout; dviout.vbs changed accordingly.
git-svn-id: svn://tug.org/texlive/trunk@10733 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/dviout/HYPERTEX/myhyper.sty')
-rw-r--r-- | Master/tlpkg/dviout/HYPERTEX/myhyper.sty | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/tlpkg/dviout/HYPERTEX/myhyper.sty b/Master/tlpkg/dviout/HYPERTEX/myhyper.sty new file mode 100644 index 00000000000..1b3ccd20279 --- /dev/null +++ b/Master/tlpkg/dviout/HYPERTEX/myhyper.sty @@ -0,0 +1,47 @@ +% This is a LaTeX style file for HyperTeX +% 1996 written by Okumura +% 1996 modified by SHIMA +% 1997/99 modified by Ohishi +% +% \href +% \name +% \img +% \base +% +% \goto % 1996 added by SHIMA +% +%%%%%% Example %%%%%% +% +% If you click \href{#foo}{here}, +% you will jump to \name{foo}{this place}. +% +% The above is equavalent to +% +% If you click \goto{foo}{here}, +% ... +% +% If you click \href{http://xxx.toto-u.ac.jp/ftp.html}{here}, +% you will jump to http://xxx.toto-u.ac.jp/ftp.html. + +\edef\hypert@mp{\catcode`\noexpand\#=\the\catcode`\#}% +\catcode`\#=12 +\def\hyper@sh{#}% +\hypert@mp +\let\hypert@mp=\relax + +\def\goto{\leavevmode\begingroup\@sanitize\@goto} +\def\@goto#1{\special{html:<a href="\hyper@sh#1">}\endgroup \@@href} + +\def\href{\leavevmode\begingroup\@sanitize\@href} +\def\@href#1{\special{html:<a href="#1">}\endgroup \@@href} +\def\@@href#1{#1\special{html:</a>}} + +\def\base{\leavevmode\begingroup\@sanitize\@base} +\def\@base#1{\special{html:<base href="#1">}\endgroup} + +\def\img{\leavevmode\begingroup\@sanitize\@img} +\def\@img#1{\special{html:<img src="#1">}\endgroup} + +\def\name{\leavevmode\begingroup\@sanitize\@name} +\def\@name#1{\special{html:<a name="#1">}\endgroup \@@name} +\def\@@name#1{#1\special{html:</a>}} |