{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

11
votes
1answer
1k 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) ...
5
votes
1answer
2k 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 ...
4
votes
2answers
453 views

How to use \url in sloppypar to make url into multi-lines?

I met a problem about how to make the long link into a multi-lines one. The following is LaTeX code: \documentclass[11pt]{article} \usepackage[colorlinks,citecolor=black,linkcolor=black]{hyperref} ...
5
votes
1answer
760 views

\urlstyle{same} with apacite

I use apacite to create a bibliography according to APA guidelines for my article. Some of the references contain URLs. By default, LaTeX shows these in a different, monospace font than the rest of ...
1
vote
1answer
1k views

Insert footnotes with \href [duplicate]

This seems like a very common practice, but an hour of researching the question has gotten me nowhere. Is it not possible to insert the URI for the call to \href (#1) as a footnote? I've tried ...
5
votes
2answers
437 views

Problem with hyphen in URL when using fancyvrb with hyperref

There seems to be a problem using a hyphen in a URL inside a fancyvrb Verbatim environment when using the hyperref package. The Problem The following document: \documentclass{article} ...
7
votes
3answers
723 views

Using variables in a command results in ! Argument of \reserved@a has an extra }

I want to define a command, which separates a string an later adds a different \href to the first part, than to the second (e.g. \qname{foaf:Person}). But the code as I have it doesn't work, I get ! ...
4
votes
2answers
219 views

Unwanted extra spaces are included before and after backslashes in biblatex URL

