Tag Info

Hot answers tagged

7

\documentclass{article} \usepackage{hyperref} \newcommand\rurl[1]{\xurl#1\empty\empty\empty\empty\empty\xurl} \def\xurl#1#2#3#4#5#6\xurl{% \def\tmp{#1#2#3#4#5}% \href{\ifx\tmp\xurlhttp \else http://\fi#1#2#3#4#5#6}% {\nolinkurl{#1#2#3#4#5#6}}% } \def\xurlhttp{http:} \begin{document} \rurl{ipython.org}\\ \rurl{http://ipython.org} \end{document}


4

LaTeX will refuse to break a 'word' if it contains, among a few other characters, a /. This has very solid reasoning that's outside the scope of this answer, but the url LaTeX package will handle these things very cleanly. Instead of typing in the file path directly, use Insert -> URL. This will (presumably) wrap the argument in \url{<my text ...


2

You can use \hypersetup{colorlinks,urlcolor=blue} \addtobeamertemplate{headline}{\hypersetup{linkcolor=.}}{} \addtobeamertemplate{footline}{\hypersetup{linkcolor=.}}{} to set the linkcolor to the current color . inside the templates headline and footline. Code: \documentclass[]{beamer} \usepackage{beamerthemebars} \usepackage{lmodern} ...


2

Add \AtEveryCitekey{\clearfield{url}} to your preamble. \documentclass{article} \usepackage[style=verbose-ibid]{biblatex} \AtEveryCitekey{\clearfield{url}} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{A01, author = {Author, A.}, year = {2001}, title = {Alpha}, url = ...


1

To use url with a plain bibliography style you can use this format: @misc{Doe:2009:Online, author = {author}, title = {Title of Citation}, year = {2010 (accessed December 7, 2014)}, howpublished = "\url{http://www.myurl.com}"} Additionally you need to add the url package \usepackage{url} If you want to use the url attribute in you need to use natbib ...



Only top voted, non community-wiki answers of a minimum length are eligible