changeset 64:23bb3a56e640

Color URLs as well. Do so without enabling colorlinks for hyperref, since that will color internal links as well.
author Martin Geisler <mg@lazybytes.net>
date Sat, 22 Aug 2009 22:52:28 +0200 (2009-08-22)
parents 271ab0acd5d3
children c46921c0249e
files mercurial.tex
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial.tex
+++ b/mercurial.tex
@@ -1,4 +1,4 @@
-\documentclass[t,noamsthm]{beamer}
+\documentclass[t,noamsthm,xcolor=dvipsnames]{beamer}
 
 \usepackage{listings}
 \lstdefinelanguage{hgshell}{
@@ -77,6 +77,7 @@
 
 \newcommand{\cmd}[1]{\texttt{\color{green!40!black}#1}}
 \newcommand{\ext}[1]{\texttt{\color{orange!50!red}#1}}
+\newcommand{\curl}[1]{\textcolor{CornflowerBlue!60!black}{\url{#1}}}
 
 \begin{document}
 
@@ -1107,13 +1108,13 @@
 \begin{frame}{More Information}
   \begin{itemize}
   \item Mercurial homepage:\\
-    \url{http://mercurial.selenic.com/}
+    \curl{http://mercurial.selenic.com/}
   \item \textsl{Mercurial: The Definitive Guide}:\\
-    \url{http://hgbook.red-bean.com/}
+    \curl{http://hgbook.red-bean.com/}
   \item Some free Mercurial hosting sites:\\
-    \url{http://www.bitbucket.org/}\\
-    \url{http://code.google.com/}\\
-    \url{http://sourceforge.net/}\\
+    \curl{http://www.bitbucket.org/}\\
+    \curl{http://code.google.com/}\\
+    \curl{http://sourceforge.net/}\\
   \end{itemize}
 \end{frame}