summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/aeb-mlink/examples/mlink_tst_url.tex
blob: 926dda1b14e42df779262981416d730291a40883 (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
\documentclass{article}
% compile with or without the colorlinks option
\usepackage{xcolor}
\usepackage[colorlinks]{hyperref}
\usepackage{aeb_mlink}

\definePath{\urlAcroTeXBlog}{http://www.acrotex.net/blog}
\definecolor{webgreen}{rgb}{0,.6,0}

\parindent0pt \parskip3pt

\begin{document}

In this demo file we test the \verb~\mlurl~ command.

OK, let's see if we still wrap around the line
\mlurl{http://www.math.uakron.edu/~dpstory}. Now let's try another link, the following URL
\mlurl[\S{U}\W{1}\Color{0 .6 0}\linktxtcolor{webgreen}]{http://www.acrotex.net}, does it wrap? Yes,
but did the change in color also change the color of the next link: \setLink[\A{\JS{app.alert("Splendid, you clicked a link, a link to nowhere. The color of the link is as it should be.")}}\Color{1 0 0}]{Go There!}

Let's try a footnote.\footnote{OK, lets see if we still wrap around the line, does it work?
\mlurl{http://www.math.uakron.edu/~dpstory}.}

Here, we reference a \textsf{AeB Pro} articles \mlurl{\urlAcroTeXBlog/?tag=aeb-pro}.

If the URL contains spaces, uses URL encoding, see \mlurl{http://www.w3schools.com/tags/ref_urlencode.asp}, for example.
In the next example, we use \verb~\%20~ for space, the normal \texttt{\%20} is a problem because \texttt{\%}
is still the {\LaTeX} comment character.

Try a PDF with search: \mlurl{http://www.math.uakron.edu/~dpstory/acrotex/aeb_man.pdf#page=8%
&search=AcroTeX\%20web\%20exerquiz}.

The comment character can be used to wrap a long URL to the next line without effecting the address,
as is done in the source file.

Let's take that long URL and break it across the page.

\vspace{23\baselineskip}

%\turnSyllbCntOn


Try a PDF with search: \mlurl[\mlcrackat{8}]{http://www.math.uakron.edu/~dpstory/acrotex/aeb_man.pdf#page=8%
&search=AcroTeX\%20web\%20exerquiz}

That's a long URL that has been broken across the page boundary.

\end{document}