I have a biblatex reference with a URL field. However, every backslash is surrounded by spaces. I am using \usepackage[sorting=nyt, citestyle=authoryear, bibstyle=authoryear, isbn=false, ...
5
votes
1answer
195 views

Not allowing hyphenation of urls in references

Is there a way to globally turn off hyphenation of links in bibliography? Current state doesn't please me: Minmal working example: \documentclass[12pt,a4paper,oneside]{report} \usepackage{url} ...
5
votes
1answer
139 views

Trying to suppress URLs with BibLaTeX, using a simple person's method

Based on other questions here, I'm trying to create an annotated bibliography, using \fullcite, where I want to suppress all URLs. I'm using what appears to be a simple solution, which works for a ...
5
votes
1answer
66 views

Spaces in references

I have the following reference : @misc{pcons, author = {Energy.Gov}, title = {{Estimating Appliance and Home Electronic Energy Use}}, Howpublished = ...
3
votes
2answers
2k views

Problem while using bibtex reference of a url

@online{senfus, title={article name}, url= {https://m**.s*/U****d/Om%20MPB/F****g/Kxyzy.pdf}, } While citing this reference, I am getting following error because of the term "%" in the url. ...
1
vote
1answer
772 views

Insert a url in a footnote [duplicate]

I would like to insert a url in a footnote but that isn't working. I use the following code : \documentclass[a4paper,11pt,final]{article} \usepackage{color} ...
7
votes
2answers
4k views

How to add “date accessed” or “date retrieved” in BibLaTeX? [duplicate]

I have the following in .bib file: @online{solarfarm, author = {Buckley, Alastair and nee Hall, Lisa Clark and {Colantuono, Giuseppe Everard}, Aldous}, file = ...
4
votes
1answer
599 views

Biblatex: Adding time information to “online” field and a label in front of url

I am trying to add some "time" information to my online-fields in biblatex. I tried to use the note entry, but that won't work as intended. Right now I got the following: \documentclass[a4paper, ...
6
votes
2answers
101 views

textrm is not displaying certain characters

I am trying to make a web URL display in my document: \documentclass{article} \begin{document} \subsection{test} \label{sec:test} [0] "test" $\emph{test}$. test, test. ...
3
votes
2answers
160 views

tilde in a url in the address portion of a letter

I am trying to include my website address in the address block of a letter. My webaddress has a tilde character, and my usual solution, $\sim$, to the tilde formatting problem is not working. The ...
2
votes
1answer
168 views

How to stop Latex from inserting $ in my URLs? [duplicate]

When I type this \footnote{ http://www.cems.uvm.edu/~tlakoba/math337/notes_12.pdf. Page 3.} LaTeX inputs $ $ in for me when I do not want them. How can I stop this from happening?
5
votes
1answer
2k views

Font size of \url in footnote

I use this \renewcommand{\UrlFont}{\normalsize} for make the fontsize smaller. I will like to make somthing similar for making only the \url smaller and only when it is used in a footnote. Text in ...
4
votes
2answers
611 views

How to add url to footer in Beamer

I'm new to LaTeX and am having trouble adding a url to the footer. I currently have this: \documentclass[]{beamer} \usepackage{beamerthemebars} \title{Title} \author{Author} ...
3
votes
1answer
493 views

References are printed with spaces between them?

Is it possible to better format this so that I can remove the huge spaces between words? Code used: \bibliographystyle{abbrv} \bibliography{library} Code in .bib library: @misc{marsrover, ...
4
votes
1answer
104 views

\url wrapping extends into marginal notes space

This is a slightly odd one. I've been trying to get \url{} blocks to wrap really long URLs, and the only thing that seemed to work was to renew the \UrlBreaks command to allow breaking on practically ...
4
votes
2answers
154 views

\lowercase inside \url

Why is this snippet: \newcommand{\Subject}{Skeleton} \url{http://www.cheatsheet.jim.pm?subject=\lowercase{\Subject{}}} rendered to this? http://www.cheatsheet.jim.pm?subject=\lowercase{Skeleton} ...
6
votes
2answers
1k 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): ...
3
votes
1answer
600 views

How to typeset a backslash and get line breaks in URLs?

I have a lot of Windows file/folder paths and register paths in my document. And I'm having 2 problems: The \ is seen as and escape character which obviously doesn't compile. \\ Starts a new line ...
0
votes
1answer
400 views

How to change the font of URL in the bibliography [duplicate]

When using the natbib package the URLs are printed and formatted in the bibliography in a different font from the rest of the document which looks nasty i.e. monospace Typewriter. I am having ...
0
votes
0answers
37 views

Changing formatting URL biblatex verbose stile parentheses and Times New Roman Font [duplicate]

I am writing my thesis and I have some problems with the URL reference notes. I am using the verbose footcite package. I did some changes to the style but I still have problems with the URL's in ...
1
vote
0answers
57 views

Line breaking and long URL strings [duplicate]

I'm an B.Sc. in industrial engineering student who decided to grab a B.Sc. in finance as well and I'm currently working on my B.Sc. thesis in finance regarding risk management in mortage houses. The ...
1
vote
1answer
2k views

Problems with Natbib: strange URL format and urldate not shown

I have a strange problem with natbib. This code @misc{CornellUniversity., author = {{Cornell University}}, title = {Benedict R. O'G. Anderson}, url = ...
3
votes
1answer
2k 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 ...
5
votes
1answer
607 views

Manually URL linebreak with Biblatex

First I should say that I don't have much experience with LaTeX. I'm using BibLaTeX and Biber. My Problem: I have a (justified) bibliography with long URL's containing long words. BibLaTeX makes a ...
2
votes
1answer
1k views

bibtex - how to have a web link without the url (ideally to have a link on the number) [duplicate]

I have been messing around a bit with different packages - url, hyperref etc. to get urls into my bibliography. Essentially i've got to the point where I have the url - with a clickable weblink over ...
5
votes
4answers
3k views

Line breaks and the URL package

Long URLs need to be broken at the end of a line. Here's a topic about that. That topic suggests adding the hyphens option to the URL package, and also to define ...
3
votes
1answer
134 views

Temporarily override biblatex reference options

I am using biblatex-chicago with the option url=false, but I want to include a URL for just a few references. Is there a command that would allow me to reintroduce the URL for just these references ...
3
votes
0answers
2k views

`macro parameter character #' in horizontal mode - Texmaker [closed]

I use Texmaker and I keep getting this error: ! You can't use `macro parameter character #' in horizontal mode. However I can force compile it using cmdline as pdflatex foo.tex. Any idea what the ...
4
votes
1answer
163 views

URLs in external references show up as question marks

So I have several external references like this one @misc{epa_2013, author = {EPA}, title = {National Pollutant Discharge Elimination System}, url = "{\url{http://cfpub.epa.gov/npdes/}}", ...
15
votes
2answers
362 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 ...
4
votes
1answer
641 views

Changing formatting of URL in biblatex \footcite

I've switched from bibtex to biblatex due to having to use \footcite based on university's requirements for writing a report. It may be worth noting that I'm also very new to (La)TeX. I'm only having ...
6
votes
2answers
152 views

Bibtex: How to input accentuation on url?

I am trying to use bibtex to output the url from a reference, but it's not working because the url has accentuation, just like below: url = ...
4
votes
1answer
146 views

Several nameref and page margins

I've been struggling with nameref for some time now. I am trying to make them respect the available space there is on a line, but I can't seem to find how. The LaTeX code is the following: ...
7
votes
1answer
142 views

Automatic line breaking of camel case within \url

I would like to break camel case text that is handed to the \url{} macro of url.sty. The solution here does not work for text in captions, so it seems, ans in particular does not work for \url{}. Is ...
5
votes
1answer
2k views

Opening a PDF URL with tilde character link using Google Chrome [closed]

I am using hyperref to create an url with tilde character link in a pdf document, as shown below: \documentclass{article} \usepackage{hyperref} \begin{document} ...
1
vote
0answers
2k views

Problem with use \url - metric (TFM) file not found [closed]

I try to write an article in LaTeX using texmaker on ubuntu. I use many packages including: \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
3
votes
1answer
111 views

Problems with url alignment

I would like to align some urls: \documentclass[12pt,a4paper,oneside]{book} \usepackage{url} \begin{document} Figure 1:\; \url{my first url} \url{my second url} \end{document} How ...
2
votes
0answers
140 views

how to delete extra line in amsplain-url_bst.bst after URL [closed]

I use amsplain-url.bst for the bibliographic format. When a reference has a URL it adds an extra line before the end of the reference. I want to delete this extra line:
3
votes
2answers
170 views

Macro for writing DOI with optional link text

The doi package has a neat \doi command, that transforms a doi string into \href{http://dx.doi.org/<the doi>}{doi:<the doi>}. The uri package has something similar with the help of the url ...
1
vote
1answer
716 views

Bad formatting of Bibliography

I tried two ways to format a bibliography with lots of URL's: Without 'RaggedRight' With 'RaggedRight' In the first case, there are wide spaces between words in some items, that a really not ...
4
votes
1answer
269 views

Invoking biblatex macro for “(visited on <date>)”

Can I invoke some biblatex commands or macros in order to automatically generate a string like this: (visited on 04/01/2013) I have this outside of a \cite command in a footnote, but would like to ...
8
votes
2answers
5k 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 ...
9
votes
1answer
975 views

Problems with URL's size

I would like to change the font size of the URLs in my latex document. I did: \begin{document} ... \usepackage{url} Figure 1: \scriptsize{\url{my url}}\\ Figure 2: \scriptsize{\url{my url}} ... ...