File: hyperref.tex

package info (click to toggle)
latex2rtf 2.3.18a-5
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,392 kB
  • sloc: ansic: 20,424; makefile: 660; sh: 478; perl: 22
file content (75 lines) | stat: -rwxr-xr-x 1,908 bytes parent folder | download | duplicates (7)
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
70
71
72
73
74
75
\documentclass{article}
\usepackage{hyperref}
\usepackage{nameref}
\newif\iflatextortf

\begin{document}

\newcommand{\myref}[1]{`\nameref{#1}' (see p.\pageref{#1})}

\iflatextortf
\newcommand{\myurl}[1]{\nolinkurl{#1}}
\let\letequalurl=\nolinkurl
\let\leturl\nolinkurl
\else
\let\myurl\url
\let\letequalurl=\url
\let\leturl\url
\fi

\section{The first section}
hello a 
\href{http://www-fourier.ujf-grenoble.fr:80/cgi-bin/zbfr/ZB/math-fr.html?AU=Taylor,+R&format=complete&type=html&maxdocs=10}{weird}
reference

a second reference 
\href{http://www.tug.org/}{tug}
to the \TeX{} website 

which when applied as follows:

\section{Random Stuff}\label{randomlabel}
This is very dependent on \myref{randomlabel}.


\subsection{url}
We can use the \verb#\url# command to do this as
well like so: \url{http://www.tug.org}.  

The \verb#\nolinkurl{}# is similar but non-functional: \nolinkurl{http://www.tug.org}. 

Now this link \myurl{http://latex2rtf.sourceforge.net/some%20link.html} does not really
exist, but it should show up in the RTF document without a hyperlink.  It should still
have a link in the PDF file created using \texttt{pdflatex}.

\section{About paragraph breaks}

There should be a paragraph break between these two urls.

\url{http://www.tug.org/one}. 

\url{http://www.tug.org/two}. 

%\hypertarget{TestTarget}{goodbye}

\end{document}

\section{Testing the let command}

These don't work yet, that is why there is an \verb#\end{document}# above.

\iflatextortf
\let\letequalurl=\nolinkurl
\let\leturl\nolinkurl
\else
\let\letequalurl=\url
\let\leturl\url
\fi

Here is a test of the \verb#\let\letequalurl=\nolinkurl# implementation.  The following shouls be
a simple url without a link. \letequalurl{http://simple}

Here is a test of the \verb#\let\leturl\nolinkurl# implementation.  The following shouls be
a simple url without a link.  \leturl{http://just.as.simple.com}

\end{document}