The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
|
\documentclass{article}
\usepackage{url}
\begin{document}
\section{Basic URLS}
Path url: \path{/foo/bar/baz} or \path|/foo/bar/baz|
\section{Verbatimness}
Special characters neutralized:
\def\baz{index.html}
And even though \verb|\baz| gives \baz;
\path{C:\foo\bar\baz}
\section{Styles}
\DeclareUrlCommand\email{\urlstyle{sf}}
Email: \email{myself%node@gateway.net} or \email|myself%node@gateway.net|.
\section{Defined urls}
\urldef{\myselfa}\url{myself%node@gateway.net}
\urldef{\myselfb}\email|myself%node@gateway.net|
Myself: \myselfa\ or \myselfb.
\section{Bracketting}
\DeclareUrlCommand\fancyurl{\def\UrlLeft{<url:\ }\def\UrlRight{>}\urlstyle{tt}}
\end{document}
|