diff options
Diffstat (limited to 'texmf-dist/doc/latex/aeb-mlink/mlink_tst_url.tex')
-rw-r--r-- | texmf-dist/doc/latex/aeb-mlink/mlink_tst_url.tex | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/aeb-mlink/mlink_tst_url.tex b/texmf-dist/doc/latex/aeb-mlink/mlink_tst_url.tex new file mode 100644 index 00000000..2e966d63 --- /dev/null +++ b/texmf-dist/doc/latex/aeb-mlink/mlink_tst_url.tex @@ -0,0 +1,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} |