[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#287309: tetex-bin: example using html \special is a bit off



On 26.12.04 Sanjoy Mahajan (sanjoy@mrao.cam.ac.uk) wrote:

Hi,

Would you be so kind to give me a minimal example? I've tried with:

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\special{html:<a href="#paradise">}Paradiselink\special{html:</a>}
\newpage
\special{html:<a name="paradise">}Paradise\special{html:</a>}
\end{document}

In this case I simply get an "Anchor ##paradise not found" when
viewing the dvi file using xdvi. Procession the dvi file with dvips
or using pdflatex (and xpdf) gives me no links at all.

hille@preusse:~$ strings a.dvi |grep parad
html:<a href="##paradise">
html:<a name="paradise">

 article.cls    2004/02/16 v1.4f Standard LaTeX document class
  size10.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
hyperref.sty    2003/11/30 v6.74m Hypertext links for LaTeX
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
  pd1enc.def    2003/11/30 v6.74m Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
     url.sty    2004/03/15  ver 3.1  Verb mode for urls, etc.
  hdvips.def    2003/11/30 v6.74m Hyperref driver for dvips
 pdfmark.def    2003/11/30 v6.74m Hyperref definitions for pdfmark specials
 nameref.sty    2003/12/03 v2.21 Cross-referencing by name of section

>   `name'
>        Defines URL targets in your TeX documents, so links can be
>        resolved. For example:
> 	    \special{html:<a name="#paradise">}Paradise\special{html:</a>}
> 	    is exactly where you are right now.
>        This will resolve an `href="paradise"'.
> 
And yes, this is incorrect, as xdvi tries to open the file
"paradise", which is not intended.

Kind Regards,
  Hilmar Preuße
-- 
sigmentation fault



Reply to: