{urls} is about handling URLs in (La)TeX documents, commonly by using the \url macro provided by the {url} and {hyperref} packages.

learn more… | top users | synonyms

142
votes
6answers
210k views

How to add a URL to a LaTeX bibtex file?

I'm using bibtex for my bibliography in LaTeX. I have some URL's I need to cite in the paper. How do I add URLs into the .bib file? A typical section in my .bib file looks like this: ...
100
votes
11answers
48k views

Forcing linebreaks in \url

I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the ...
49
votes
3answers
9k views

Biblatex: Get rid of ISSN, URLs and DOIs in references

My .bib files are generated by Mendley desktop and usually contain URLs, ISSN and DOIs, but I don't want those to be displayed in my list of references. How can I get rid of them (short of deleting ...
42
votes
2answers
28k views

How does one typeset a URL?

I'd like to insert a URL into this document. Is there a "correct" way of doing that? If so, is there a way to turn it into a link inside the final pdf generated with pdfTeX or XeTeX?
34
votes
3answers
3k views

biblatex: make title hyperlink to DOIs, URL or ISBN

This is a follow up question to biblatex: Make title hyperlink to doi url (if available). My reference database contains some DOI codes, but mainly normal URLs and some ISBN/ISSN codes. What I would ...
27
votes
2answers
13k views

Line breaking of URLs in bibliographies

I have a problem with the line break of an URL. The URL can´t break correct and extends into the border. I´ve tried some things. Amongst others I loaded the package breakurl, but without any success. ...
27
votes
2answers
21k views

URL with tilde character?

I'm trying to make a URL with a tilde character (~) in it: \usepackage{url} ... \url{http://lyle.smu.edu/~tspell/jaws} It looks right in the resulting PDF, but when clicking on it the browser goes ...
26
votes
5answers
7k views

Why are URLs typeset with monospace fonts by default?

When typesetting URLs in LaTeX using the url package, they are set in a mono space font by default. While I just accepted that as a fact for a long time, I am now starting to wonder why? In Browsers, ...
26
votes
2answers
15k views

How to style text in hyperref \url?

I want to set color, font and similar style attributes for the text in a \url from the hyperref package. How do I go about doing it? All I have found are comments saying that I probably don't want to ...
26
votes
9answers
19k views

Disabling URLs in bibliography

I use Mendeley for article management and export the related items to a bib file for referencing in LaTeX documents. I use IEEEtran style and see that the bibliography items include URLs which I don't ...
26
votes
2answers
448 views

Automating the appearance of email addresses as images

Publishing pdf manuscripts on the web with emails embedded in the file results in spam. More generally, I am looking for a way to automate the conversion of a string to an image. It's quite easy to ...
25
votes
2answers
824 views

Auto generate List of \url usages within document

