{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

65
votes
9answers
22k 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 ...
15
votes
3answers
12k views

URL of cited web site in bibliography

I am using natbib und 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 ...
17
votes
1answer
3k 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 ...
25
votes
2answers
2k 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 ...
28
votes
3answers
3k 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 ...
22
votes
2answers
7k 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. ...
19
votes
1answer
12k 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 ...
11
votes
3answers
3k views

Option to break urls with carriage-return symbol?

There are several ways to get long, uncooperative URLs to line-break in LaTeX. If you're using pdfLaTeX, then the hyperref package can break them across lines for you, roughly after any /. If you ...
22
votes
4answers
1k 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 = ...
33
votes
2answers
15k 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?
19
votes
4answers
1k 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 ...
19
votes
2answers
5k 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 ...
11
votes
1answer
1k 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 ...
8
votes
1answer
821 views

Avoiding inelegant splits on URLs

I am using biber and biblatex to process my bibliography. URLs are handled with breaklinks=true under hyperref. I have found an inelegant breakup of a hyperlink resulting in a reference like this ...
17
votes
1answer
3k 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 ...
6
votes
1answer
207 views

Omitting fields in Bibliography

When building my bibliography using the \bibliographystyle{plainnat} The output looks like [88] G. R. Ruetsch and M. R. Maxey. Small-scale features of vorticity and pas- sive scalar fields ...
4
votes
1answer
327 views

different font while using url

I'm having troubles while using the url command in my bibliography. I mean: 1) \bibitem{[8]} ...
4
votes
1answer
3k views

hyperref url breaking

References: Forcing linebreaks in \url So, in a plain document with \usepackage{url} \begin{document} You can find this at \url{very-long-url}. \end{document} the URL will be broken down, e.g. ...
14
votes
2answers
4k 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 ...
89
votes
6answers
101k 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: ...
13
votes
2answers
1k 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 ...
11
votes
2answers
256 views

Creating a URL downloading command to be used with e.g. \includegraphics

We were just talking about an idea that may be a little further out there. Would it be possible to patch URL support into graphicx.sty or is there a package that would support this on a wider scale (I ...
6
votes
2answers
3k views

Url references in bibliography

I am using TexMaker. I would like to know how to include web site references in the .bib file. I am using bibliography style , alpha. How does the website reference appear in the bibliography
13
votes
2answers
384 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 ...
10
votes
1answer
2k 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.
2
votes
1answer
2k views

Problem with escaped characters in bibliography when using Mendeley, natbib & url

This is my first question here, so apologies if I miss any conventions. I'm writing a dissertation in LaTeX. My sources are in Mendeley, which is generating a BibTeX file. I'm using the natbib ...
5
votes
2answers
887 views

Biblatex: URL-breaking not working in DVI-mode

I'm preparing my bibliography and noticed that biblatex-printbibliography produces Overfull \hbox several times. Examples (gray lines indicates text margins, red line is the physical page margin): ...
20
votes
6answers
9k 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 ...
13
votes
1answer
3k 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} ...
6
votes
2answers
4k views

Get rid of ISSN, URLs and DOIs in references

I am having the same problem as described here (i.e., I get unwanted URLs, DOIs, etc showing up in my reference section): Biblatex: Get rid of ISSN, URLs and DOIs in references Two caveats: I am ...
17
votes
1answer
748 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} ...
8
votes
1answer
2k 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 ...
3
votes
1answer
460 views

How do I turn titles into hyperlinks in verbose mode using BibLaTeX and hyperref?

I'm using hyperref and BibLaTeX's verbose style, and would like for bibliography entries and initial (but not subsequent) citations, instead of printing out a URL, to use the URL to make the titles of ...
10
votes
2answers
618 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 ...
7
votes
1answer
101 views

How to test if I'm currently in a footnote or not

Is there a way to test if the current point is inside or outside a footnote? The use case I have in mind is to provide two versions of a document, a "screen" one and a "printed" one and I'd like in ...
7
votes
4answers
6k views

How to allow line break in a long hyperlink in a PDF compiled by latex-dvips-ps2pdf?

I am using latex-dvips-ps2pdf steps with -Ppdf option passed to dvips. The following code snippet \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage{breakurl} ...
6
votes
1answer
1k views

Special footnotes for URL

I've made one command so as to not polluate text with web links. I would like to improve my command so as to do the following things. I would like that the footnotes used for URL have their own ...
5
votes
1answer
667 views

URLs in bibliography: LaTeX not breaking line as expected

I am trying to include long URLs in a bibliography, but those often overflow into the margin of the document. I have seen a number of questions about breaking URLs in bibliography, but after trying ...
5
votes
1answer
773 views

URL for “article” (and other) entries of the .bib file?

My .bib file contains the following entry: @Article{ LM11, title = "Name of paper", author = "Author A and Author B", journal = "Arxiv", year = "2011", url = "http://arxiv.org/PS_cache/arxiv/pdf/..." ...
3
votes
2answers
3k views

Bibtex entry with URL

I want to cite some lecture notes in my thesis where the main and only source is a webpage (including some PDFs which are the lecture notes). I am using Bibtex. I tried @webpage, like: ...
11
votes
3answers
847 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 ...
10
votes
2answers
2k 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} % ...
8
votes
2answers
412 views

How to write properly an accent in a web address?

I'm trying to write a hyperlink for a DjVu document that includes Latin accent, but for some reason, it only displays properly for the PDF one. Specifically, on my list of references (bibliography), I ...
7
votes
2answers
411 views

How to make a link open multiple pages when clicked?

I have to create a hyperlink which opens two links with one click. Is it possible using LaTeX? I'm using \href{<url>}{Open two links}.
3
votes
1answer
826 views

URL in new line Bibtex

I'm being asked to put the url field in a new line after the reference information. Is there a way to do this using IEEEtran? Edit: Noting the initial suggestions, you can find the idea of the task ...
3
votes
3answers
407 views

Expand directory names using nested macro definitions

Background Would like to use values from macros that reference other macros (n-levels deep) and apply their values to the \path command. Problem (Scenario A) The following works: \usepackage{url} ...
24
votes
2answers
437 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 ...
20
votes
1answer
5k 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, ...
18
votes
2answers
4k 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 ...
17
votes
1answer
663 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 ...