{urls} is about handling URLs in (La)TeX documents, commonly by using the \url macro provided by the {url} and {hyperref} packages.
63
votes
5answers
54k 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:
...
45
votes
7answers
12k 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 ...
20
votes
2answers
1k 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 ...
20
votes
2answers
4k views
How does one insert a URL correctly?
I'd like to insert a URL. 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?
18
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 = ...
18
votes
2answers
2k 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 ...
17
votes
2answers
4k 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. ...
17
votes
1answer
1k 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 ...
17
votes
2answers
3k 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 ...
16
votes
3answers
691 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 ...
16
votes
1answer
3k 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,
...
16
votes
2answers
3k 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 ...
15
votes
5answers
1k 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, ...
15
votes
2answers
255 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
1answer
312 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}
...
15
votes
1answer
387 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
7k 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 ...
14
votes
1answer
360 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 ...
13
votes
4answers
4k 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
2k 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 ...
11
votes
3answers
5k 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 ...
11
votes
3answers
692 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 ...
11
votes
2answers
154 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 ...
11
votes
1answer
1k 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?
11
votes
3answers
2k 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 ...
10
votes
2answers
433 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 ...
10
votes
1answer
2k 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}
...
10
votes
2answers
434 views
How to break URLs when footnotes are on same line?
Question Footnotes on the same line revealed that it is a good idea to use \usepackage[para]{footmisc}. However, this does not seem to work with URLs:
\documentclass{article}
\usepackage{hyperref}
...
10
votes
1answer
285 views
biblatex: only wrap url string in \url if it is not already wrapped that way
I am using a customized BibLaTeX bibliography style in which I use the following macro: \newbibmacro{archive}[1]{\\\textsc{Archived:}\ \url{#1}}.
I use this to format certain urls, it is called from ...
9
votes
3answers
473 views
Hyperref using the wrong language script for \url?
In a mixed language document, I try to use a URL. Here is minimal input
demonstrating
\documentclass{article} % compile with xelatex
\usepackage{hyperref}
\usepackage{polyglossia}
...
9
votes
2answers
481 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 ...
9
votes
2answers
403 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",
...
9
votes
1answer
147 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 ...
9
votes
1answer
215 views
Suppress *some* URLs with biblatex nature.bbx class
I am using a Nature biblatex style with bibtex to typeset bibliography and would like to suppress URLs from appearing in the "paper" entry types (like books, journal articles and proceedings). If I ...
9
votes
1answer
64 views
Prohibiting line break at specific point of url while using \url command
I have a \url{some.edu/page} that breaks just before .edu I would like to have it break at the / at worst, or not at all. How can I do that?
9
votes
2answers
307 views
url in Bibliography without period at the end
I'm compiling a document with the essentially the following bib entry:
@misc{name,
title = {Title of Web Page},
howpublished = {\url{http://somethinghere.com}}
}
It compiles fine, but a ...
8
votes
2answers
219 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 ...
8
votes
1answer
618 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
...
8
votes
1answer
1k 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?
8
votes
1answer
1k 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.
8
votes
1answer
2k 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 ...
8
votes
2answers
194 views
How to make a switch for print vs. display versions of a document with respect to links/URLs
I want the print version of a document have links or URLs written out but the online version have the abbreviated tag/name. So the switch, set at the beginning, will choose between two alternatives, ...
8
votes
1answer
126 views
Long URL in Bibliography section exceeds the bounds of the page
I have an external bib where I put a reference to an external URL.
@misc{myreference,
author = {The Author},
title = {The Title},
howpublished = ...
8
votes
2answers
1k views
Flash animation and beamer
I want to have a flash file (.swf) in my beamer document on a Linux machine, using pdfLaTeX and Evince.
Is there a way to make a link to that file which runs an external player or even better, is it ...
7
votes
5answers
565 views
How does one automatically escape a sequence of text, like “verbatim” but without the formatting?
I want to escape TeX codes on a range of text; this is for a macro providing slightly neater URL formatting. The code I have now is,
\newcommand{\serifurl}[2]{\textsf{\href{#1://#2}{#2}}}
where the ...
7
votes
2answers
461 views
Line overflow with long filenames and urls
Consider the following text. Here /etc/postgresql/8.4/main/pg_hba.confoverflows into the margin, and is hypenated. /var/lib/pgsql/data/pg_hba.conf is also hyphenated, but does not overflow.
So, I was ...
7
votes
4answers
3k 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}
...
7
votes
1answer
1k 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 ...
7
votes
2answers
3k 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: ...
7
votes
2answers
1k 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}
% ...

