\documentclass[]{article}

% Use utf-8 encoding for foreign characters
\usepackage[utf8]{inputenc}

\usepackage{fullpage}
\usepackage[colorlinks,urlcolor=black]{hyperref}

\newcommand{\link}[1]{\textsf{\href{#1}{#1}}}

\newcommand{\ulink}[1]{\textsf{\underline{\href{#1}{#1}}}}

\newenvironment{cmmd}{\vskip 0.15cm}{\vskip 0.25cm}

\begin{document}

	\large 
	
	\section*{Nicer links}
	
	The following describes a two-line method to nicer hyperlinks in \LaTeX~documents.
	
	\subsection*{Preamble}

	You will need to declare the following in your document preamble.
	
	\begin{itemize}
		
		\item Create black hyperlinks:
				\begin{cmmd}
					\texttt{$\backslash$usepackage[colorlinks,urlcolor=black]\{hyperref\}}
				\end{cmmd}

		\item Create \emph{sans-serif} hyperlinks:
				\begin{cmmd}
					\texttt{$\backslash$newcommand\{$\backslash$link\}[1]\{$\backslash$textsf\{$\backslash$href\{\#1\}\{\#1\}\}\}}
				\end{cmmd}
										
		\item Alternatively, create sans-serif \emph{underlined} hyperlinks:
				\begin{cmmd}
					\texttt{$\backslash$newcommand\{$\backslash$ulink\}[1]\{$\backslash$textsf\{$\backslash$underline\{$\backslash$href\{\#1\}\{\#1\}\}\}\}}
				\end{cmmd}
				
	\end{itemize}
	
	\subsection*{Applications}
	
	You now have three different methods to create a hyperlink.
	
	\begin{itemize}

		\item
		
		Using \texttt{$\backslash$url}
		
		Available at \url{http://cnn.com/}.

		\item
		
		Using \texttt{$\backslash$href}
		
		Available at \href{http://cnn.com/}{http://cnn.com/}.

		\item
		
		Using \texttt{$\backslash$link}
		
		Available at \link{http://cnn.com/}. (This is what I normally use.)

		\item
		
		Using \texttt{$\backslash$ulink}
		
		Available at \ulink{http://cnn.com/}.

	\end{itemize}
	
	\subsection*{Drawbacks}
	
	\texttt{$\backslash$href} does not wrap text, so \texttt{$\backslash$link} and \texttt{$\backslash$ulink} do not either.
	
	\subsection*{Further reading}
	
	Christopher Harrison has summarised how custom commands work in \LaTeX in his online tutorial.
	See \link{http://www.chrisharrison.co.uk/xophbook/mybooks/tex/customise.html}.
	
\end{document}
