summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/aeb-mlink/mlink_tst_url.tex
blob: 2e966d63f7fb677af76c841baaac4c746b98b6d7 (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
\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,.5,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?

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.


\end{document}