I am writing a thesis and I have made extensive use of hyperlinking through \url or \url within a \footnote. Now I would like to add a list (kind of like a simplified bibliography where each link ...
25
votes
5answers
3k views

URL field only for certain reference types with biblatex

I'm using biblatex for my references. My bib file includes many references which I have imported from different sources. Not all references have a url entry and some of them are bogus. I now like to ...
25
votes
4answers
2k views

Redundancy in bib file: conditionally suppress url if same as doi?

Mathscinet gives bibtex entries with both a doi and a url field included. Typically they look something like @article {some-article, […] DOI = {10.1016/j.apal.2008.12.003}, URL = ...
24
votes
2answers
5k views

Getting percent sign into an URL in a footnote

I'm using the url package. Now, I have some some url with a percent sign in it and want to place it in a footnote. When I let the % where it is, I get a comment, and the whole thing fails to compile ...
23
votes
1answer
8k views

Underfull \hbox in bibliography

I am getting lots of "Underfull \hbox" warnings that point to the *.bbl file. It looks like these messages appear only when URLs are very long, like in the below example: @techreport{nistguidesec, ...
22
votes
4answers
35k views

URL of cited web site in bibliography

I am using natbib with the chicago style as bibliography style. I am trying to cite a web site, but in the bibliography the URL (given in the BibTeX entry) is not printed. Is there a simple solution ...
22
votes
1answer
8k views

Typeset URL in a non-typewriter font

I use \usepackage{url} and \url{…} to typeset URLs, but the typewriter font stands out a little too much. How can I have the URLs typeset in a different font?
21
votes
2answers
11k views

How to deal with bibliography items containing long URLs?

A picture is worth a thousand macros: I don't blame LaTeX for having difficulty in formatting this entry. What can I do, however, to alleviate the effects and avoid the Word-like indentation? A ...
20
votes
1answer
4k views

Clickable “tel:” URL for TeX resume

I need to make my telephone number clickable. You might be familiar with this in Gmail's clickable phone numbers that dial out to your mobile phone, for example. I'm working on my resume, and I'm ...
20
votes
1answer
5k views

URL line breaks with biblatex

How do I allow long URLs to have line breaks at any point. This is in the bibliography not the main text. I am trying to save space so don't want extra spaces to be added to make it only break at ...
19
votes
2answers
14k views

How to break long url in an item

I have an enumerate. In an item I have a long url. I use the package breakurl and it works fine outside the enumerate but not in the item. \usepackage[margin=3cm]{geometry} \usepackage{hyperref} ...
19
votes
1answer
5k views

Avoiding “\Url Error ->\url used in a moving argument.” in a custom environment

I have a document I'm trying to render using two classes -- my university's dissertation .cls, and tufte-latex (my uni's styleguide is ugly, and I want to make a pretty-print version for my own ...
18
votes
1answer
2k views

How to prevent \url from removing the spaces in a path?

The following code \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{"a b c.tex"} one two \end{filecontents*} \usepackage{listings} \usepackage{hyperref} \begin{document} ...
18
votes
2answers
6k views

What is a good font for URLs to go with Palatino for the main text?

I'm looking for a nice font to use for my \url{...}s that goes well with Palatino. Courier does not look good at all. It's much too light. Helvetica (scaled .92) looks pretty good, but the ~ looks ...
18
votes
1answer
1k views

Multiple doi, url, and eprint entries in biblatex

I'm in the process of writing a biblatex style file to support the on-line journal Theory of Computing. The journal has been using BibTeX for years, and I am looking forward to the flexibility ...
16
votes
2answers
528 views

Crawler Resistance Email Address

So I have my CV publicly available on my website and it has both my email address on it, and the email addresses of my references. In the interest of protecting my self and them from spam, I was ...
15
votes
4answers
13k views

Missing $ inserted issue

Trying to get my dissertaion sorted (due in a few hours) and I keep getting this error: ! Missing $ inserted. <inserted text> $ l.190 ... pp. 225--236, ...
15
votes
2answers
424 views

How to reduce the space between two slashes when using \url?

This is a follow-up question to Space between two slashes. Bianca Lobo's answer (defining a \twobar command with proper kerning) is nice; however, it doesn't work in the argument of the \url command ...
15
votes
2answers
2k views

Two questions on biblatex: remove parentheses on urldate, and change “url” label

I have a couple of questions on biblatex. First: When I use the urldate field in a biblatex entry, I get as a result the following string (e.g.): . . . (visited on 01/02/2012). With ...
15
votes
1answer
1k views

How to break long URLs using common hyphenation but adding a line feed indicator?

I saw several questions like this one that request a solution for breaking apart URLs. I wonder if it is possible to hyphenate the words in a URL as it happens in normal text (i.e., breaking apart ...
14
votes
1answer
6k views

Line breaks of long URLs in bibliography?

I have some long URLs which doesn't contain special "line break characters" like "-" or "/". How can I automatically break these URLs? \documentclass{scrreprt} \usepackage[ngerman]{babel} ...
14
votes
2answers
8k views

Hyperref + \url: long URL with dashes won't break

I've discovered a rather weird behaviour of PdfLaTeX. In this example \documentclass{article} \usepackage[breaklinks]{hyperref} \begin{document} ...
14
votes
1answer
3k views

Breaking links and escaping characters in bibliographies with backlinks and ocgcolorlinks set

I have the following situation: I have to use the ocgcolorlinks option in hyperref, so that links are not broken. So I had the idea to set each char as a link with \href. After putting some code ...
14
votes
3answers
1k views

Hyperref: Scandinavian characters (æø) don't work in \url, hyperlink is wrong

Background A while ago it became possible to use the letters æ, ø and å in URLs, and some websites, like the encyclopaedia Store Norske Leksikon, has made use of this. Recently, a question was ...
14
votes
1answer
725 views

(Another) problem with url hyphenation in bibliography

What I am about to ask has already been asked many times, but nothing seems to work for me so far. Basically I am having troubles in getting urls hyphenated correctly in the bibliography. I modified ...
13
votes
2answers
2k views

How to use multiple URLs for one bibtex reference?

I have used this BibTeX reference in my work @Misc{oai:CiteSeerPSU:562256, title = "Gerris: {A} Tree-Based Adaptive Solver For The Incompressible Euler Equations In Complex Geometries", ...
13
votes
2answers
3k views

Obey spaces with URL package (path command)

Background Using the \path command from the URL package to mark-up directory paths. Some of the paths have spaces. Problem The preamble is set to: \usepackage{algorithm} \usepackage{booktabs} % ...
13
votes
2answers
6k views

moderncv : \homepage - can't handle a tilde

I'm using the latest version of moderncv from CTAN. When I set : \homepage {homepage: my.homepage.url/~username/} The tilde doesn't show up. So I tried: \usepackage{textcomp} \homepage {homepage: ...
12
votes
2answers
845 views

Biblatex: use doi only if there is no URL

Is there a way to insert a doi of an entry only in case it is missing a URL field? It happens a lot that the doi and URL are essentially the same, and inserting them both yields a redundancy. I am ...
12
votes
2answers
265 views

How to avoid the “http:” part in hyperref's \url?

is it possible to use the \url command from the hyperref package with "shorthand" URLs, e.g. \url{ipython.org} instead of \url{http://ipython.org} ? It seems that the former would only link to ...
12
votes
1answer
10k views

Beamer-Button which opens a browser with an URL

is it possible to use a beamerbutton for presentations which would open a browser and a given URL?
12
votes
2answers
4k views

URL linebreak in footnote

I use a footnote with a too long url, so that I'd like to see a linebreak. The url package does linebreaks automatically as far as i know, but in the footnote it won't do it. Anyone have a solution to ...
12
votes
3answers
481 views

Test the hyperlinks of a pdf document [closed]

Is there any way to test the hyperlinks of a pdf file ? Suppose I have a pdf file containing a large number of hyperlinks, can I test automatically the response I will have when following those links ...
11
votes
2answers
655 views

Type '{' '}' in url

I would like to type brace symbol inside a URL using the url or hyperref package. Is there a way to do that ? (the idea is to typeset REST-like URL, as for example, http://foo.bar/orders{orderID}
11
votes
1answer
2k views

Why does url.sty appear in 3 different places in the TeX Directory Structure?

On my up-to-date MiKTeX system, there is a copy of url.sty in three different places in the TDS: texmf\tex\xelatex\xetexurl (part of MiKTeX package xetexurl, packaged on 2007-Sep-05) ...
11
votes
1answer
3k views

Url with fragments in bold

I need to write document containing a lot of URLs but some fragments of these URLs have to be in bold. How can I accomplished this? For urls I use \nolinkurl but I can't use \bf in it.
11
votes
2answers
820 views

How to emulate \url hyphenating without using the url package?

I'm forced to avoid the url package in a proceedings paper (!) but my bibliography includes a long URL. I already \newcommand{\url}[1]{{\tttext{#1}}} but the URL spills over to the margin as it ...
11
votes
1answer
397 views

Biblatex clear URL field for entries in a certain category

Can you please help me to process biblatex entries. I want to... Print separate bibliographies for online and offline entries Both @online entries and @misc entries with a url-field should go into ...
11
votes
2answers
13k views

Inserting a single hyperlink in LaTeX

I want to insert a single URL that is clickable in the resulting PDF file I produce, but when I use the hyperref package, that turns every use of \ref, the table of contents, etc. into a hyperlink in ...
http://tex.stackexchange.com/questions/tagged/urls?sort=votes&pagesize=15
tex.stackexchange.com
crawl=CC-MAIN-2015-48
176386
application/http; msgtype=response
sha1:XOJ22AVSPCHW6STO2JYJG5NIPYFZEKH6
<urn:uuid:f450cfa5-2227-4748-a2f3-f0884e8fa2b6>
2015-12-01T22:07:46Z
104.16.117.182
sha1:CRWG3UF5E35EOBD3YMHQL5QTL63SMVT5
<urn:uuid:f43da990-5c0f-4968-8431-676c773bcb66>
http://tex.stackexchange.com/questions/tagged/urls?sort=votes&pagesize=15
response
<urn:uuid:93e38785-623d-4642-8956-c1422a1f71f5>
robots: classic
hostname: ip-10-71-132-137.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-48
operator: CommonCrawl Admin
description: Wide crawl of the web for Nov 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf