diff options
Diffstat (limited to 'macros/latex/contrib/aeb_mlink/examples/mlink_tst_url.tex')
-rw-r--r-- | macros/latex/contrib/aeb_mlink/examples/mlink_tst_url.tex | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/macros/latex/contrib/aeb_mlink/examples/mlink_tst_url.tex b/macros/latex/contrib/aeb_mlink/examples/mlink_tst_url.tex new file mode 100644 index 0000000000..926dda1b14 --- /dev/null +++ b/macros/latex/contrib/aeb_mlink/examples/mlink_tst_url.tex @@ -0,0 +1,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} |